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 <stdint.h> | 5 #include <stdint.h> |
6 #include <stdio.h> | 6 #include <stdio.h> |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/pickle.h" | 16 #include "base/pickle.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "base/test/perf_time_logger.h" | 18 #include "base/test/perf_time_logger.h" |
19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
20 #include "mojo/edk/embedder/scoped_platform_handle.h" | 20 #include "mojo/common/test/test_utils.h" |
21 #include "mojo/edk/system/channel.h" | 21 #include "mojo/embedder/scoped_platform_handle.h" |
22 #include "mojo/edk/system/local_message_pipe_endpoint.h" | 22 #include "mojo/system/channel.h" |
23 #include "mojo/edk/system/message_pipe.h" | 23 #include "mojo/system/local_message_pipe_endpoint.h" |
24 #include "mojo/edk/system/message_pipe_test_utils.h" | 24 #include "mojo/system/message_pipe.h" |
25 #include "mojo/edk/system/proxy_message_pipe_endpoint.h" | 25 #include "mojo/system/message_pipe_test_utils.h" |
26 #include "mojo/edk/system/raw_channel.h" | 26 #include "mojo/system/proxy_message_pipe_endpoint.h" |
27 #include "mojo/edk/system/test_utils.h" | 27 #include "mojo/system/raw_channel.h" |
28 #include "mojo/edk/test/test_utils.h" | 28 #include "mojo/system/test_utils.h" |
29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
30 | 30 |
31 namespace mojo { | 31 namespace mojo { |
32 namespace system { | 32 namespace system { |
33 namespace { | 33 namespace { |
34 | 34 |
35 class MultiprocessMessagePipePerfTest | 35 class MultiprocessMessagePipePerfTest |
36 : public test::MultiprocessMessagePipeTestBase { | 36 : public test::MultiprocessMessagePipeTestBase { |
37 public: | 37 public: |
38 MultiprocessMessagePipePerfTest() : message_count_(0), message_size_(0) {} | 38 MultiprocessMessagePipePerfTest() : message_count_(0), message_size_(0) {} |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 } | 171 } |
172 | 172 |
173 SendQuitMessage(mp); | 173 SendQuitMessage(mp); |
174 mp->Close(0); | 174 mp->Close(0); |
175 EXPECT_EQ(0, helper()->WaitForChildShutdown()); | 175 EXPECT_EQ(0, helper()->WaitForChildShutdown()); |
176 } | 176 } |
177 | 177 |
178 } // namespace | 178 } // namespace |
179 } // namespace system | 179 } // namespace system |
180 } // namespace mojo | 180 } // namespace mojo |
OLD | NEW |