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 | |
| 8 | #include "testing/gtest/include/gtest/gtest.h" // For AssertionSuccess |
| 9 | |
| 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_ |