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

Unified Diff: base/task_scheduler/scheduler_worker_pool_impl_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: oops commit on wrong branch 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: base/task_scheduler/scheduler_worker_pool_impl_unittest.cc
diff --git a/base/task_scheduler/scheduler_worker_pool_impl_unittest.cc b/base/task_scheduler/scheduler_worker_pool_impl_unittest.cc
index dc6809c8a5bea2c38848d0f0a7af572ff82fd2e5..34d30eb36ede3cd66210c263e5cdfbe1fff78b6c 100644
--- a/base/task_scheduler/scheduler_worker_pool_impl_unittest.cc
+++ b/base/task_scheduler/scheduler_worker_pool_impl_unittest.cc
@@ -338,9 +338,6 @@ void ExpectIORestriction(IORestriction io_restriction, WaitableEvent* event) {
if (io_restriction == IORestriction::ALLOWED) {
ThreadRestrictions::AssertIOAllowed();
} else {
- static_assert(
- ENABLE_THREAD_RESTRICTIONS == DCHECK_IS_ON(),
- "ENABLE_THREAD_RESTRICTIONS and DCHECK_IS_ON() have diverged.");
EXPECT_DCHECK_DEATH({ ThreadRestrictions::AssertIOAllowed(); }, "");
}

Powered by Google App Engine
This is Rietveld 408576698