OLD | NEW |
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 Loading... |
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 |
OLD | NEW |