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

Unified Diff: components/previews/previews_io_data_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 | « no previous file | components/previews/previews_ui_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/previews/previews_io_data_unittest.cc
diff --git a/components/previews/previews_io_data_unittest.cc b/components/previews/previews_io_data_unittest.cc
index 4d99c92cf5cf6663184aba8fe442713af44e50de..9f88172091ceb6e72fb9b6da99739d62ade6e220 100644
--- a/components/previews/previews_io_data_unittest.cc
+++ b/components/previews/previews_io_data_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_ui_service.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -71,7 +72,7 @@ TEST_F(PreviewsIODataTest, TestInitialization) {
new TestPreviewsIOData(loop_.task_runner(), loop_.task_runner())));
set_ui_service(
base::WrapUnique(new PreviewsUIService(io_data(), loop_.task_runner())));
- loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
// After the outstanding posted tasks have run, |io_data_| should be fully
// initialized.
EXPECT_TRUE(io_data()->initialized());
« no previous file with comments | « no previous file | components/previews/previews_ui_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698