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

Unified Diff: ipc/ipc_channel.h

Issue 196343019: IPC: Make ipc_perftests run on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 9 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 | « ipc/ipc.gyp ('k') | ipc/ipc_channel_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel.h
diff --git a/ipc/ipc_channel.h b/ipc/ipc_channel.h
index bfa5ec6ed85cd9ae21d54d3422a6d141930bf0b0..4426e5d5c7b38aa75365b4740694d3ed10f9ce13 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 to test multi-process, and Android differs in that it
+ // can't 'exec' after forking. This callback resets any data in the forked
+ // process such that it acts similar to if it was exec'd, for tests.
+ 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
« no previous file with comments | « ipc/ipc.gyp ('k') | ipc/ipc_channel_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698