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

Unified Diff: content/browser/memory/memory_coordinator_impl_unittest.cc

Issue 2733323002: Changing multiprocess test SpawnChild to return a struct. (Closed)
Patch Set: Synced Created 3 years, 9 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 | « content/browser/mach_broker_mac_unittest.cc ('k') | content/common/sandbox_mac_diraccess_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory/memory_coordinator_impl_unittest.cc
diff --git a/content/browser/memory/memory_coordinator_impl_unittest.cc b/content/browser/memory/memory_coordinator_impl_unittest.cc
index f7316140954212f2fbf4e5ca7a115cc90604fc21..8663ae207e68d610c3819ba0f76e15dccf4865d6 100644
--- a/content/browser/memory/memory_coordinator_impl_unittest.cc
+++ b/content/browser/memory/memory_coordinator_impl_unittest.cc
@@ -552,8 +552,12 @@ TEST_F(MemoryCoordinatorImplTest, MAYBE_GetStateForProcess) {
coordinator_->CreateChildMemoryCoordinator(1);
coordinator_->CreateChildMemoryCoordinator(2);
- base::Process process1 = SpawnChild("process1");
- base::Process process2 = SpawnChild("process2");
+
+ base::SpawnChildResult spawn_result1 = SpawnChild("process1");
+ base::Process& process1 = spawn_result1.process;
+ base::SpawnChildResult spawn_result2 = SpawnChild("process2");
+ base::Process& process2 = spawn_result2.process;
+
coordinator_->GetMockRenderProcessHost(1)->SetProcessHandle(
base::MakeUnique<base::ProcessHandle>(process1.Handle()));
coordinator_->GetMockRenderProcessHost(2)->SetProcessHandle(
« no previous file with comments | « content/browser/mach_broker_mac_unittest.cc ('k') | content/common/sandbox_mac_diraccess_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698