| 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 15 matching lines...) Expand all Loading... |
| 26 #include <string> | 26 #include <string> |
| 27 #include <vector> | 27 #include <vector> |
| 28 | 28 |
| 29 #include "base/logging.h" | 29 #include "base/logging.h" |
| 30 #include "base/mac/scoped_mach_port.h" | 30 #include "base/mac/scoped_mach_port.h" |
| 31 #include "base/posix/eintr_wrapper.h" | 31 #include "base/posix/eintr_wrapper.h" |
| 32 #include "base/strings/stringprintf.h" | 32 #include "base/strings/stringprintf.h" |
| 33 #include "build/build_config.h" | 33 #include "build/build_config.h" |
| 34 #include "gtest/gtest.h" | 34 #include "gtest/gtest.h" |
| 35 #include "snapshot/mac/mach_o_image_reader.h" | 35 #include "snapshot/mac/mach_o_image_reader.h" |
| 36 #include "test/errors.h" |
| 37 #include "test/mac/dyld.h" |
| 38 #include "test/mac/mach_errors.h" |
| 39 #include "test/mac/mach_multiprocess.h" |
| 36 #include "util/file/file_io.h" | 40 #include "util/file/file_io.h" |
| 37 #include "util/mac/mac_util.h" | 41 #include "util/mac/mac_util.h" |
| 38 #include "util/mach/mach_extensions.h" | 42 #include "util/mach/mach_extensions.h" |
| 39 #include "util/stdlib/pointer_container.h" | 43 #include "util/stdlib/pointer_container.h" |
| 40 #include "util/synchronization/semaphore.h" | 44 #include "util/synchronization/semaphore.h" |
| 41 #include "util/test/errors.h" | |
| 42 #include "util/test/mac/dyld.h" | |
| 43 #include "util/test/mac/mach_errors.h" | |
| 44 #include "util/test/mac/mach_multiprocess.h" | |
| 45 | 45 |
| 46 namespace crashpad { | 46 namespace crashpad { |
| 47 namespace test { | 47 namespace test { |
| 48 namespace { | 48 namespace { |
| 49 | 49 |
| 50 TEST(ProcessReader, SelfBasic) { | 50 TEST(ProcessReader, SelfBasic) { |
| 51 ProcessReader process_reader; | 51 ProcessReader process_reader; |
| 52 ASSERT_TRUE(process_reader.Initialize(mach_task_self())); | 52 ASSERT_TRUE(process_reader.Initialize(mach_task_self())); |
| 53 | 53 |
| 54 #if !defined(ARCH_CPU_64_BITS) | 54 #if !defined(ARCH_CPU_64_BITS) |
| (...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 ScopedOpenCLNoOpKernel ensure_cl_kernels; | 820 ScopedOpenCLNoOpKernel ensure_cl_kernels; |
| 821 ASSERT_NO_FATAL_FAILURE(ensure_cl_kernels.SetUp()); | 821 ASSERT_NO_FATAL_FAILURE(ensure_cl_kernels.SetUp()); |
| 822 | 822 |
| 823 ProcessReaderModulesChild process_reader_modules_child; | 823 ProcessReaderModulesChild process_reader_modules_child; |
| 824 process_reader_modules_child.Run(); | 824 process_reader_modules_child.Run(); |
| 825 } | 825 } |
| 826 | 826 |
| 827 } // namespace | 827 } // namespace |
| 828 } // namespace test | 828 } // namespace test |
| 829 } // namespace crashpad | 829 } // namespace crashpad |
| OLD | NEW |