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, |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 // See the License for the specific language governing permissions and | 12 // See the License for the specific language governing permissions and |
13 // limitations under the License. | 13 // limitations under the License. |
14 | 14 |
15 #include "snapshot/mac/mach_o_image_reader.h" | 15 #include "snapshot/mac/mach_o_image_reader.h" |
16 | 16 |
17 #include <AvailabilityMacros.h> | 17 #include <AvailabilityMacros.h> |
18 #include <dlfcn.h> | 18 #include <dlfcn.h> |
19 #include <mach-o/dyld.h> | 19 #include <mach-o/dyld.h> |
20 #include <mach-o/dyld_images.h> | 20 #include <mach-o/dyld_images.h> |
21 #include <mach-o/getsect.h> | 21 #include <mach-o/getsect.h> |
22 #include <mach-o/ldsyms.h> | 22 #include <mach-o/ldsyms.h> |
23 #include <mach-o/loader.h> | 23 #include <mach-o/loader.h> |
24 #include <mach-o/nlist.h> | 24 #include <mach-o/nlist.h> |
25 #include <stddef.h> | |
26 #include <stdint.h> | 25 #include <stdint.h> |
27 | 26 |
28 #include "base/strings/stringprintf.h" | 27 #include "base/strings/stringprintf.h" |
29 #include "build/build_config.h" | 28 #include "build/build_config.h" |
30 #include "client/crashpad_info.h" | 29 #include "client/crashpad_info.h" |
31 #include "gtest/gtest.h" | 30 #include "gtest/gtest.h" |
32 #include "snapshot/mac/mach_o_image_segment_reader.h" | 31 #include "snapshot/mac/mach_o_image_segment_reader.h" |
33 #include "snapshot/mac/process_reader.h" | 32 #include "snapshot/mac/process_reader.h" |
34 #include "snapshot/mac/process_types.h" | 33 #include "snapshot/mac/process_types.h" |
35 #include "test/mac/dyld.h" | 34 #include "test/mac/dyld.h" |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 image_reader.UUID(&actual_uuid); | 636 image_reader.UUID(&actual_uuid); |
638 EXPECT_EQ(expected_uuid, actual_uuid); | 637 EXPECT_EQ(expected_uuid, actual_uuid); |
639 } | 638 } |
640 } | 639 } |
641 #endif | 640 #endif |
642 } | 641 } |
643 | 642 |
644 } // namespace | 643 } // namespace |
645 } // namespace test | 644 } // namespace test |
646 } // namespace crashpad | 645 } // namespace crashpad |
OLD | NEW |