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/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/test/perf_time_logger.h" | 13 #include "base/test/perf_time_logger.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "mojo/edk/test/mojo_test_base.h" | 15 #include "mojo/edk/test/mojo_test_base.h" |
16 #include "mojo/edk/test/scoped_ipc_support.h" | 16 #include "mojo/edk/test/scoped_ipc_support.h" |
17 #include "mojo/public/cpp/bindings/strong_binding.h" | 17 #include "mojo/public/cpp/bindings/strong_binding.h" |
18 #include "mojo/public/interfaces/bindings/tests/ping_service.mojom.h" | 18 #include "mojo/public/interfaces/bindings/tests/ping_service.mojom.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 namespace mojo { | 21 namespace mojo { |
22 namespace { | 22 namespace { |
23 | 23 |
24 class EchoServiceImpl : public test::EchoService { | 24 class EchoServiceImpl : public test::EchoService { |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 MojoHandle client_mp, service_mp; | 197 MojoHandle client_mp, service_mp; |
198 CreateMessagePipe(&client_mp, &service_mp); | 198 CreateMessagePipe(&client_mp, &service_mp); |
199 WriteMessageWithHandles(mp, "hello", &service_mp, 1); | 199 WriteMessageWithHandles(mp, "hello", &service_mp, 1); |
200 RunTestOnTaskRunner(edk::test::GetIoTaskRunner(), client_mp, | 200 RunTestOnTaskRunner(edk::test::GetIoTaskRunner(), client_mp, |
201 "MultiProcessEchoIoThread"); | 201 "MultiProcessEchoIoThread"); |
202 END_CHILD() | 202 END_CHILD() |
203 } | 203 } |
204 | 204 |
205 } // namespace | 205 } // namespace |
206 } // namespace mojo | 206 } // namespace mojo |
OLD | NEW |