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 <stddef.h> |
| 6 |
5 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
6 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "build/build_config.h" |
7 #include "ipc/ipc_perftest_support.h" | 10 #include "ipc/ipc_perftest_support.h" |
8 #include "ipc/mojo/ipc_channel_mojo.h" | 11 #include "ipc/mojo/ipc_channel_mojo.h" |
9 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" | 12 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" |
10 #include "third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.h" | 13 #include "third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.h" |
11 | 14 |
12 namespace { | 15 namespace { |
13 | 16 |
14 // This is needed because we rely on //base/test:test_support_perf and | 17 // This is needed because we rely on //base/test:test_support_perf and |
15 // it provides main() which doesn't have Mojo initialization. We need | 18 // it provides main() which doesn't have Mojo initialization. We need |
16 // some way to call Init() only once before using Mojo. | 19 // some way to call Init() only once before using Mojo. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 MojoTestClient client; | 106 MojoTestClient client; |
104 int rv = client.RunMain(); | 107 int rv = client.RunMain(); |
105 | 108 |
106 base::RunLoop run_loop; | 109 base::RunLoop run_loop; |
107 run_loop.RunUntilIdle(); | 110 run_loop.RunUntilIdle(); |
108 | 111 |
109 return rv; | 112 return rv; |
110 } | 113 } |
111 | 114 |
112 } // namespace | 115 } // namespace |
OLD | NEW |