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

Unified Diff: mojo/shell/child_process_host_unittest.cc

Issue 420143003: mojo: shell::Context should outlive the shell MessageLoop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix + verify android Created 6 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 | « mojo/shell/android/mojo_main.cc ('k') | mojo/shell/context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/child_process_host_unittest.cc
diff --git a/mojo/shell/child_process_host_unittest.cc b/mojo/shell/child_process_host_unittest.cc
index 97bc96dca08d25d873a7ec287644c404a7de3634..f92a4bb7b2adb2138379dd2ee8a0cdffe07fe807 100644
--- a/mojo/shell/child_process_host_unittest.cc
+++ b/mojo/shell/child_process_host_unittest.cc
@@ -34,10 +34,10 @@ class TestChildProcessHostDelegate : public ChildProcessHost::Delegate {
typedef testing::Test ChildProcessHostTest;
TEST_F(ChildProcessHostTest, Basic) {
+ Context context;
base::MessageLoop message_loop(
scoped_ptr<base::MessagePump>(new common::MessagePumpMojo()));
-
- Context context;
+ context.Init();
TestChildProcessHostDelegate child_process_host_delegate;
ChildProcessHost child_process_host(&context,
&child_process_host_delegate,
« no previous file with comments | « mojo/shell/android/mojo_main.cc ('k') | mojo/shell/context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698