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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 EXPECT_EQ(nullptr, new_state); | 127 EXPECT_EQ(nullptr, new_state); |
128 } | 128 } |
129 | 129 |
130 return KERN_SUCCESS; | 130 return KERN_SUCCESS; |
131 } | 131 } |
132 | 132 |
133 private: | 133 private: |
134 // MachMultiprocess: | 134 // MachMultiprocess: |
135 | 135 |
136 void MachMultiprocessParent() override { | 136 void MachMultiprocessParent() override { |
137 kern_return_t kr = MachMessageServer::Run(this, | 137 kern_return_t kr = |
138 LocalPort(), | 138 MachMessageServer::Run(this, |
139 MACH_MSG_OPTION_NONE, | 139 LocalPort(), |
140 MachMessageServer::kOneShot, | 140 MACH_MSG_OPTION_NONE, |
141 MachMessageServer::kBlocking, | 141 MachMessageServer::kOneShot, |
142 0); | 142 MachMessageServer::kBlocking, |
| 143 MachMessageServer::kReceiveLargeError, |
| 144 0); |
143 EXPECT_EQ(KERN_SUCCESS, kr) | 145 EXPECT_EQ(KERN_SUCCESS, kr) |
144 << MachErrorMessage(kr, "MachMessageServer::Run"); | 146 << MachErrorMessage(kr, "MachMessageServer::Run"); |
145 | 147 |
146 EXPECT_TRUE(handled_); | 148 EXPECT_TRUE(handled_); |
147 } | 149 } |
148 | 150 |
149 void MachMultiprocessChild() override { | 151 void MachMultiprocessChild() override { |
150 const exception_type_t exception = exception_; | 152 const exception_type_t exception = exception_; |
151 const mach_exception_data_type_t code[] = { | 153 const mach_exception_data_type_t code[] = { |
152 exception_code_, | 154 exception_code_, |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 | 283 |
282 TestExcClientVariants test_exc_client_variants(behavior, true); | 284 TestExcClientVariants test_exc_client_variants(behavior, true); |
283 test_exc_client_variants.Run(); | 285 test_exc_client_variants.Run(); |
284 } | 286 } |
285 } | 287 } |
286 } | 288 } |
287 | 289 |
288 } // namespace | 290 } // namespace |
289 } // namespace test | 291 } // namespace test |
290 } // namespace crashpad | 292 } // namespace crashpad |
OLD | NEW |