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

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

Issue 1153763007: Suppress a partial-availability warning in process_reader_test.cc. (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 7 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698