| Index: base/task_scheduler/task_scheduler_impl_unittest.cc
|
| diff --git a/base/task_scheduler/task_scheduler_impl_unittest.cc b/base/task_scheduler/task_scheduler_impl_unittest.cc
|
| index d275fbf56466f444a325c8aca9676299fb634106..b49e5b9de94ce34b0907bea0d5bfbb29977a9593 100644
|
| --- a/base/task_scheduler/task_scheduler_impl_unittest.cc
|
| +++ b/base/task_scheduler/task_scheduler_impl_unittest.cc
|
| @@ -40,7 +40,7 @@ struct TraitsExecutionModePair {
|
| ExecutionMode execution_mode;
|
| };
|
|
|
| -#if ENABLE_THREAD_RESTRICTIONS
|
| +#if DCHECK_IS_ON()
|
| // Returns whether I/O calls are allowed on the current thread.
|
| bool GetIOAllowed() {
|
| const bool previous_value = ThreadRestrictions::SetIOAllowed(true);
|
| @@ -58,9 +58,9 @@ void VerifyTaskEnvironement(const TaskTraits& traits) {
|
| : ThreadPriority::NORMAL,
|
| PlatformThread::GetCurrentThreadPriority());
|
|
|
| -#if ENABLE_THREAD_RESTRICTIONS
|
| +#if DCHECK_IS_ON()
|
| // The #if above is required because GetIOAllowed() always returns true when
|
| - // !ENABLE_THREAD_RESTRICTIONS, even when |traits| don't allow file I/O.
|
| + // !DCHECK_IS_ON(), even when |traits| don't allow file I/O.
|
| EXPECT_EQ(traits.with_file_io(), GetIOAllowed());
|
| #endif
|
|
|
|
|