| Index: runtime/vm/timeline_test.cc
|
| diff --git a/runtime/vm/timeline_test.cc b/runtime/vm/timeline_test.cc
|
| index 00fc839045c09d57b3e3f4f19a891a8ccf1dda6b..2d9bb57097ef1462bab176e5bf960ac2394a023b 100644
|
| --- a/runtime/vm/timeline_test.cc
|
| +++ b/runtime/vm/timeline_test.cc
|
| @@ -478,7 +478,9 @@ TEST_CASE(TimelinePauses_Basic) {
|
| ASSERT(recorder != NULL);
|
| Zone* zone = thread->zone();
|
| Isolate* isolate = thread->isolate();
|
| - ThreadId tid = OSThread::GetCurrentThreadTraceId();
|
| + OSThread* os_thread = thread->os_thread();
|
| + ASSERT(os_thread != NULL);
|
| + ThreadId tid = os_thread->trace_id();
|
|
|
| // Test case.
|
| TimelineTestHelper::FakeDuration(recorder, "a", 0, 10);
|
| @@ -648,7 +650,9 @@ TEST_CASE(TimelinePauses_BeginEnd) {
|
| ASSERT(recorder != NULL);
|
| Zone* zone = thread->zone();
|
| Isolate* isolate = thread->isolate();
|
| - ThreadId tid = OSThread::GetCurrentThreadTraceId();
|
| + OSThread* os_thread = thread->os_thread();
|
| + ASSERT(os_thread != NULL);
|
| + ThreadId tid = os_thread->trace_id();
|
|
|
| // Test case.
|
| TimelineTestHelper::FakeBegin(recorder, "a", 0);
|
|
|