| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/perftimer.h" | 13 #include "base/perftimer.h" |
| 14 #include "base/pickle.h" | 14 #include "base/pickle.h" |
| 15 #include "base/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 16 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
| 17 #include "base/time.h" | 17 #include "base/time.h" |
| 18 #include "ipc/ipc_descriptors.h" | |
| 19 #include "ipc/ipc_channel.h" | 18 #include "ipc/ipc_channel.h" |
| 20 #include "ipc/ipc_channel_proxy.h" | 19 #include "ipc/ipc_channel_proxy.h" |
| 20 #include "ipc/ipc_descriptors.h" |
| 21 #include "ipc/ipc_message_utils.h" | 21 #include "ipc/ipc_message_utils.h" |
| 22 #include "ipc/ipc_sender.h" | 22 #include "ipc/ipc_sender.h" |
| 23 #include "ipc/ipc_test_base.h" | 23 #include "ipc/ipc_test_base.h" |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 // This test times the roundtrip IPC message cycle. | 27 // This test times the roundtrip IPC message cycle. |
| 28 // | 28 // |
| 29 // TODO(brettw): Make this test run by default. | 29 // TODO(brettw): Make this test run by default. |
| 30 | 30 |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 IPC::Channel::MODE_CLIENT, | 270 IPC::Channel::MODE_CLIENT, |
| 271 &listener); | 271 &listener); |
| 272 listener.Init(&channel); | 272 listener.Init(&channel); |
| 273 CHECK(channel.Connect()); | 273 CHECK(channel.Connect()); |
| 274 | 274 |
| 275 base::MessageLoop::current()->Run(); | 275 base::MessageLoop::current()->Run(); |
| 276 return 0; | 276 return 0; |
| 277 } | 277 } |
| 278 | 278 |
| 279 } // namespace | 279 } // namespace |
| OLD | NEW |