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 "base/lazy_instance.h" | 5 #include "base/lazy_instance.h" |
6 #include "ipc/ipc_perftest_support.h" | 6 #include "ipc/ipc_perftest_support.h" |
7 #include "ipc/mojo/ipc_channel_mojo.h" | 7 #include "ipc/mojo/ipc_channel_mojo.h" |
8 #include "ipc/mojo/ipc_channel_mojo_host.h" | 8 #include "ipc/mojo/ipc_channel_mojo_host.h" |
9 #include "mojo/edk/embedder/test_embedder.h" | 9 #include "mojo/embedder/test_embedder.h" |
10 | 10 |
11 namespace { | 11 namespace { |
12 | 12 |
13 // This is needed because we rely on //base/test:test_support_perf and | 13 // This is needed because we rely on //base/test:test_support_perf and |
14 // it provides main() which doesn't have Mojo initialization. We need | 14 // it provides main() which doesn't have Mojo initialization. We need |
15 // some way to call InitWithSimplePlatformSupport() only once before | 15 // some way to call InitWithSimplePlatformSupport() only once before |
16 // using Mojo. | 16 // using Mojo. |
17 struct MojoInitialier { | 17 struct MojoInitialier { |
18 MojoInitialier() { | 18 MojoInitialier() { |
19 mojo::embedder::test::InitWithSimplePlatformSupport(); | 19 mojo::embedder::test::InitWithSimplePlatformSupport(); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 IPC::Channel::MODE_CLIENT, | 89 IPC::Channel::MODE_CLIENT, |
90 listener)); | 90 listener)); |
91 } | 91 } |
92 | 92 |
93 MULTIPROCESS_IPC_TEST_CLIENT_MAIN(PerformanceClient) { | 93 MULTIPROCESS_IPC_TEST_CLIENT_MAIN(PerformanceClient) { |
94 MojoTestClient client; | 94 MojoTestClient client; |
95 return client.RunMain(); | 95 return client.RunMain(); |
96 } | 96 } |
97 | 97 |
98 } // namespace | 98 } // namespace |
OLD | NEW |