OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <string> | 5 #include <string> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/memory/ptr_util.h" |
10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
12 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
13 #include "base/test/perf_time_logger.h" | 14 #include "base/test/perf_time_logger.h" |
14 #include "base/threading/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
15 #include "mojo/edk/test/mojo_test_base.h" | 16 #include "mojo/edk/test/mojo_test_base.h" |
16 #include "mojo/edk/test/scoped_ipc_support.h" | 17 #include "mojo/edk/test/scoped_ipc_support.h" |
17 #include "mojo/public/cpp/bindings/strong_binding.h" | 18 #include "mojo/public/cpp/bindings/strong_binding.h" |
18 #include "mojo/public/interfaces/bindings/tests/ping_service.mojom.h" | 19 #include "mojo/public/interfaces/bindings/tests/ping_service.mojom.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 MojoHandle client_mp, service_mp; | 195 MojoHandle client_mp, service_mp; |
195 CreateMessagePipe(&client_mp, &service_mp); | 196 CreateMessagePipe(&client_mp, &service_mp); |
196 WriteMessageWithHandles(mp, "hello", &service_mp, 1); | 197 WriteMessageWithHandles(mp, "hello", &service_mp, 1); |
197 RunTestOnTaskRunner(edk::test::GetIoTaskRunner(), client_mp, | 198 RunTestOnTaskRunner(edk::test::GetIoTaskRunner(), client_mp, |
198 "MultiProcessEchoIoThread"); | 199 "MultiProcessEchoIoThread"); |
199 END_CHILD() | 200 END_CHILD() |
200 } | 201 } |
201 | 202 |
202 } // namespace | 203 } // namespace |
203 } // namespace mojo | 204 } // namespace mojo |
OLD | NEW |