aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2020-01-27 08:26:12 -0500
committerAndy Getz <durandal@google.com>2020-02-07 13:34:11 -0500
commit7413280c52c1f759395572a384165023d24eeb57 (patch)
tree30631c2d981858b7a459e3f55e334f22bf4fc12a
parent87061810f4c744cdc1abb8f1cd98970a986eea75 (diff)
downloadgoogletest-7413280c52c1f759395572a384165023d24eeb57.tar.gz
googletest-7413280c52c1f759395572a384165023d24eeb57.tar.bz2
googletest-7413280c52c1f759395572a384165023d24eeb57.zip
Googletest export
Adds missing `#define` guard around `TEST_F(...)` PiperOrigin-RevId: 291703056
-rw-r--r--googletest/include/gtest/gtest.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/googletest/include/gtest/gtest.h b/googletest/include/gtest/gtest.h
index 464b3169..981dbd71 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.