Index: base/trace_event/trace_event_unittest.cc |
diff --git a/base/trace_event/trace_event_unittest.cc b/base/trace_event/trace_event_unittest.cc |
index d6481291fa6f332767404ce8c4aa9dce006ffc37..a71525975c1030f4ec238c224341595c860659df 100644 |
--- a/base/trace_event/trace_event_unittest.cc |
+++ b/base/trace_event/trace_event_unittest.cc |
@@ -1547,7 +1547,7 @@ TEST_F(TraceEventTestFixture, ThreadNames) { |
WaitableEvent* task_complete_events[kNumThreads]; |
for (int i = 0; i < kNumThreads; i++) { |
task_complete_events[i] = new WaitableEvent(false, false); |
- threads[i]->Start(); |
+ threads[i]->StartAndWaitForTesting(); |
gab
2015/07/09 18:19:00
Why is this related to this CL?
Takashi Toyoshima
2015/07/14 10:47:28
This is because now thread_id() can return a valid
|
thread_ids[i] = threads[i]->thread_id(); |
threads[i]->task_runner()->PostTask( |
FROM_HERE, base::Bind(&TraceManyInstantEvents, i, kNumEvents, |