summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_test_base.h
diff options
context:
space:
mode:
authormorrita <morrita@chromium.org>2014-09-09 12:35:24 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-09 19:41:40 +0000
commit373af03b7c0e1932c7ea3b832918b7767d47ff89 (patch)
tree5be2bbc870238a11e54e650434ddcf09472a9600 /ipc/ipc_test_base.h
parent182520b878bee21aad3500391cd51d486e37bf1e (diff)
downloadchromium_src-373af03b7c0e1932c7ea3b832918b7767d47ff89.zip
chromium_src-373af03b7c0e1932c7ea3b832918b7767d47ff89.tar.gz
chromium_src-373af03b7c0e1932c7ea3b832918b7767d47ff89.tar.bz2
Add ipc_mojo_perftests
This change adds ipc_mojo_perftests that runs the same benchmark as of ipc_perftests. Now head-to-head comparison becomes possible. For this change, whole ipc_perftests logic is extracted to ipc_perftest_support.cc to make it reusable by ipc_mojo_perftests. TEST=none BUG=none R=jam@chromium.org, darin@chromium.org, yuzhu@chromium.org Review URL: https://codereview.chromium.org/536213002 Cr-Commit-Position: refs/heads/master@{#293988}
Diffstat (limited to 'ipc/ipc_test_base.h')
-rw-r--r--ipc/ipc_test_base.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipc/ipc_test_base.h b/ipc/ipc_test_base.h
index ff34945..8fdcbb0 100644
--- a/ipc/ipc_test_base.h
+++ b/ipc/ipc_test_base.h
@@ -12,6 +12,7 @@
#include "base/process/process.h"
#include "base/test/multiprocess_test.h"
#include "ipc/ipc_channel.h"
+#include "ipc/ipc_channel_factory.h"
#include "ipc/ipc_channel_proxy.h"
#include "ipc/ipc_multiprocess_test.h"
@@ -95,6 +96,9 @@ class IPCTestBase : public base::MultiProcessTest {
const base::ProcessHandle& client_process() const { return client_process_; }
scoped_refptr<base::TaskRunner> task_runner();
+ virtual scoped_ptr<IPC::ChannelFactory> CreateChannelFactory(
+ const IPC::ChannelHandle& handle, base::TaskRunner* runner);
+
private:
std::string test_client_name_;
scoped_ptr<base::MessageLoop> message_loop_;