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

Unified Diff: components/scheduler/base/task_queue_manager_unittest.cc

Issue 1956333002: Change the base class of BlameContext into AsyncEnabledStateObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ThreadSafeObserver
Patch Set: Add note on thread safety for Enter() and Leave() Created 4 years, 7 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/trace_event/blame_context_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/base/task_queue_manager_unittest.cc
diff --git a/components/scheduler/base/task_queue_manager_unittest.cc b/components/scheduler/base/task_queue_manager_unittest.cc
index 90b8fd8390edf33d521e64ea437f3a3867c3b0b9..588fd1e365010d91cf58bb38dbb7982bc14907c6 100644
--- a/components/scheduler/base/task_queue_manager_unittest.cc
+++ b/components/scheduler/base/task_queue_manager_unittest.cc
@@ -1894,7 +1894,7 @@ TaskQueueManagerTestWithTracing::CreateTraceAnalyzer() {
TEST_F(TaskQueueManagerTestWithTracing, BlameContextAttribution) {
using trace_analyzer::Query;
- Initialize(1u);
+ InitializeWithRealMessageLoop(1u);
TaskQueue* queue = runners_[0].get();
StartTracing();
@@ -1904,7 +1904,7 @@ TEST_F(TaskQueueManagerTestWithTracing, BlameContextAttribution) {
blame_context.Initialize();
queue->SetBlameContext(&blame_context);
queue->PostTask(FROM_HERE, base::Bind(&NopTask));
- test_task_runner_->RunUntilIdle();
+ message_loop_->RunUntilIdle();
}
StopTracing();
std::unique_ptr<trace_analyzer::TraceAnalyzer> analyzer =
« no previous file with comments | « base/trace_event/blame_context_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698