summaryrefslogtreecommitdiff
path: root/chromium/base/test/gtest_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/test/gtest_util.h')
-rw-r--r--chromium/base/test/gtest_util.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/chromium/base/test/gtest_util.h b/chromium/base/test/gtest_util.h
index 1db1fae1e2d..443fa1ad829 100644
--- a/chromium/base/test/gtest_util.h
+++ b/chromium/base/test/gtest_util.h
@@ -9,8 +9,8 @@
#include <utility>
#include <vector>
+#include "base/check_op.h"
#include "base/compiler_specific.h"
-#include "base/logging.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -27,15 +27,8 @@
// is part of the error message), but intentionally do not expose the gtest
// death test's full |regex| parameter to avoid users having to verify the exact
// syntax of the error message produced by the DCHECK.
-
-// Official builds will eat stream parameters, so don't check the error message.
-#if defined(OFFICIAL_BUILD) && defined(NDEBUG)
-#define EXPECT_DCHECK_DEATH(statement) EXPECT_DEATH(statement, "")
-#define ASSERT_DCHECK_DEATH(statement) ASSERT_DEATH(statement, "")
-#else
#define EXPECT_DCHECK_DEATH(statement) EXPECT_DEATH(statement, "Check failed")
#define ASSERT_DCHECK_DEATH(statement) ASSERT_DEATH(statement, "Check failed")
-#endif // defined(OFFICIAL_BUILD) && defined(NDEBUG)
#else
// DCHECK_IS_ON() && defined(GTEST_HAS_DEATH_TEST) && !defined(OS_ANDROID)