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

Unified Diff: base/task_scheduler/task_tracker_unittest.cc

Issue 2161213002: TaskScheduler: Bump thread priority during shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR gab #26 (Set* -> Update* and disable on Linux) 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
« no previous file with comments | « base/task_scheduler/task_tracker.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_tracker_unittest.cc
diff --git a/base/task_scheduler/task_tracker_unittest.cc b/base/task_scheduler/task_tracker_unittest.cc
index 58f47b8153458816889e15c31961b0e5aa9732cd..326f7aa02bc79602b34d665a2762e6e7965b7cf4 100644
--- a/base/task_scheduler/task_tracker_unittest.cc
+++ b/base/task_scheduler/task_tracker_unittest.cc
@@ -132,10 +132,8 @@ class TaskSchedulerTaskTrackerTest
ASSERT_FALSE(thread_calling_shutdown_);
thread_calling_shutdown_.reset(new ThreadCallingShutdown(&tracker_));
thread_calling_shutdown_->Start();
- while (!tracker_.IsShuttingDownForTesting() &&
- !tracker_.IsShutdownComplete()) {
+ while (!tracker_.HasShutdownStarted())
PlatformThread::YieldCurrentThread();
- }
}
void WaitForAsyncIsShutdownComplete() {
@@ -148,8 +146,8 @@ class TaskSchedulerTaskTrackerTest
void VerifyAsyncShutdownInProgress() {
ASSERT_TRUE(thread_calling_shutdown_);
EXPECT_FALSE(thread_calling_shutdown_->has_returned());
+ EXPECT_TRUE(tracker_.HasShutdownStarted());
EXPECT_FALSE(tracker_.IsShutdownComplete());
- EXPECT_TRUE(tracker_.IsShuttingDownForTesting());
}
size_t NumTasksExecuted() {
« no previous file with comments | « base/task_scheduler/task_tracker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698