| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |