| Index: sync/internal_api/http_bridge_unittest.cc
|
| diff --git a/sync/internal_api/http_bridge_unittest.cc b/sync/internal_api/http_bridge_unittest.cc
|
| index 78870a3d22aaee38e98ccb8cc67a85acea43f9e2..74337fccd0b07f989f6af57eb770b72b9beadd6b 100644
|
| --- a/sync/internal_api/http_bridge_unittest.cc
|
| +++ b/sync/internal_api/http_bridge_unittest.cc
|
| @@ -6,6 +6,7 @@
|
| #include <stdint.h>
|
|
|
| #include "base/bit_cast.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "base/synchronization/waitable_event.h"
|
| #include "base/threading/thread.h"
|
| @@ -142,7 +143,8 @@ class ShuntedHttpBridge : public HttpBridge {
|
|
|
| protected:
|
| void MakeAsynchronousPost() override {
|
| - ASSERT_TRUE(base::MessageLoop::current() == test_->GetIOThreadLoop());
|
| + ASSERT_TRUE(
|
| + test_->GetIOThreadLoop()->task_runner()->BelongsToCurrentThread());
|
| if (never_finishes_)
|
| return;
|
|
|
| @@ -156,7 +158,8 @@ class ShuntedHttpBridge : public HttpBridge {
|
| ~ShuntedHttpBridge() override {}
|
|
|
| void CallOnURLFetchComplete() {
|
| - ASSERT_TRUE(base::MessageLoop::current() == test_->GetIOThreadLoop());
|
| + ASSERT_TRUE(
|
| + test_->GetIOThreadLoop()->task_runner()->BelongsToCurrentThread());
|
| // We return a dummy content response.
|
| std::string response_content = "success!";
|
| net::TestURLFetcher fetcher(0, GURL("http://www.google.com"), NULL);
|
|
|