diff options
-rw-r--r-- | chrome/browser/utility_process_host_unittest.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/utility_process_host_unittest.cc b/chrome/browser/utility_process_host_unittest.cc index b48d95a..b813cb5 100644 --- a/chrome/browser/utility_process_host_unittest.cc +++ b/chrome/browser/utility_process_host_unittest.cc @@ -69,8 +69,9 @@ class TestUtilityProcessHostClient : public UtilityProcessHost::Client { class TestUtilityProcessHost : public UtilityProcessHost { public: TestUtilityProcessHost(TestUtilityProcessHostClient* client, - MessageLoop* loop_io) - : UtilityProcessHost(new ResourceDispatcherHost(NULL), client, loop_io) { + MessageLoop* loop_io, + ResourceDispatcherHost* rdh) + : UtilityProcessHost(rdh, client, loop_io) { } protected: @@ -104,9 +105,9 @@ TEST_F(UtilityProcessHostTest, ExtensionUnpacker) { scoped_refptr<TestUtilityProcessHostClient> client( new TestUtilityProcessHostClient(&message_loop_)); - TestUtilityProcessHost* process_host = new TestUtilityProcessHost( - client.get(), &message_loop_); - process_host->StartExtensionUnpacker( + ResourceDispatcherHost rdh(NULL); + TestUtilityProcessHost process_host(client.get(), &message_loop_, &rdh); + process_host.StartExtensionUnpacker( temp_extension_dir.AppendASCII("theme.crx")); message_loop_.Run(); EXPECT_TRUE(client->success()); |