Chromium Code Reviews| Index: ipc/ipc_test_base.h |
| diff --git a/ipc/ipc_test_base.h b/ipc/ipc_test_base.h |
| index 8fdcbb0f0e2597aea35f15f0baf1d6eee1b12253..a4ede819950b09590dbe23463b3f24ecfc13e0ef 100644 |
| --- a/ipc/ipc_test_base.h |
| +++ b/ipc/ipc_test_base.h |
| @@ -76,6 +76,8 @@ class IPCTestBase : public base::MultiProcessTest { |
| // Starts the client process, returning true if successful; this should be |
| // done after connecting to the channel. |
| bool StartClient(); |
| + // A StartClient() variant that allows caller to pass the FD of IPC pipe |
| + bool StartClient(int ipcfd); |
|
viettrungluu
2014/09/15 20:19:43
a) Our style guide generally forbids overloads. (P
Hajime Morrita
2014/09/15 22:01:36
Right. Rearrange a bit to expose it to OS_POSIX pl
|
| // 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 |
| @@ -83,6 +85,8 @@ class IPCTestBase : public base::MultiProcessTest { |
| // 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() { |