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

Side by Side Diff: util/test/mac/mach_multiprocess.cc

Issue 880763002: Reorganize Multiprocess and implement for Windows (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes 2 Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « util/net/http_transport_test.cc ('k') | util/test/multiprocess.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 info_->remote_port.reset(); 255 info_->remote_port.reset();
256 info_->local_port.reset(); 256 info_->local_port.reset();
257 257
258 // Close the write pipe now, for cases where the parent is waiting on it to 258 // Close the write pipe now, for cases where the parent is waiting on it to
259 // be closed as an indication that the child has finished. 259 // be closed as an indication that the child has finished.
260 CloseWritePipe(); 260 CloseWritePipe();
261 261
262 // Wait for the parent process to close its end of the pipe. The child process 262 // Wait for the parent process to close its end of the pipe. The child process
263 // needs to remain alive until then because the parent process will attempt to 263 // needs to remain alive until then because the parent process will attempt to
264 // verify it using the task port it has access to via ChildTask(). 264 // verify it using the task port it has access to via ChildTask().
265 CheckedReadFileAtEOF(ReadPipeFD()); 265 CheckedReadFileAtEOF(ReadPipeHandle());
266 266
267 if (testing::Test::HasFailure()) { 267 if (testing::Test::HasFailure()) {
268 // Trigger the ScopedForbidReturn destructor. 268 // Trigger the ScopedForbidReturn destructor.
269 return; 269 return;
270 } 270 }
271 271
272 forbid_return.Disarm(); 272 forbid_return.Disarm();
273 } 273 }
274 274
275 } // namespace test 275 } // namespace test
276 } // namespace crashpad 276 } // namespace crashpad
OLDNEW
« no previous file with comments | « util/net/http_transport_test.cc ('k') | util/test/multiprocess.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698