Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(638)

Unified Diff: ipc/ipc_test_base.h

Issue 382333002: Introduce ChannelMojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;
« ipc/ipc_channel.h ('K') | « ipc/ipc_sync_channel.cc ('k') | ipc/ipc_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698