| 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 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "mojo/edk/embedder/scoped_platform_handle.h" | 13 #include "mojo/edk/embedder/scoped_platform_handle.h" |
| 14 #include "mojo/edk/system/local_message_pipe_endpoint.h" | 14 #include "mojo/edk/system/local_message_pipe_endpoint.h" |
| 15 #include "mojo/edk/system/message_pipe.h" | 15 #include "mojo/edk/system/message_pipe.h" |
| 16 #include "mojo/edk/system/message_pipe_test_utils.h" | 16 #include "mojo/edk/system/message_pipe_test_utils.h" |
| 17 #include "mojo/edk/system/proxy_message_pipe_endpoint.h" | 17 #include "mojo/edk/system/proxy_message_pipe_endpoint.h" |
| 18 #include "mojo/edk/system/ref_ptr.h" | |
| 19 #include "mojo/edk/system/test/perf_log.h" | 18 #include "mojo/edk/system/test/perf_log.h" |
| 20 #include "mojo/edk/system/test/stopwatch.h" | 19 #include "mojo/edk/system/test/stopwatch.h" |
| 21 #include "mojo/edk/test/test_utils.h" | 20 #include "mojo/edk/test/test_utils.h" |
| 21 #include "mojo/edk/util/ref_ptr.h" |
| 22 #include "mojo/public/cpp/system/macros.h" | 22 #include "mojo/public/cpp/system/macros.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 24 | 24 |
| 25 using mojo::util::RefPtr; |
| 26 |
| 25 namespace mojo { | 27 namespace mojo { |
| 26 namespace system { | 28 namespace system { |
| 27 namespace { | 29 namespace { |
| 28 | 30 |
| 29 class MultiprocessMessagePipePerfTest | 31 class MultiprocessMessagePipePerfTest |
| 30 : public test::MultiprocessMessagePipeTestBase { | 32 : public test::MultiprocessMessagePipeTestBase { |
| 31 public: | 33 public: |
| 32 MultiprocessMessagePipePerfTest() : message_count_(0), message_size_(0) {} | 34 MultiprocessMessagePipePerfTest() : message_count_(0), message_size_(0) {} |
| 33 | 35 |
| 34 void SetUpMeasurement(int message_count, size_t message_size) { | 36 void SetUpMeasurement(int message_count, size_t message_size) { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 } | 159 } |
| 158 | 160 |
| 159 SendQuitMessage(mp.get()); | 161 SendQuitMessage(mp.get()); |
| 160 mp->Close(0); | 162 mp->Close(0); |
| 161 EXPECT_EQ(0, helper()->WaitForChildShutdown()); | 163 EXPECT_EQ(0, helper()->WaitForChildShutdown()); |
| 162 } | 164 } |
| 163 | 165 |
| 164 } // namespace | 166 } // namespace |
| 165 } // namespace system | 167 } // namespace system |
| 166 } // namespace mojo | 168 } // namespace mojo |
| OLD | NEW |