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

Unified Diff: chrome/browser/profile_resetter/profile_resetter_unittest.cc

Issue 2799883003: Switch from TestBrowserThread to TestBrowserThreadBundle in chrome. (Closed)
Patch Set: fix-build-error 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/profile_resetter/profile_resetter_unittest.cc
diff --git a/chrome/browser/profile_resetter/profile_resetter_unittest.cc b/chrome/browser/profile_resetter/profile_resetter_unittest.cc
index 88de55f30083b77672071d4dd506eee196c07a61..c3e098f709c11533244bc234888a2d307d9313fc 100644
--- a/chrome/browser/profile_resetter/profile_resetter_unittest.cc
+++ b/chrome/browser/profile_resetter/profile_resetter_unittest.cc
@@ -239,19 +239,17 @@ class ConfigParserTest : public testing::Test {
MOCK_METHOD0(Callback, void(void));
- base::MessageLoopForIO loop_;
- content::TestBrowserThread ui_thread_;
- content::TestBrowserThread io_thread_;
+ content::TestBrowserThreadBundle test_browser_thread_bundle_;
URLFetcherRequestListener request_listener_;
net::FakeURLFetcherFactory factory_;
};
ConfigParserTest::ConfigParserTest()
- : ui_thread_(content::BrowserThread::UI, &loop_),
- io_thread_(content::BrowserThread::IO, &loop_),
- factory_(NULL, base::Bind(&ConfigParserTest::CreateFakeURLFetcher,
- base::Unretained(this))) {
-}
+ : test_browser_thread_bundle_(
+ content::TestBrowserThreadBundle::IO_MAINLOOP),
+ factory_(NULL,
+ base::Bind(&ConfigParserTest::CreateFakeURLFetcher,
+ base::Unretained(this))) {}
ConfigParserTest::~ConfigParserTest() {}

Powered by Google App Engine
This is Rietveld 408576698