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

Side by Side Diff: ipc/test_util_mac.h

Issue 1546533002: Switch to standard integer types in ipc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « ipc/sync_socket_unittest.cc ('k') | ipc/test_util_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // This file contains Mac-specific utility functions used by multiple test 5 // This file contains Mac-specific utility functions used by multiple test
6 // suites. 6 // suites.
7 7
8 #ifndef IPC_TEST_UTIL_MAC_H_ 8 #ifndef IPC_TEST_UTIL_MAC_H_
9 #define IPC_TEST_UTIL_MAC_H_ 9 #define IPC_TEST_UTIL_MAC_H_
10 10
11 #include <mach/mach.h> 11 #include <mach/mach.h>
12 #include <stddef.h>
12 13
13 #include <string> 14 #include <string>
14 15
15 #include "base/mac/scoped_mach_port.h" 16 #include "base/mac/scoped_mach_port.h"
16 17
17 namespace IPC { 18 namespace IPC {
18 19
19 // Returns a random name suitable for Mach Server registration. 20 // Returns a random name suitable for Mach Server registration.
20 std::string CreateRandomServiceName(); 21 std::string CreateRandomServiceName();
21 22
(...skipping 29 matching lines...) Expand all
51 void IncrementMachRefCount(mach_port_name_t name, mach_port_right_t right); 52 void IncrementMachRefCount(mach_port_name_t name, mach_port_right_t right);
52 53
53 // Gets the current and maximum protection levels of the memory region. 54 // Gets the current and maximum protection levels of the memory region.
54 // Returns whether the operation was successful. 55 // Returns whether the operation was successful.
55 // |current| and |max| are output variables only populated on success. 56 // |current| and |max| are output variables only populated on success.
56 bool GetMachProtections(void* address, size_t size, int* current, int* max); 57 bool GetMachProtections(void* address, size_t size, int* current, int* max);
57 58
58 } // namespace IPC 59 } // namespace IPC
59 60
60 #endif // IPC_TEST_UTIL_MAC_H_ 61 #endif // IPC_TEST_UTIL_MAC_H_
OLDNEW
« no previous file with comments | « ipc/sync_socket_unittest.cc ('k') | ipc/test_util_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698