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

Unified Diff: chrome/browser/utility_process_host_unittest.cc

Issue 155331: plugins: use OnChannelError to detect when the channel goes away (Closed)
Patch Set: with a fix to a unit test Created 11 years, 5 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
« no previous file with comments | « chrome/browser/utility_process_host.cc ('k') | chrome/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/utility_process_host_unittest.cc
diff --git a/chrome/browser/utility_process_host_unittest.cc b/chrome/browser/utility_process_host_unittest.cc
index b813cb51f3a83a6a236903ce236f572d0a8c49ee..426f8ba2c0cac58be7973a1e0e28823f9b70d95e 100644
--- a/chrome/browser/utility_process_host_unittest.cc
+++ b/chrome/browser/utility_process_host_unittest.cc
@@ -106,8 +106,10 @@ TEST_F(UtilityProcessHostTest, ExtensionUnpacker) {
scoped_refptr<TestUtilityProcessHostClient> client(
new TestUtilityProcessHostClient(&message_loop_));
ResourceDispatcherHost rdh(NULL);
- TestUtilityProcessHost process_host(client.get(), &message_loop_, &rdh);
- process_host.StartExtensionUnpacker(
+ TestUtilityProcessHost* process_host =
+ new TestUtilityProcessHost(client.get(), &message_loop_, &rdh);
+ // process_host will delete itself when it's done.
+ process_host->StartExtensionUnpacker(
temp_extension_dir.AppendASCII("theme.crx"));
message_loop_.Run();
EXPECT_TRUE(client->success());
« no previous file with comments | « chrome/browser/utility_process_host.cc ('k') | chrome/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698