blob: a54f4ab1b7e254ebaf12147f40ff7d68aec5c3b8 [file] [log] [blame]
QUICHE teamfd50a402018-12-07 22:54:05 -05001#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_