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

Side by Side Diff: ipc/attachment_broker_privileged_mac_unittest.cc

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/attachment_broker_privileged_mac.cc ('k') | ipc/attachment_broker_privileged_win.h » ('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 #include "ipc/attachment_broker_privileged_mac.h" 5 #include "ipc/attachment_broker_privileged_mac.h"
6 6
7 #include <mach/mach.h> 7 #include <mach/mach.h>
8 #include <mach/mach_vm.h> 8 #include <mach/mach_vm.h>
9 #include <stddef.h>
10 #include <stdint.h>
9 11
10 #include <map> 12 #include <map>
11 13
12 #include "base/command_line.h" 14 #include "base/command_line.h"
13 #include "base/mac/mac_util.h" 15 #include "base/mac/mac_util.h"
14 #include "base/mac/mach_logging.h" 16 #include "base/mac/mach_logging.h"
15 #include "base/mac/scoped_mach_port.h" 17 #include "base/mac/scoped_mach_port.h"
18 #include "base/macros.h"
16 #include "base/memory/shared_memory.h" 19 #include "base/memory/shared_memory.h"
17 #include "base/process/port_provider_mac.h" 20 #include "base/process/port_provider_mac.h"
18 #include "base/process/process_handle.h" 21 #include "base/process/process_handle.h"
19 #include "base/sys_info.h" 22 #include "base/sys_info.h"
20 #include "base/test/multiprocess_test.h" 23 #include "base/test/multiprocess_test.h"
21 #include "base/test/test_timeouts.h" 24 #include "base/test/test_timeouts.h"
22 #include "ipc/test_util_mac.h" 25 #include "ipc/test_util_mac.h"
23 #include "testing/multiprocess_func_list.h" 26 #include "testing/multiprocess_func_list.h"
24 27
25 namespace IPC { 28 namespace IPC {
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 // After releasing one shared memory region, the name count should decrement. 426 // After releasing one shared memory region, the name count should decrement.
424 shared_memory.reset(); 427 shared_memory.reset();
425 EXPECT_EQ(original_name_count + 1, GetActiveNameCount()); 428 EXPECT_EQ(original_name_count + 1, GetActiveNameCount());
426 shared_memory2.reset(); 429 shared_memory2.reset();
427 EXPECT_EQ(original_name_count, GetActiveNameCount()); 430 EXPECT_EQ(original_name_count, GetActiveNameCount());
428 431
429 return 0; 432 return 0;
430 } 433 }
431 434
432 } // namespace IPC 435 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/attachment_broker_privileged_mac.cc ('k') | ipc/attachment_broker_privileged_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698