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

Unified Diff: chrome/browser/profile_resetter/profile_resetter_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/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 b8310f67d388f09adb0b20ef8831ed5332d95267..d0d11a873b6a4efc808f305a3ba55a7478999487 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() {}
« no previous file with comments | « chrome/browser/process_singleton_posix_unittest.cc ('k') | chrome/browser/shell_integration_linux_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698