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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <mach/mach_vm.h> | 8 #include <mach/mach_vm.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 #include <sys/mman.h> | 10 #include <sys/mman.h> |
11 | 11 |
12 #include <tuple> | 12 #include <tuple> |
13 | 13 |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
16 #include "base/files/scoped_file.h" | 16 #include "base/files/scoped_file.h" |
17 #include "base/files/scoped_temp_dir.h" | 17 #include "base/files/scoped_temp_dir.h" |
18 #include "base/mac/mac_util.h" | 18 #include "base/mac/mac_util.h" |
19 #include "base/mac/mach_logging.h" | 19 #include "base/mac/mach_logging.h" |
| 20 #include "base/memory/free_deleter.h" |
20 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
21 #include "base/memory/shared_memory.h" | 22 #include "base/memory/shared_memory.h" |
22 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
23 #include "base/synchronization/spin_wait.h" | 24 #include "base/synchronization/spin_wait.h" |
24 #include "base/time/time.h" | 25 #include "base/time/time.h" |
25 #include "ipc/attachment_broker_messages.h" | 26 #include "ipc/attachment_broker_messages.h" |
26 #include "ipc/attachment_broker_privileged_mac.h" | 27 #include "ipc/attachment_broker_privileged_mac.h" |
27 #include "ipc/attachment_broker_unprivileged_mac.h" | 28 #include "ipc/attachment_broker_unprivileged_mac.h" |
28 #include "ipc/ipc_listener.h" | 29 #include "ipc/ipc_listener.h" |
29 #include "ipc/ipc_message.h" | 30 #include "ipc/ipc_message.h" |
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 SendControlMessage(sender, success); | 1329 SendControlMessage(sender, success); |
1329 } | 1330 } |
1330 } | 1331 } |
1331 | 1332 |
1332 MULTIPROCESS_IPC_TEST_CLIENT_MAIN(MemoryUsageManyMessages) { | 1333 MULTIPROCESS_IPC_TEST_CLIENT_MAIN(MemoryUsageManyMessages) { |
1333 return CommonPrivilegedProcessMain(&MemoryUsageManyMessagesCallback, | 1334 return CommonPrivilegedProcessMain(&MemoryUsageManyMessagesCallback, |
1334 "MemoryUsageManyMessages"); | 1335 "MemoryUsageManyMessages"); |
1335 } | 1336 } |
1336 | 1337 |
1337 } // namespace | 1338 } // namespace |
OLD | NEW |