| 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 <mach/mach.h> | 5 #include <mach/mach.h> |
| 6 #include <mach/mach_vm.h> | 6 #include <mach/mach_vm.h> |
| 7 #include <servers/bootstrap.h> | 7 #include <servers/bootstrap.h> |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 8 | 10 |
| 9 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 10 #include "base/mac/mac_util.h" | 12 #include "base/mac/mac_util.h" |
| 11 #include "base/mac/mach_logging.h" | 13 #include "base/mac/mach_logging.h" |
| 12 #include "base/mac/scoped_mach_port.h" | 14 #include "base/mac/scoped_mach_port.h" |
| 15 #include "base/macros.h" |
| 13 #include "base/memory/shared_memory.h" | 16 #include "base/memory/shared_memory.h" |
| 14 #include "base/process/process_handle.h" | 17 #include "base/process/process_handle.h" |
| 15 #include "base/rand_util.h" | 18 #include "base/rand_util.h" |
| 16 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
| 17 #include "base/sys_info.h" | 20 #include "base/sys_info.h" |
| 18 #include "base/test/multiprocess_test.h" | 21 #include "base/test/multiprocess_test.h" |
| 19 #include "base/test/test_timeouts.h" | 22 #include "base/test/test_timeouts.h" |
| 20 #include "testing/multiprocess_func_list.h" | 23 #include "testing/multiprocess_func_list.h" |
| 21 | 24 |
| 22 namespace base { | 25 namespace base { |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 | 480 |
| 478 // Intentionally map with |readonly| set to |false|. | 481 // Intentionally map with |readonly| set to |false|. |
| 479 SharedMemory shared_memory2(shm2, false); | 482 SharedMemory shared_memory2(shm2, false); |
| 480 shared_memory2.Map(s_memory_size); | 483 shared_memory2.Map(s_memory_size); |
| 481 } | 484 } |
| 482 | 485 |
| 483 EXPECT_EQ(active_name_count, GetActiveNameCount()); | 486 EXPECT_EQ(active_name_count, GetActiveNameCount()); |
| 484 } | 487 } |
| 485 | 488 |
| 486 } // namespace base | 489 } // namespace base |
| OLD | NEW |