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 25 matching lines...) Expand all Loading... |
36 #include "test/errors.h" | 36 #include "test/errors.h" |
37 #include "test/mac/dyld.h" | 37 #include "test/mac/dyld.h" |
38 #include "test/mac/mach_errors.h" | 38 #include "test/mac/mach_errors.h" |
39 #include "test/mac/mach_multiprocess.h" | 39 #include "test/mac/mach_multiprocess.h" |
40 #include "util/file/file_io.h" | 40 #include "util/file/file_io.h" |
41 #include "util/mac/mac_util.h" | 41 #include "util/mac/mac_util.h" |
42 #include "util/mach/mach_extensions.h" | 42 #include "util/mach/mach_extensions.h" |
43 #include "util/stdlib/pointer_container.h" | 43 #include "util/stdlib/pointer_container.h" |
44 #include "util/synchronization/semaphore.h" | 44 #include "util/synchronization/semaphore.h" |
45 | 45 |
| 46 #if !defined(MAC_OS_X_VERSION_10_10) || \ |
| 47 MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10 |
| 48 extern "C" { |
| 49 // Redeclare a typedef whose availability (OSX 10.10) is newer than the |
| 50 // deployment target. |
| 51 typedef struct _cl_device_id* cl_device_id; |
| 52 } // extern "C" |
| 53 #endif |
| 54 |
46 namespace crashpad { | 55 namespace crashpad { |
47 namespace test { | 56 namespace test { |
48 namespace { | 57 namespace { |
49 | 58 |
50 TEST(ProcessReader, SelfBasic) { | 59 TEST(ProcessReader, SelfBasic) { |
51 ProcessReader process_reader; | 60 ProcessReader process_reader; |
52 ASSERT_TRUE(process_reader.Initialize(mach_task_self())); | 61 ASSERT_TRUE(process_reader.Initialize(mach_task_self())); |
53 | 62 |
54 #if !defined(ARCH_CPU_64_BITS) | 63 #if !defined(ARCH_CPU_64_BITS) |
55 EXPECT_FALSE(process_reader.Is64Bit()); | 64 EXPECT_FALSE(process_reader.Is64Bit()); |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 ScopedOpenCLNoOpKernel ensure_cl_kernels; | 829 ScopedOpenCLNoOpKernel ensure_cl_kernels; |
821 ASSERT_NO_FATAL_FAILURE(ensure_cl_kernels.SetUp()); | 830 ASSERT_NO_FATAL_FAILURE(ensure_cl_kernels.SetUp()); |
822 | 831 |
823 ProcessReaderModulesChild process_reader_modules_child; | 832 ProcessReaderModulesChild process_reader_modules_child; |
824 process_reader_modules_child.Run(); | 833 process_reader_modules_child.Run(); |
825 } | 834 } |
826 | 835 |
827 } // namespace | 836 } // namespace |
828 } // namespace test | 837 } // namespace test |
829 } // namespace crashpad | 838 } // namespace crashpad |
OLD | NEW |