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

Unified Diff: ipc/ipc_test_base.h

Issue 553283002: IPC::ChannelMojo: Introduce IPC::MojoBootstrap for Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build error Created 6 years, 3 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
« no previous file with comments | « content/child/child_thread.cc ('k') | ipc/ipc_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_test_base.h
diff --git a/ipc/ipc_test_base.h b/ipc/ipc_test_base.h
index 8fdcbb0f0e2597aea35f15f0baf1d6eee1b12253..65af35ecfdfd88b455fde915bee8d768677b261c 100644
--- a/ipc/ipc_test_base.h
+++ b/ipc/ipc_test_base.h
@@ -77,12 +77,19 @@ class IPCTestBase : public base::MultiProcessTest {
// done after connecting to the channel.
bool StartClient();
+#if defined(OS_POSIX)
+ // A StartClient() variant that allows caller to pass the FD of IPC pipe
+ bool StartClientWithFD(int ipcfd);
+#endif
+
// Waits for the client to shut down, returning true if successful. Note that
// this does not initiate client shutdown; that must be done by the test
// (somehow). This must be called before the end of the test whenever
// StartClient() was called successfully.
bool WaitForClientShutdown();
+ IPC::ChannelHandle GetTestChannelHandle();
+
// Use this to send IPC messages (when you don't care if you're using a
// channel or a proxy).
IPC::Sender* sender() {
@@ -99,7 +106,11 @@ class IPCTestBase : public base::MultiProcessTest {
virtual scoped_ptr<IPC::ChannelFactory> CreateChannelFactory(
const IPC::ChannelHandle& handle, base::TaskRunner* runner);
+ virtual bool DidStartClient();
+
private:
+ std::string GetTestMainName() const;
+
std::string test_client_name_;
scoped_ptr<base::MessageLoop> message_loop_;
« no previous file with comments | « content/child/child_thread.cc ('k') | ipc/ipc_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698