Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: snapshot/mac/mach_o_image_annotations_reader_test.cc

Issue 756803002: Add a ReceiveLarge parameter to MachMessageServer::Run() (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « client/simulate_crash_mac_test.cc ('k') | tools/catch_exception_tool.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 217
218 if (test_type_ != kDontCrash) { 218 if (test_type_ != kDontCrash) {
219 // Handle the child’s crash. Further validation will be done in 219 // Handle the child’s crash. Further validation will be done in
220 // CatchMachException(). 220 // CatchMachException().
221 mach_msg_return_t mr = 221 mach_msg_return_t mr =
222 MachMessageServer::Run(this, 222 MachMessageServer::Run(this,
223 LocalPort(), 223 LocalPort(),
224 MACH_MSG_OPTION_NONE, 224 MACH_MSG_OPTION_NONE,
225 MachMessageServer::kOneShot, 225 MachMessageServer::kOneShot,
226 MachMessageServer::kBlocking, 226 MachMessageServer::kBlocking,
227 MachMessageServer::kReceiveLargeError,
227 MACH_MSG_TIMEOUT_NONE); 228 MACH_MSG_TIMEOUT_NONE);
228 EXPECT_EQ(MACH_MSG_SUCCESS, mr) 229 EXPECT_EQ(MACH_MSG_SUCCESS, mr)
229 << MachErrorMessage(mr, "MachMessageServer::Run"); 230 << MachErrorMessage(mr, "MachMessageServer::Run");
230 231
231 switch (test_type_) { 232 switch (test_type_) {
232 case kCrashAbort: 233 case kCrashAbort:
233 SetExpectedChildTermination(kTerminationSignal, SIGABRT); 234 SetExpectedChildTermination(kTerminationSignal, SIGABRT);
234 break; 235 break;
235 236
236 case kCrashDyld: 237 case kCrashDyld:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 326
326 TEST(MachOImageAnnotationsReader, CrashDyld) { 327 TEST(MachOImageAnnotationsReader, CrashDyld) {
327 TestMachOImageAnnotationsReader test_mach_o_image_annotations_reader( 328 TestMachOImageAnnotationsReader test_mach_o_image_annotations_reader(
328 TestMachOImageAnnotationsReader::kCrashDyld); 329 TestMachOImageAnnotationsReader::kCrashDyld);
329 test_mach_o_image_annotations_reader.Run(); 330 test_mach_o_image_annotations_reader.Run();
330 } 331 }
331 332
332 } // namespace 333 } // namespace
333 } // namespace test 334 } // namespace test
334 } // namespace crashpad 335 } // namespace crashpad
OLDNEW
« no previous file with comments | « client/simulate_crash_mac_test.cc ('k') | tools/catch_exception_tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698