Index: ipc/ipc_test_base.h |
diff --git a/ipc/ipc_test_base.h b/ipc/ipc_test_base.h |
index 5637a57e8906a10de5915c06a9a4863f4b6a1054..c85c74f43a19e4ecb753b48cf0bc9cfe27cb5e4b 100644 |
--- a/ipc/ipc_test_base.h |
+++ b/ipc/ipc_test_base.h |
@@ -105,6 +105,10 @@ class IPCTestBase : public base::MultiProcessTest { |
IPC::Channel* channel() { return channel_.get(); } |
IPC::ChannelProxy* channel_proxy() { return channel_proxy_.get(); } |
+ void set_channel_proxy(std::unique_ptr<IPC::ChannelProxy> proxy) { |
+ DCHECK(!channel_proxy_); |
+ channel_proxy_.swap(proxy); |
+ } |
const base::Process& client_process() const { return client_process_; } |
scoped_refptr<base::SequencedTaskRunner> task_runner(); |