summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_perftests.cc
blob: cb406260c042fb60bdb797720d4132f41355aab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ipc/ipc_perftest_support.h"

namespace {

// This test times the roundtrip IPC message cycle.
//
// TODO(brettw): Make this test run by default.

class IPCChannelPerfTest : public IPC::test::IPCChannelPerfTestBase {
};

TEST_F(IPCChannelPerfTest, ChannelPingPong) {
  RunTestChannelPingPong(GetDefaultTestParams());
}

TEST_F(IPCChannelPerfTest, ChannelProxyPingPong) {
  RunTestChannelProxyPingPong(GetDefaultTestParams());
}

MULTIPROCESS_IPC_TEST_CLIENT_MAIN(PerformanceClient) {
  IPC::test::PingPongTestClient client;
  return client.RunMain();
}

}  // namespace