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

Unified Diff: chrome/browser/io_thread_unittest.cc

Issue 2628903002: Change DONT_START_THREADS to DONT_CREATE_THREADS in TestBrowserThreadBundle. (Closed)
Patch Set: fix test error Created 3 years, 11 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/io_thread_unittest.cc
diff --git a/chrome/browser/io_thread_unittest.cc b/chrome/browser/io_thread_unittest.cc
index ea95288d2e2e2c4d2e7d11001bb33ef6671cd67d..352d037b4cb9cd90cda2156008ac01088131441a 100644
--- a/chrome/browser/io_thread_unittest.cc
+++ b/chrome/browser/io_thread_unittest.cc
@@ -107,7 +107,7 @@ class IOThreadTestWithIOThreadObject : public testing::Test {
protected:
IOThreadTestWithIOThreadObject()
: thread_bundle_(content::TestBrowserThreadBundle::REAL_IO_THREAD |
- content::TestBrowserThreadBundle::DONT_START_THREADS) {
+ content::TestBrowserThreadBundle::DONT_CREATE_THREADS) {
#if BUILDFLAG(ENABLE_EXTENSIONS)
event_router_forwarder_ = new extensions::EventRouterForwarder;
#endif
@@ -139,7 +139,7 @@ class IOThreadTestWithIOThreadObject : public testing::Test {
// Now that IOThread object is registered starting the threads will
// call the IOThread::Init(). This sets up the environment needed for
// these tests.
- thread_bundle_.Start();
+ thread_bundle_.CreateThreads();
}
~IOThreadTestWithIOThreadObject() override {
« no previous file with comments | « no previous file | content/public/test/test_browser_thread_bundle.h » ('j') | content/public/test/test_browser_thread_bundle.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698