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

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

Issue 915373002: Migrate sync/ to base::RunLoop::RunUntilIdle() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build error Created 5 years, 10 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
Index: sync/internal_api/attachments/fake_attachment_uploader_unittest.cc
diff --git a/sync/internal_api/attachments/fake_attachment_uploader_unittest.cc b/sync/internal_api/attachments/fake_attachment_uploader_unittest.cc
index 45b4d303822d0cad2fccb5f9bb252aedfe87024f..5d86ad483b08299eb480443b64d7d52b14a96f61 100644
--- a/sync/internal_api/attachments/fake_attachment_uploader_unittest.cc
+++ b/sync/internal_api/attachments/fake_attachment_uploader_unittest.cc
@@ -7,7 +7,7 @@
#include "base/bind.h"
#include "base/memory/ref_counted.h"
#include "base/memory/ref_counted_memory.h"
-#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "sync/api/attachments/attachment.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -53,7 +53,7 @@ TEST_F(FakeAttachmentUploaderTest, UploadAttachment) {
uploader.UploadAttachment(attachment1, upload_callback);
uploader.UploadAttachment(attachment2, upload_callback);
uploader.UploadAttachment(attachment3, upload_callback);
- message_loop.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_EQ(upload_callback_count, 3);
}

Powered by Google App Engine
This is Rietveld 408576698