summaryrefslogtreecommitdiff
path: root/absl/strings
diff options
context:
space:
mode:
authorGravatar Tom Hughes <tomhughes@google.com>2023-01-09 09:57:44 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2023-01-09 09:58:31 -0800
commit708873b4912e31e2df33f261add6ff367c8a462c (patch)
treefaa99b0a54a0b9320e0e7a9ab8812f7d940d674d /absl/strings
parent209a595495193842acc3aa78100be8e59de314dd (diff)
Use "#if GTEST_HAS_DEATH_TEST" instead of "#ifdef GTEST_HAS_DEATH_TEST"
This is consistent with the rest of the GTEST_HAS_DEATH usages in the code and the example in gtest-port.h. PiperOrigin-RevId: 500740093 Change-Id: I2acc158116b0e8bccc8ab45d75c8059828a4c251
Diffstat (limited to 'absl/strings')
-rw-r--r--absl/strings/str_cat_test.cc2
-rw-r--r--absl/strings/substitute_test.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/absl/strings/str_cat_test.cc b/absl/strings/str_cat_test.cc
index c3fb3170..2d74245e 100644
--- a/absl/strings/str_cat_test.cc
+++ b/absl/strings/str_cat_test.cc
@@ -443,7 +443,7 @@ TEST(StrCat, AvoidsMemcpyWithNullptr) {
EXPECT_EQ(result, "12345");
}
-#ifdef GTEST_HAS_DEATH_TEST
+#if GTEST_HAS_DEATH_TEST
TEST(StrAppend, Death) {
std::string s = "self";
// on linux it's "assertion", on mac it's "Assertion",
diff --git a/absl/strings/substitute_test.cc b/absl/strings/substitute_test.cc
index 9cb37c39..ecf78d6b 100644
--- a/absl/strings/substitute_test.cc
+++ b/absl/strings/substitute_test.cc
@@ -265,7 +265,7 @@ TEST(SubstituteTest, AbslStringifyWithEnum) {
EXPECT_EQ(absl::Substitute("$0", e), "Choices");
}
-#ifdef GTEST_HAS_DEATH_TEST
+#if GTEST_HAS_DEATH_TEST
TEST(SubstituteDeathTest, SubstituteDeath) {
EXPECT_DEBUG_DEATH(