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

Unified Diff: components/previews/previews_ui_service_unittest.cc

Issue 2348503002: Remove calls to deprecated MessageLoop methods in components/previews/. (Closed)
Patch Set: Created 4 years, 3 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 | « components/previews/previews_io_data_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/previews/previews_ui_service_unittest.cc
diff --git a/components/previews/previews_ui_service_unittest.cc b/components/previews/previews_ui_service_unittest.cc
index 6080ce27c1fef9da5ba1032a641f02730484b03c..55dddcfbdecef49bea04eb6fd8dc20964b6ca16b 100644
--- a/components/previews/previews_ui_service_unittest.cc
+++ b/components/previews/previews_ui_service_unittest.cc
@@ -9,6 +9,7 @@
#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "components/previews/previews_io_data.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -74,7 +75,7 @@ TEST_F(PreviewsUIServiceTest, TestInitialization) {
new PreviewsIOData(loop_.task_runner(), loop_.task_runner())));
set_ui_service(base::WrapUnique(
new TestPreviewsUIService(io_data(), loop_.task_runner())));
- loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
// After the outstanding posted tasks have run, SetIOData should have been
// called for |ui_service_|.
EXPECT_TRUE(ui_service()->io_data_set());
« no previous file with comments | « components/previews/previews_io_data_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698