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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 ~Multiprocess(); | 85 ~Multiprocess(); |
86 | 86 |
87 //! \brief Establishes the proper testing environment prior to forking. | 87 //! \brief Establishes the proper testing environment prior to forking. |
88 //! | 88 //! |
89 //! Subclasses that solely implement a test should not need to override this | 89 //! Subclasses that solely implement a test should not need to override this |
90 //! method. Subclasses that do not implement tests but instead implement | 90 //! method. Subclasses that do not implement tests but instead implement |
91 //! additional testing features on top of this class may override this method | 91 //! additional testing features on top of this class may override this method |
92 //! provided that they call the superclass’ implementation first as follows: | 92 //! provided that they call the superclass’ implementation first as follows: |
93 //! | 93 //! |
94 //! \code | 94 //! \code |
95 //! virtual void PreFork() override { | 95 //! void PreFork() override { |
96 //! ASSERT_NO_FATAL_FAILURE(Multiprocess::PreFork()); | 96 //! ASSERT_NO_FATAL_FAILURE(Multiprocess::PreFork()); |
97 //! | 97 //! |
98 //! // Place subclass-specific pre-fork code here. | 98 //! // Place subclass-specific pre-fork code here. |
99 //! } | 99 //! } |
100 //! \endcode | 100 //! \endcode |
101 //! | 101 //! |
102 //! Subclass implementations may signal failure by raising their own fatal | 102 //! Subclass implementations may signal failure by raising their own fatal |
103 //! gtest assertions. | 103 //! gtest assertions. |
104 virtual void PreFork(); | 104 virtual void PreFork(); |
105 | 105 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 int code_; | 182 int code_; |
183 TerminationReason reason_; | 183 TerminationReason reason_; |
184 | 184 |
185 DISALLOW_COPY_AND_ASSIGN(Multiprocess); | 185 DISALLOW_COPY_AND_ASSIGN(Multiprocess); |
186 }; | 186 }; |
187 | 187 |
188 } // namespace test | 188 } // namespace test |
189 } // namespace crashpad | 189 } // namespace crashpad |
190 | 190 |
191 #endif // CRASHPAD_UTIL_TEST_MULTIPROCESS_H_ | 191 #endif // CRASHPAD_UTIL_TEST_MULTIPROCESS_H_ |
OLD | NEW |