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

Unified Diff: sync/internal_api/attachments/attachment_service_proxy_unittest.cc

Issue 2086363002: Remove calls to deprecated MessageLoop methods in sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/internal_api/http_bridge_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/attachments/attachment_service_proxy_unittest.cc
diff --git a/sync/internal_api/attachments/attachment_service_proxy_unittest.cc b/sync/internal_api/attachments/attachment_service_proxy_unittest.cc
index 690223146ece8ecac3930f6a050cc2fc2f9b324e..ad4cb3ca2cc700b6504e984cd51a23aefe768456 100644
--- a/sync/internal_api/attachments/attachment_service_proxy_unittest.cc
+++ b/sync/internal_api/attachments/attachment_service_proxy_unittest.cc
@@ -101,7 +101,7 @@ class AttachmentServiceProxyTest : public testing::Test,
// We must take care to call the stub's destructor on the stub_thread
// because that's the thread to which its WeakPtrs are bound.
if (stub) {
- stub_thread->message_loop()->DeleteSoon(FROM_HERE, stub.release());
+ stub_thread->task_runner()->DeleteSoon(FROM_HERE, stub.release());
WaitForStubThread();
}
stub_thread->Stop();
@@ -117,7 +117,7 @@ class AttachmentServiceProxyTest : public testing::Test,
void WaitForStubThread() {
base::WaitableEvent done(base::WaitableEvent::ResetPolicy::AUTOMATIC,
base::WaitableEvent::InitialState::NOT_SIGNALED);
- stub_thread->message_loop()->PostTask(
+ stub_thread->task_runner()->PostTask(
FROM_HERE,
base::Bind(&base::WaitableEvent::Signal, base::Unretained(&done)));
done.Wait();
@@ -167,7 +167,7 @@ TEST_F(AttachmentServiceProxyTest, WrappedIsDestroyed) {
EXPECT_EQ(1, count_callback_get_or_download);
// Destroy the stub and call GetOrDownloadAttachments again.
- stub_thread->message_loop()->DeleteSoon(FROM_HERE, stub.release());
+ stub_thread->task_runner()->DeleteSoon(FROM_HERE, stub.release());
WaitForStubThread();
// Now that the wrapped object has been destroyed, call again and see that we
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/internal_api/http_bridge_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698