Index: webrtc/base/sequenced_task_checker_unittest.cc |
diff --git a/webrtc/base/sequenced_task_checker_unittest.cc b/webrtc/base/sequenced_task_checker_unittest.cc |
index 13b1afc50a9e64ec52c9f0248ea30bf8c516f66c..d138af751e2725978476da0e8b25833995094218 100644 |
--- a/webrtc/base/sequenced_task_checker_unittest.cc |
+++ b/webrtc/base/sequenced_task_checker_unittest.cc |
@@ -197,7 +197,7 @@ TEST(SequencedTaskCheckerTest, DetachFromTaskQueueAndUseOnThread) { |
EXPECT_TRUE(done_event.Wait(1000)); |
} |
-#if !defined(NDEBUG) || DCHECK_ALWAYS_ON |
+#if RTC_DCHECK_IS_ON |
TEST(SequencedTaskCheckerTest, MethodNotAllowedOnDifferentThreadInDebug) { |
RunMethodOnDifferentThread(false); |
} |
@@ -207,7 +207,7 @@ TEST(SequencedTaskCheckerTest, MethodAllowedOnDifferentThreadInRelease) { |
} |
#endif |
-#if !defined(NDEBUG) || DCHECK_ALWAYS_ON |
+#if RTC_DCHECK_IS_ON |
TEST(SequencedTaskCheckerTest, MethodNotAllowedOnDifferentTaskQueueInDebug) { |
RunMethodOnDifferentTaskQueue(false); |
} |
@@ -217,7 +217,7 @@ TEST(SequencedTaskCheckerTest, MethodAllowedOnDifferentTaskQueueInRelease) { |
} |
#endif |
-#if !defined(NDEBUG) || DCHECK_ALWAYS_ON |
+#if RTC_DCHECK_IS_ON |
TEST(SequencedTaskCheckerTest, DetachFromTaskQueueInDebug) { |
DetachThenCallFromDifferentTaskQueue(false); |
} |