diff options
author | Abseil Team <absl-team@google.com> | 2020-01-27 13:26:12 (GMT) |
---|---|---|
committer | Andy Getz <durandal@google.com> | 2020-02-07 18:34:11 (GMT) |
commit | 7413280c52c1f759395572a384165023d24eeb57 (patch) | |
tree | 30631c2d981858b7a459e3f55e334f22bf4fc12a | |
parent | 87061810f4c744cdc1abb8f1cd98970a986eea75 (diff) | |
download | googletest-7413280c52c1f759395572a384165023d24eeb57.zip googletest-7413280c52c1f759395572a384165023d24eeb57.tar.gz googletest-7413280c52c1f759395572a384165023d24eeb57.tar.bz2 |
Googletest export
Adds missing `#define` guard around `TEST_F(...)`
PiperOrigin-RevId: 291703056
-rw-r--r-- | googletest/include/gtest/gtest.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/googletest/include/gtest/gtest.h b/googletest/include/gtest/gtest.h index 464b316..981dbd7 100644 --- a/googletest/include/gtest/gtest.h +++ b/googletest/include/gtest/gtest.h @@ -2364,9 +2364,11 @@ constexpr bool StaticAssertTypeEq() noexcept { // } // // GOOGLETEST_CM0011 DO NOT DELETE +#if !GTEST_DONT_DEFINE_TEST #define TEST_F(test_fixture, test_name)\ GTEST_TEST_(test_fixture, test_name, test_fixture, \ ::testing::internal::GetTypeId<test_fixture>()) +#endif // !GTEST_DONT_DEFINE_TEST // Returns a path to temporary directory. // Tries to determine an appropriate directory for the platform. |