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

Unified Diff: chrome/browser/renderer_host/resource_dispatcher_host_unittest.cc

Issue 460108: Implement ResourceQueue, an object that makes it easy to delay starting (Closed)
Patch Set: nitfixing Created 11 years 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/renderer_host/resource_dispatcher_host_unittest.cc
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host_unittest.cc b/chrome/browser/renderer_host/resource_dispatcher_host_unittest.cc
index 4feed717a511d2cb1cb57a75046577b76391dbad..7650d9cfba1e8574c3a5a39ba26cb97668917343 100644
--- a/chrome/browser/renderer_host/resource_dispatcher_host_unittest.cc
+++ b/chrome/browser/renderer_host/resource_dispatcher_host_unittest.cc
@@ -148,6 +148,7 @@ class ResourceDispatcherHostTest : public testing::Test,
public:
ResourceDispatcherHostTest()
: Receiver(ChildProcessInfo::RENDER_PROCESS, -1),
+ ui_thread_(ChromeThread::UI, &message_loop_),
io_thread_(ChromeThread::IO, &message_loop_),
old_factory_(NULL) {
set_handle(base::GetCurrentProcessHandle());
@@ -175,6 +176,7 @@ class ResourceDispatcherHostTest : public testing::Test,
&ResourceDispatcherHostTest::Factory);
EnsureTestSchemeIsAllowed();
}
+
virtual void TearDown() {
URLRequest::RegisterProtocolFactory("test", NULL);
if (!scheme_.empty())
@@ -245,6 +247,7 @@ class ResourceDispatcherHostTest : public testing::Test,
}
MessageLoopForIO message_loop_;
+ ChromeThread ui_thread_;
ChromeThread io_thread_;
ResourceDispatcherHost host_;
ResourceIPCAccumulator accum_;
« no previous file with comments | « chrome/browser/renderer_host/resource_dispatcher_host.cc ('k') | chrome/browser/renderer_host/resource_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698