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

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

Issue 2735113003: Changing SpawnChild to return a struct.
Patch Set: 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/child_process_launcher.cc ('k') | mojo/edk/embedder/BUILD.gn » ('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 7104ef938c235f568ba886436bce832b6234d004..774b4fe9279d83631d8b251cf9dd99a10ae58e05 100644
--- a/content/browser/memory/memory_coordinator_impl_unittest.cc
+++ b/content/browser/memory/memory_coordinator_impl_unittest.cc
@@ -532,8 +532,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_result = SpawnChild("process1");
+ base::Process process1 = std::move(spawn_result.process);
+ spawn_result = SpawnChild("process2");
+ base::Process process2 = std::move(spawn_result.process);
+
coordinator_->GetMockRenderProcessHost(1)->SetProcessHandle(
base::MakeUnique<base::ProcessHandle>(process1.Handle()));
coordinator_->GetMockRenderProcessHost(2)->SetProcessHandle(
« no previous file with comments | « content/browser/child_process_launcher.cc ('k') | mojo/edk/embedder/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698