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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc

Issue 2083363002: Remove calls to deprecated MessageLoop methods in chrome. (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
Index: chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc
diff --git a/chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc b/chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc
index c5455d27a89a2b86354b3d508ce774dc185d7c29..b6be851d4e8433cc73ea62e29003d162839a6956 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc
+++ b/chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc
@@ -7,6 +7,7 @@
#include <vector>
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/predictors/predictor_database.h"
#include "chrome/browser/predictors/resource_prefetch_predictor_tables.h"
@@ -82,7 +83,7 @@ class ResourcePrefetchPredictorTablesReopenTest
ResourcePrefetchPredictorTablesTest::TearDown();
db_.reset(new PredictorDatabase(&profile_));
- loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
tables_ = db_->resource_prefetch_tables();
}
};
@@ -92,7 +93,7 @@ ResourcePrefetchPredictorTablesTest::ResourcePrefetchPredictorTablesTest()
db_thread_(content::BrowserThread::DB, &loop_),
db_(new PredictorDatabase(&profile_)),
tables_(db_->resource_prefetch_tables()) {
- loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
ResourcePrefetchPredictorTablesTest::~ResourcePrefetchPredictorTablesTest() {
@@ -106,7 +107,7 @@ void ResourcePrefetchPredictorTablesTest::SetUp() {
void ResourcePrefetchPredictorTablesTest::TearDown() {
tables_ = NULL;
db_.reset();
- loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
void ResourcePrefetchPredictorTablesTest::TestGetAllData() {

Powered by Google App Engine
This is Rietveld 408576698