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

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

Issue 2799883003: Switch from TestBrowserThread to TestBrowserThreadBundle in chrome. (Closed)
Patch Set: fix-string Created 3 years, 8 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_common_unittest.cc
diff --git a/chrome/browser/predictors/resource_prefetch_common_unittest.cc b/chrome/browser/predictors/resource_prefetch_common_unittest.cc
index 643d3d05461436f0b182b00659bf7846c098b103..b7337b6fc8f4959b0e0aa8b93aac027faee1682a 100644
--- a/chrome/browser/predictors/resource_prefetch_common_unittest.cc
+++ b/chrome/browser/predictors/resource_prefetch_common_unittest.cc
@@ -6,7 +6,6 @@
#include <string>
#include "base/memory/ptr_util.h"
-#include "base/message_loop/message_loop.h"
#include "chrome/browser/net/prediction_options.h"
#include "chrome/browser/predictors/resource_prefetch_common.h"
#include "chrome/browser/predictors/resource_prefetch_predictor.h"
@@ -15,7 +14,7 @@
#include "chrome/test/base/testing_profile.h"
#include "components/prefs/pref_service.h"
#include "components/variations/variations_params_manager.h"
-#include "content/public/test/test_browser_thread.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "net/base/network_change_notifier.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -78,15 +77,12 @@ class ResourcePrefetchCommonTest : public testing::Test {
}
protected:
- base::MessageLoop loop_;
- content::TestBrowserThread ui_thread_;
+ content::TestBrowserThreadBundle test_browser_thread_bundle_;
std::unique_ptr<TestingProfile> profile_;
};
ResourcePrefetchCommonTest::ResourcePrefetchCommonTest()
- : loop_(base::MessageLoop::TYPE_DEFAULT),
- ui_thread_(content::BrowserThread::UI, &loop_),
- profile_(new TestingProfile()) { }
+ : profile_(new TestingProfile()) {}
TEST_F(ResourcePrefetchCommonTest, IsDisabledByDefault) {
ResourcePrefetchPredictorConfig config;

Powered by Google App Engine
This is Rietveld 408576698