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

Side by Side Diff: third_party/crashpad/crashpad/snapshot/mac/process_reader_test.cc

Issue 2555353002: Update Crashpad to 32981a3ee9d7c2769fb27afa038fe2e194cfa329 (Closed)
Patch Set: fix readme Created 4 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
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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 // for. 580 // for.
581 cl_device_id device_id; 581 cl_device_id device_id;
582 rv = 582 rv =
583 clGetDeviceIDs(platform_id, CL_DEVICE_TYPE_CPU, 1, &device_id, nullptr); 583 clGetDeviceIDs(platform_id, CL_DEVICE_TYPE_CPU, 1, &device_id, nullptr);
584 ASSERT_EQ(CL_SUCCESS, rv) << "clGetDeviceIDs"; 584 ASSERT_EQ(CL_SUCCESS, rv) << "clGetDeviceIDs";
585 585
586 context_ = clCreateContext(nullptr, 1, &device_id, nullptr, nullptr, &rv); 586 context_ = clCreateContext(nullptr, 1, &device_id, nullptr, nullptr, &rv);
587 ASSERT_EQ(CL_SUCCESS, rv) << "clCreateContext"; 587 ASSERT_EQ(CL_SUCCESS, rv) << "clCreateContext";
588 588
589 // The goal of the program in |sources| is to produce a cl_kernels image 589 // The goal of the program in |sources| is to produce a cl_kernels image
590 // that doesn’t strictly conform to Mach-O expectations. On Mac OS X 10.10, 590 // that doesn’t strictly conform to Mach-O expectations. On OS X 10.10,
591 // cl_kernels modules show up with an __LD,__compact_unwind section, showing 591 // cl_kernels modules show up with an __LD,__compact_unwind section, showing
592 // up in the __TEXT segment. MachOImageSegmentReader would normally reject 592 // up in the __TEXT segment. MachOImageSegmentReader would normally reject
593 // modules for this problem, but a special exception is made when this 593 // modules for this problem, but a special exception is made when this
594 // occurs in cl_kernels images. This portion of the test is aimed at making 594 // occurs in cl_kernels images. This portion of the test is aimed at making
595 // sure that this exception works correctly. 595 // sure that this exception works correctly.
596 // 596 //
597 // A true no-op program doesn’t actually produce unwind data, so there would 597 // A true no-op program doesn’t actually produce unwind data, so there would
598 // be no errant __LD,__compact_unwind section on 10.10, and the test 598 // be no errant __LD,__compact_unwind section on 10.10, and the test
599 // wouldn’t be complete. This simple no-op, which calls a built-in function, 599 // wouldn’t be complete. This simple no-op, which calls a built-in function,
600 // does produce unwind data provided optimization is disabled. 600 // does produce unwind data provided optimization is disabled.
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 ScopedOpenCLNoOpKernel ensure_cl_kernels; 831 ScopedOpenCLNoOpKernel ensure_cl_kernels;
832 ASSERT_NO_FATAL_FAILURE(ensure_cl_kernels.SetUp()); 832 ASSERT_NO_FATAL_FAILURE(ensure_cl_kernels.SetUp());
833 833
834 ProcessReaderModulesChild process_reader_modules_child; 834 ProcessReaderModulesChild process_reader_modules_child;
835 process_reader_modules_child.Run(); 835 process_reader_modules_child.Run();
836 } 836 }
837 837
838 } // namespace 838 } // namespace
839 } // namespace test 839 } // namespace test
840 } // namespace crashpad 840 } // namespace crashpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698