| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ipc/ipc_perftest_support.h" | |
| 6 | |
| 7 namespace { | |
| 8 | |
| 9 // This test times the roundtrip IPC message cycle. | |
| 10 // | |
| 11 // TODO(brettw): Make this test run by default. | |
| 12 | |
| 13 class IPCChannelPerfTest : public IPC::test::IPCChannelPerfTestBase { | |
| 14 }; | |
| 15 | |
| 16 TEST_F(IPCChannelPerfTest, ChannelPingPong) { | |
| 17 RunTestChannelPingPong(GetDefaultTestParams()); | |
| 18 } | |
| 19 | |
| 20 TEST_F(IPCChannelPerfTest, ChannelProxyPingPong) { | |
| 21 RunTestChannelProxyPingPong(GetDefaultTestParams()); | |
| 22 } | |
| 23 | |
| 24 MULTIPROCESS_IPC_TEST_CLIENT_MAIN(PerformanceClient) { | |
| 25 IPC::test::PingPongTestClient client; | |
| 26 return client.RunMain(); | |
| 27 } | |
| 28 | |
| 29 } // namespace | |
| OLD | NEW |