OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/public/test/test_browser_thread_bundle.h" | 5 #include "content/public/test/test_browser_thread_bundle.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "content/public/test/test_browser_thread.h" | 9 #include "content/public/test/test_browser_thread.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 TestBrowserThreadBundle::TestBrowserThreadBundle() { | 13 TestBrowserThreadBundle::TestBrowserThreadBundle() { |
14 Init(DEFAULT); | 14 Init(DEFAULT); |
15 } | 15 } |
16 | 16 |
17 TestBrowserThreadBundle::TestBrowserThreadBundle(int options) { | 17 TestBrowserThreadBundle::TestBrowserThreadBundle(int options) { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 if (options & REAL_IO_THREAD) { | 109 if (options & REAL_IO_THREAD) { |
110 io_thread_.reset(new TestBrowserThread(BrowserThread::IO)); | 110 io_thread_.reset(new TestBrowserThread(BrowserThread::IO)); |
111 io_thread_->StartIOThread(); | 111 io_thread_->StartIOThread(); |
112 } else { | 112 } else { |
113 io_thread_.reset( | 113 io_thread_.reset( |
114 new TestBrowserThread(BrowserThread::IO, message_loop_.get())); | 114 new TestBrowserThread(BrowserThread::IO, message_loop_.get())); |
115 } | 115 } |
116 } | 116 } |
117 | 117 |
118 } // namespace content | 118 } // namespace content |
OLD | NEW |