Chromium Code Reviews| Index: ipc/ipc_channel.h |
| diff --git a/ipc/ipc_channel.h b/ipc/ipc_channel.h |
| index bfa5ec6ed85cd9ae21d54d3422a6d141930bf0b0..a6b2f9c43ede99d705b7b8be00f23cf8c56377ea 100644 |
| --- a/ipc/ipc_channel.h |
| +++ b/ipc/ipc_channel.h |
| @@ -204,6 +204,14 @@ class IPC_EXPORT Channel : public Sender { |
| static void SetGlobalPid(int pid); |
| #endif |
| +#if defined(OS_ANDROID) |
| + // Most tests are single process and work the same on all platforms. However |
| + // in some cases we want multi-process tests, and Android differs in that it |
| + // can't 'exec' after forking. This callback resets any data in the forked |
| + // process such that it act's similar to if it was exec'd, for tests. |
|
Nico
2014/03/15 03:06:15
acts
epenner
2014/03/17 20:24:53
Done.
|
| + static void NotifyProcessForkedForTesting(); |
| +#endif |
| + |
| protected: |
| // Used in Chrome by the TestSink to provide a dummy channel implementation |
| // for testing. TestSink overrides the "interesting" functions in Channel so |