Index: mojo/public/cpp/bindings/tests/sync_method_unittest.cc |
diff --git a/mojo/public/cpp/bindings/tests/sync_method_unittest.cc b/mojo/public/cpp/bindings/tests/sync_method_unittest.cc |
index 6a5d7040d8df6cc93c2a2a29281a19b8fc87e7c6..25bb9db1222e70c540c28eafffa7e9e8349f3582 100644 |
--- a/mojo/public/cpp/bindings/tests/sync_method_unittest.cc |
+++ b/mojo/public/cpp/bindings/tests/sync_method_unittest.cc |
@@ -266,7 +266,7 @@ class TestSyncServiceSequence { |
ping_called_(false) {} |
void SetUp(InterfaceRequest<Interface> request) { |
- CHECK(task_runner()->RunsTasksOnCurrentThread()); |
+ CHECK(task_runner()->RunsTasksInCurrentSequence()); |
impl_.reset(new ImplTypeFor<Interface>(std::move(request))); |
impl_->set_ping_handler( |
[this](const typename Interface::PingCallback& callback) { |
@@ -279,7 +279,7 @@ class TestSyncServiceSequence { |
} |
void TearDown() { |
- CHECK(task_runner()->RunsTasksOnCurrentThread()); |
+ CHECK(task_runner()->RunsTasksInCurrentSequence()); |
impl_.reset(); |
} |