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 | |
QUICHE team | d72981e | 2020-02-07 19:44:05 -0800 | [diff] [blame] | 8 | #pragma clang diagnostic push |
| 9 | #pragma clang diagnostic ignored "-Weverything" |
| 10 | |
| 11 | #include "testing/gmock/include/gmock/gmock.h" |
QUICHE team | fd50a40 | 2018-12-07 22:54:05 -0500 | [diff] [blame] | 12 | #include "testing/gtest/include/gtest/gtest.h" // For AssertionSuccess |
| 13 | |
QUICHE team | d72981e | 2020-02-07 19:44:05 -0800 | [diff] [blame] | 14 | #pragma clang diagnostic pop |
| 15 | |
QUICHE team | fd50a40 | 2018-12-07 22:54:05 -0500 | [diff] [blame] | 16 | #define VERIFY_AND_RETURN_SUCCESS(expression) \ |
| 17 | { \ |
| 18 | VERIFY_SUCCESS(expression); \ |
| 19 | return ::testing::AssertionSuccess(); \ |
| 20 | } |
| 21 | |
| 22 | #endif // QUICHE_HTTP2_PLATFORM_API_HTTP2_TEST_HELPERS_H_ |