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

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: 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
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

Powered by Google App Engine
This is Rietveld 408576698