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 "util/mac/process_reader.h" | 15 #include "snapshot/mac/process_reader.h" |
16 | 16 |
17 #include <mach-o/dyld.h> | 17 #include <mach-o/dyld.h> |
18 #include <mach-o/dyld_images.h> | 18 #include <mach-o/dyld_images.h> |
19 #include <mach/mach.h> | 19 #include <mach/mach.h> |
20 #include <string.h> | 20 #include <string.h> |
21 #include <sys/stat.h> | 21 #include <sys/stat.h> |
22 | 22 |
23 #include <map> | 23 #include <map> |
24 #include <string> | 24 #include <string> |
25 #include <vector> | 25 #include <vector> |
26 | 26 |
27 #include "base/logging.h" | 27 #include "base/logging.h" |
28 #include "base/mac/scoped_mach_port.h" | 28 #include "base/mac/scoped_mach_port.h" |
29 #include "base/posix/eintr_wrapper.h" | 29 #include "base/posix/eintr_wrapper.h" |
30 #include "base/strings/stringprintf.h" | 30 #include "base/strings/stringprintf.h" |
31 #include "build/build_config.h" | 31 #include "build/build_config.h" |
32 #include "gtest/gtest.h" | 32 #include "gtest/gtest.h" |
| 33 #include "snapshot/mac/mach_o_image_reader.h" |
33 #include "util/file/fd_io.h" | 34 #include "util/file/fd_io.h" |
34 #include "util/mac/mach_o_image_reader.h" | |
35 #include "util/mach/mach_extensions.h" | 35 #include "util/mach/mach_extensions.h" |
36 #include "util/stdlib/pointer_container.h" | 36 #include "util/stdlib/pointer_container.h" |
37 #include "util/synchronization/semaphore.h" | 37 #include "util/synchronization/semaphore.h" |
38 #include "util/test/errors.h" | 38 #include "util/test/errors.h" |
39 #include "util/test/mac/dyld.h" | 39 #include "util/test/mac/dyld.h" |
40 #include "util/test/mac/mach_errors.h" | 40 #include "util/test/mac/mach_errors.h" |
41 #include "util/test/mac/mach_multiprocess.h" | 41 #include "util/test/mac/mach_multiprocess.h" |
42 | 42 |
43 namespace crashpad { | 43 namespace crashpad { |
44 namespace test { | 44 namespace test { |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 }; | 683 }; |
684 | 684 |
685 TEST(ProcessReader, ChildModules) { | 685 TEST(ProcessReader, ChildModules) { |
686 ProcessReaderModulesChild process_reader_modules_child; | 686 ProcessReaderModulesChild process_reader_modules_child; |
687 process_reader_modules_child.Run(); | 687 process_reader_modules_child.Run(); |
688 } | 688 } |
689 | 689 |
690 } // namespace | 690 } // namespace |
691 } // namespace test | 691 } // namespace test |
692 } // namespace crashpad | 692 } // namespace crashpad |
OLD | NEW |