| OLD | NEW |
| 1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 ASSERT_EQ(parent_process.exit_code_, exit_code); | 64 ASSERT_EQ(parent_process.exit_code_, exit_code); |
| 65 } | 65 } |
| 66 | 66 |
| 67 protected: | 67 protected: |
| 68 virtual ~WinMultiprocess(); | 68 virtual ~WinMultiprocess(); |
| 69 | 69 |
| 70 //! \brief Sets the expected exit code of the child process. | 70 //! \brief Sets the expected exit code of the child process. |
| 71 //! | 71 //! |
| 72 //! The default expected termination code is `EXIT_SUCCESS` (`0`). | 72 //! The default expected termination code is `EXIT_SUCCESS` (`0`). |
| 73 //! | 73 //! |
| 74 //! \param[in] code The expected exit status of the child. | 74 //! \param[in] exit_code The expected exit status of the child. |
| 75 void SetExpectedChildExitCode(unsigned int exit_code); | 75 void SetExpectedChildExitCode(unsigned int exit_code); |
| 76 | 76 |
| 77 //! \brief Returns the read pipe's file handle. | 77 //! \brief Returns the read pipe's file handle. |
| 78 //! | 78 //! |
| 79 //! This method may be called by either the parent or the child process. | 79 //! This method may be called by either the parent or the child process. |
| 80 //! Anything written to the write pipe in the partner process will appear | 80 //! Anything written to the write pipe in the partner process will appear |
| 81 //! on this file handle in this process. | 81 //! on this file handle in this process. |
| 82 //! | 82 //! |
| 83 //! It is an error to call this after CloseReadPipe() has been called. | 83 //! It is an error to call this after CloseReadPipe() has been called. |
| 84 //! | 84 //! |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 WinChildProcess::Handles* child_handles_; | 177 WinChildProcess::Handles* child_handles_; |
| 178 ChildProcessHelperBase* child_process_helper_; | 178 ChildProcessHelperBase* child_process_helper_; |
| 179 | 179 |
| 180 DISALLOW_COPY_AND_ASSIGN(WinMultiprocess); | 180 DISALLOW_COPY_AND_ASSIGN(WinMultiprocess); |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 } // namespace test | 183 } // namespace test |
| 184 } // namespace crashpad | 184 } // namespace crashpad |
| 185 | 185 |
| 186 #endif // CRASHPAD_TEST_WIN_WIN_MULTIPROCESS_H_ | 186 #endif // CRASHPAD_TEST_WIN_WIN_MULTIPROCESS_H_ |
| OLD | NEW |