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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/logging.h" | 6 #include "base/logging.h" |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/test/perf_time_logger.h" | 8 #include "base/test/perf_time_logger.h" |
9 #include "mojo/edk/embedder/embedder.h" | 9 #include "mojo/edk/embedder/embedder.h" |
10 #include "mojo/edk/embedder/scoped_platform_handle.h" | 10 #include "mojo/edk/embedder/scoped_platform_handle.h" |
11 #include "mojo/edk/system/handle_signals_state.h" | 11 #include "mojo/edk/system/handle_signals_state.h" |
12 #include "mojo/edk/system/message_pipe_test_utils.h" | 12 #include "mojo/edk/system/message_pipe_test_utils.h" |
13 #include "mojo/edk/system/test_utils.h" | 13 #include "mojo/edk/system/test_utils.h" |
14 #include "mojo/edk/test/test_utils.h" | 14 #include "mojo/edk/test/test_utils.h" |
15 #include "mojo/public/c/system/functions.h" | |
16 #include "mojo/public/cpp/system/message_pipe.h" | |
17 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "third_party/mojo/src/mojo/public/c/system/functions.h" |
| 17 #include "third_party/mojo/src/mojo/public/cpp/system/message_pipe.h" |
18 | 18 |
19 namespace mojo { | 19 namespace mojo { |
20 namespace edk { | 20 namespace edk { |
21 namespace { | 21 namespace { |
22 | 22 |
23 class MultiprocessMessagePipePerfTest | 23 class MultiprocessMessagePipePerfTest |
24 : public test::MultiprocessMessagePipeTestBase { | 24 : public test::MultiprocessMessagePipeTestBase { |
25 public: | 25 public: |
26 MultiprocessMessagePipePerfTest() | 26 MultiprocessMessagePipePerfTest() |
27 : test::MultiprocessMessagePipeTestBase(base::MessageLoop::TYPE_IO), | 27 : test::MultiprocessMessagePipeTestBase(base::MessageLoop::TYPE_IO), |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 Measure(mp.get().value()); | 153 Measure(mp.get().value()); |
154 } | 154 } |
155 | 155 |
156 SendQuitMessage(mp.get().value()); | 156 SendQuitMessage(mp.get().value()); |
157 EXPECT_EQ(0, helper()->WaitForChildShutdown()); | 157 EXPECT_EQ(0, helper()->WaitForChildShutdown()); |
158 } | 158 } |
159 | 159 |
160 } // namespace | 160 } // namespace |
161 } // namespace edk | 161 } // namespace edk |
162 } // namespace mojo | 162 } // namespace mojo |
OLD | NEW |