summaryrefslogtreecommitdiffstats
path: root/googlemock/test/gmock-matchers-misc_test.cc
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@google.com>2023-03-04 00:01:13 (GMT)
committerCopybara-Service <copybara-worker@google.com>2023-03-06 15:15:44 (GMT)
commitdc10c3b5e55c1101e7759bdb7bf9790cebbf4ad2 (patch)
tree1b381b545e774039404cc7921b1500d765ebc2ae /googlemock/test/gmock-matchers-misc_test.cc
parent7b1ced0682af5fb10e4619457552cd11936c294a (diff)
downloadgoogletest-dc10c3b5e55c1101e7759bdb7bf9790cebbf4ad2.zip
googletest-dc10c3b5e55c1101e7759bdb7bf9790cebbf4ad2.tar.gz
googletest-dc10c3b5e55c1101e7759bdb7bf9790cebbf4ad2.tar.bz2
Use "#ifdef" with public macros
This allows compilation with "-Wundef" (#3267). PiperOrigin-RevId: 513944726 Change-Id: I1a3854bb2333d5dec6c0ff91ee1eddd9a766ab91
Diffstat (limited to 'googlemock/test/gmock-matchers-misc_test.cc')
-rw-r--r--googlemock/test/gmock-matchers-misc_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/test/gmock-matchers-misc_test.cc b/googlemock/test/gmock-matchers-misc_test.cc
index c1e4f35..0c7aa49 100644
--- a/googlemock/test/gmock-matchers-misc_test.cc
+++ b/googlemock/test/gmock-matchers-misc_test.cc
@@ -200,7 +200,7 @@ TEST(IsTrueTest, IsTrueIsFalse) {
EXPECT_THAT(nonnull_unique, Not(IsFalse()));
}
-#if GTEST_HAS_TYPED_TEST
+#ifdef GTEST_HAS_TYPED_TEST
// Tests ContainerEq with different container types, and
// different element types.