QUICHE team | fd50a40 | 2018-12-07 22:54:05 -0500 | [diff] [blame] | 1 | #ifndef QUICHE_HTTP2_PLATFORM_API_HTTP2_TEST_HELPERS_H_ |
| 2 | #define QUICHE_HTTP2_PLATFORM_API_HTTP2_TEST_HELPERS_H_ |
| 3 | |
| 4 | // Provides VERIFY_* macros, similar to EXPECT_* and ASSERT_*, but they return |
| 5 | // an AssertionResult if the condition is not satisfied. |
| 6 | #include "net/http2/platform/impl/http2_test_helpers_impl.h" |
| 7 | |
bnc | 6744c06 | 2020-09-30 10:45:28 -0700 | [diff] [blame] | 8 | #include "net/third_party/quiche/src/common/platform/api/quiche_test.h" |
QUICHE team | fd50a40 | 2018-12-07 22:54:05 -0500 | [diff] [blame] | 9 | |
QUICHE team | fd50a40 | 2018-12-07 22:54:05 -0500 | [diff] [blame] | 10 | #define VERIFY_AND_RETURN_SUCCESS(expression) \ |
| 11 | { \ |
| 12 | VERIFY_SUCCESS(expression); \ |
| 13 | return ::testing::AssertionSuccess(); \ |
| 14 | } |
| 15 | |
| 16 | #endif // QUICHE_HTTP2_PLATFORM_API_HTTP2_TEST_HELPERS_H_ |