blob: 4a616f7f6ab647d0892ad04cdb73e254b4f0704f [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
QUICHE teamd72981e2020-02-07 19:44:05 -08008#pragma clang diagnostic push
9#pragma clang diagnostic ignored "-Weverything"
10
11#include "testing/gmock/include/gmock/gmock.h"
QUICHE teamfd50a402018-12-07 22:54:05 -050012#include "testing/gtest/include/gtest/gtest.h" // For AssertionSuccess
13
QUICHE teamd72981e2020-02-07 19:44:05 -080014#pragma clang diagnostic pop
15
QUICHE teamfd50a402018-12-07 22:54:05 -050016#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_