| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sandbox/mac/bootstrap_sandbox.h" | 5 #include "sandbox/mac/bootstrap_sandbox.h" |
| 6 | 6 |
| 7 #include <CoreFoundation/CoreFoundation.h> | 7 #include <CoreFoundation/CoreFoundation.h> |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 #include <mach/mach.h> | 9 #include <mach/mach.h> |
| 10 #include <servers/bootstrap.h> | 10 #include <servers/bootstrap.h> |
| 11 | 11 |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/mac/mac_util.h" | 13 #include "base/mac/mac_util.h" |
| 14 #include "base/mac/mach_logging.h" | 14 #include "base/mac/mach_logging.h" |
| 15 #include "base/mac/scoped_mach_port.h" |
| 15 #include "base/mac/scoped_nsobject.h" | 16 #include "base/mac/scoped_nsobject.h" |
| 16 #include "base/mac/scoped_mach_port.h" | |
| 17 #include "base/process/kill.h" | 17 #include "base/process/kill.h" |
| 18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
| 19 #include "base/test/multiprocess_test.h" | 19 #include "base/test/multiprocess_test.h" |
| 20 #include "base/test/test_timeouts.h" | 20 #include "base/test/test_timeouts.h" |
| 21 #import "testing/gtest_mac.h" | 21 #import "testing/gtest_mac.h" |
| 22 #include "testing/multiprocess_func_list.h" | 22 #include "testing/multiprocess_func_list.h" |
| 23 | 23 |
| 24 NSString* const kTestNotification = @"org.chromium.bootstrap_sandbox_test"; | 24 NSString* const kTestNotification = @"org.chromium.bootstrap_sandbox_test"; |
| 25 | 25 |
| 26 @interface DistributedNotificationObserver : NSObject { | 26 @interface DistributedNotificationObserver : NSObject { |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 kr = mach_msg_receive(&rcv_msg.header); | 509 kr = mach_msg_receive(&rcv_msg.header); |
| 510 MACH_CHECK(kr == KERN_SUCCESS, kr) << "mach_msg_receive"; | 510 MACH_CHECK(kr == KERN_SUCCESS, kr) << "mach_msg_receive"; |
| 511 | 511 |
| 512 // Try to message the sandbox. | 512 // Try to message the sandbox. |
| 513 bootstrap_look_up(bootstrap_port, "test", &port); | 513 bootstrap_look_up(bootstrap_port, "test", &port); |
| 514 | 514 |
| 515 return 0; | 515 return 0; |
| 516 } | 516 } |
| 517 | 517 |
| 518 } // namespace sandbox | 518 } // namespace sandbox |
| OLD | NEW |