Index: ipc/ipc_test_base.h |
diff --git a/ipc/ipc_test_base.h b/ipc/ipc_test_base.h |
index 5bd3e96ab5f308eea6f1d5debafd09ac8f2313d7..ce3328ad1058d6544f88779e42bda308735fe645 100644 |
--- a/ipc/ipc_test_base.h |
+++ b/ipc/ipc_test_base.h |
@@ -47,6 +47,11 @@ class IPCTestBase : public base::MultiProcessTest { |
bool ConnectChannel(); |
void DestroyChannel(); |
+ // Releases or replaces existing channel. |
+ // These are useful for testing specific types of channel subclasses. |
+ scoped_ptr<IPC::Channel> ReleaseChannel(); |
+ void SetChannel(scoped_ptr<IPC::Channel> channel); |
+ |
// Use this instead of CreateChannel() if you want to use some different |
// channel specification (then use ConnectChannel() as usual). |
void CreateChannelFromChannelHandle(const IPC::ChannelHandle& channel_handle, |
@@ -81,6 +86,7 @@ class IPCTestBase : public base::MultiProcessTest { |
IPC::ChannelProxy* channel_proxy() { return channel_proxy_.get(); } |
const base::ProcessHandle& client_process() const { return client_process_; } |
+ scoped_refptr<base::TaskRunner> io_thread_task_runner(); |
private: |
std::string test_client_name_; |