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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 void CloseReadPipe(); | 145 void CloseReadPipe(); |
146 | 146 |
147 //! \brief Closes the write pipe. | 147 //! \brief Closes the write pipe. |
148 //! | 148 //! |
149 //! This method may be called by either the parent or the child process. An | 149 //! This method may be called by either the parent or the child process. An |
150 //! attempt to read from the read pipe in the partner process will indicate | 150 //! attempt to read from the read pipe in the partner process will indicate |
151 //! end-of-file. WritePipeHandle() must not be called after this. | 151 //! end-of-file. WritePipeHandle() must not be called after this. |
152 void CloseWritePipe(); | 152 void CloseWritePipe(); |
153 | 153 |
154 void set_info(internal::MultiprocessInfo* info) { info_ = info; } | 154 void set_info(internal::MultiprocessInfo* info) { info_ = info; } |
155 internal::MultiprocessInfo* info() const { return info_; } | 155 internal::MultiprocessInfo* info() { return info_; } |
156 | 156 |
157 private: | 157 private: |
158 //! \brief Runs the parent side of the test. | 158 //! \brief Runs the parent side of the test. |
159 //! | 159 //! |
160 //! This method establishes the parent’s environment and calls | 160 //! This method establishes the parent’s environment and calls |
161 //! MultiprocessParent(). | 161 //! MultiprocessParent(). |
162 void RunParent(); | 162 void RunParent(); |
163 | 163 |
164 //! \brief Runs the child side of the test. | 164 //! \brief Runs the child side of the test. |
165 //! | 165 //! |
(...skipping 26 matching lines...) Expand all Loading... |
192 int code_; | 192 int code_; |
193 TerminationReason reason_; | 193 TerminationReason reason_; |
194 | 194 |
195 DISALLOW_COPY_AND_ASSIGN(Multiprocess); | 195 DISALLOW_COPY_AND_ASSIGN(Multiprocess); |
196 }; | 196 }; |
197 | 197 |
198 } // namespace test | 198 } // namespace test |
199 } // namespace crashpad | 199 } // namespace crashpad |
200 | 200 |
201 #endif // CRASHPAD_UTIL_TEST_MULTIPROCESS_H_ | 201 #endif // CRASHPAD_UTIL_TEST_MULTIPROCESS_H_ |
OLD | NEW |