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. |