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

Side by Side Diff: sandbox/mac/bootstrap_sandbox_unittest.mm

Issue 1133713009: Subject .mm files to the header sorting presubmit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase - of course... it would be one of my patches I conflict with :| 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/video/capture/mac/video_capture_device_factory_mac.mm ('k') | sync/util/get_session_name_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698