| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "sandbox/mac/xpc_message_server.h" | 5 #include "sandbox/mac/xpc_message_server.h" |
| 6 | 6 |
| 7 #include <Block.h> | 7 #include <Block.h> |
| 8 #include <mach/mach.h> | 8 #include <mach/mach.h> |
| 9 #include <servers/bootstrap.h> | 9 #include <servers/bootstrap.h> |
| 10 #include <stdint.h> |
| 10 | 11 |
| 11 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 12 #include "base/logging.h" | 13 #include "base/logging.h" |
| 13 #include "base/mac/mac_util.h" | 14 #include "base/mac/mac_util.h" |
| 14 #include "base/mac/scoped_mach_port.h" | 15 #include "base/mac/scoped_mach_port.h" |
| 15 #include "base/process/kill.h" | 16 #include "base/process/kill.h" |
| 16 #include "base/test/multiprocess_test.h" | 17 #include "base/test/multiprocess_test.h" |
| 17 #include "sandbox/mac/xpc.h" | 18 #include "sandbox/mac/xpc.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "testing/multiprocess_func_list.h" | 20 #include "testing/multiprocess_func_list.h" |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 ASSERT_EQ(0, xpc_pipe_routine(first.pipe(), request, &reply)); | 223 ASSERT_EQ(0, xpc_pipe_routine(first.pipe(), request, &reply)); |
| 223 | 224 |
| 224 EXPECT_EQ(1, xpc_dictionary_get_int64(reply, "seen_by_first")); | 225 EXPECT_EQ(1, xpc_dictionary_get_int64(reply, "seen_by_first")); |
| 225 EXPECT_EQ(2, xpc_dictionary_get_int64(reply, "seen_by_second")); | 226 EXPECT_EQ(2, xpc_dictionary_get_int64(reply, "seen_by_second")); |
| 226 | 227 |
| 227 xpc_release(request); | 228 xpc_release(request); |
| 228 xpc_release(reply); | 229 xpc_release(reply); |
| 229 } | 230 } |
| 230 | 231 |
| 231 } // namespace sandbox | 232 } // namespace sandbox |
| OLD | NEW |