diff options
author | amistry <amistry@chromium.org> | 2016-03-07 19:36:08 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-08 03:37:45 +0000 |
commit | 379dad6a6204d1d13270bc95e6c2e89148ca1616 (patch) | |
tree | 504bb68944bf65bf920021b0ad46cbee4c36f027 /mojo/edk/test/scoped_ipc_support.cc | |
parent | 0599b75469cb6edec440ec4c6ec1f3bc29b383f6 (diff) | |
download | chromium_src-379dad6a6204d1d13270bc95e6c2e89148ca1616.zip chromium_src-379dad6a6204d1d13270bc95e6c2e89148ca1616.tar.gz chromium_src-379dad6a6204d1d13270bc95e6c2e89148ca1616.tar.bz2 |
Add an end-to-end, multi-process perftest of using Mojo with the C++ bindings.
BUG=582823
Review URL: https://codereview.chromium.org/1764023002
Cr-Commit-Position: refs/heads/master@{#379717}
Diffstat (limited to 'mojo/edk/test/scoped_ipc_support.cc')
-rw-r--r-- | mojo/edk/test/scoped_ipc_support.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mojo/edk/test/scoped_ipc_support.cc b/mojo/edk/test/scoped_ipc_support.cc index d7ff28b..7dc7c99 100644 --- a/mojo/edk/test/scoped_ipc_support.cc +++ b/mojo/edk/test/scoped_ipc_support.cc @@ -13,6 +13,14 @@ namespace mojo { namespace edk { namespace test { +namespace { +base::TaskRunner* g_io_task_runner = nullptr; +} + +base::TaskRunner* GetIoTaskRunner() { + return g_io_task_runner; +} + namespace internal { ScopedIPCSupportHelper::ScopedIPCSupportHelper() { @@ -38,6 +46,7 @@ void ScopedIPCSupportHelper::OnShutdownCompleteImpl() { ScopedIPCSupport::ScopedIPCSupport( scoped_refptr<base::TaskRunner> io_thread_task_runner) { + g_io_task_runner = io_thread_task_runner.get(); helper_.Init(this, std::move(io_thread_task_runner)); } |