Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8206)

Unified Diff: chromecast/app/linux/cast_crash_reporter_client_unittest.cc

Issue 2163023002: Unify usage of logging/assert macros in base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix base/android/build_info.cc compile Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromecast/app/linux/cast_crash_reporter_client_unittest.cc
diff --git a/chromecast/app/linux/cast_crash_reporter_client_unittest.cc b/chromecast/app/linux/cast_crash_reporter_client_unittest.cc
index bd399cc3b48ae23c8dc4d3be97243fbb68fe7504..48899f0609bffcbab4f464e2c41f7d62f91cfb71 100644
--- a/chromecast/app/linux/cast_crash_reporter_client_unittest.cc
+++ b/chromecast/app/linux/cast_crash_reporter_client_unittest.cc
@@ -123,7 +123,7 @@ class CastCrashReporterClientTest : public testing::Test {
DISALLOW_COPY_AND_ASSIGN(CastCrashReporterClientTest);
};
-#if ENABLE_THREAD_RESTRICTIONS
+#if DCHECK_IS_ON()
// This test shall only be run when thread restricitons are enabled. Otherwise,
// the thread will not actually be IO-restricted, and the final ASSERT will
// fail.
@@ -137,7 +137,7 @@ TEST_F(CastCrashReporterClientTest, EndToEndTestOnIORestrictedThread) {
// Note that SetIOAllowed returns the previous value.
ASSERT_FALSE(base::ThreadRestrictions::SetIOAllowed(true));
}
-#endif // ENABLE_THREAD_RESTRICTIONS
+#endif // DCHECK_IS_ON()
TEST_F(CastCrashReporterClientTest, EndToEndTestOnNonIORestrictedThread) {
// Handle a crash on a non-IO restricted thread.
« no previous file with comments | « chrome/browser/metrics/thread_watcher_android.cc ('k') | device/power_save_blocker/power_save_blocker_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698