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

Unified Diff: base/trace_event/memory_dump_scheduler_unittest.cc

Issue 2952493002: memory-infra: Fix MemoryDumpScheduler test. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/memory_dump_scheduler_unittest.cc
diff --git a/base/trace_event/memory_dump_scheduler_unittest.cc b/base/trace_event/memory_dump_scheduler_unittest.cc
index 17fb74361f5f47a4889a5c1cf5ead8598067b53a..8677978c0925f9f759ab57b342041e2da9555460 100644
--- a/base/trace_event/memory_dump_scheduler_unittest.cc
+++ b/base/trace_event/memory_dump_scheduler_unittest.cc
@@ -185,7 +185,6 @@ TEST_F(MemoryDumpSchedulerTest, StopAndStartOnAnotherThread) {
bg_thread_->Start();
evt.Reset();
expected_task_runner = bg_thread_->task_runner();
- scheduler_->Start(config, bg_thread_->task_runner());
EXPECT_CALL(on_tick_, OnTick(_)).Times(kTicks - 1);
EXPECT_CALL(on_tick_, OnTick(_))
.WillRepeatedly(
@@ -193,6 +192,7 @@ TEST_F(MemoryDumpSchedulerTest, StopAndStartOnAnotherThread) {
EXPECT_TRUE(expected_task_runner->RunsTasksOnCurrentThread());
evt.Signal();
}));
+ scheduler_->Start(config, bg_thread_->task_runner());
evt.Wait();
scheduler_->Stop();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698