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

Unified Diff: ipc/ipc_multiprocess_test.cc

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_channel_posix.cc ('k') | ipc/ipc_perftests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_multiprocess_test.cc
diff --git a/ipc/ipc_multiprocess_test.cc b/ipc/ipc_multiprocess_test.cc
index 8e3c03a1db62e192f7999dac2b625fff3f5200d7..8da67b2c8a689cb5d675452c0dc5ff604f2816d2 100644
--- a/ipc/ipc_multiprocess_test.cc
+++ b/ipc/ipc_multiprocess_test.cc
@@ -4,6 +4,7 @@
#include "build/build_config.h"
+#include "ipc/ipc_channel.h"
#include "ipc/ipc_multiprocess_test.h"
#if defined(OS_POSIX)
@@ -14,6 +15,12 @@
namespace internal {
void MultiProcessTestIPCSetUp() {
+#if defined(OS_ANDROID)
+ // On Android we can't 'exec'. So for simple multi-process tests
+ // we need to reset some global data after forking to get the same
+ // behavior in simple multi-process tests.
+ IPC::Channel::NotifyProcessForkedForTesting();
+#endif
#if defined(OS_POSIX)
base::GlobalDescriptors::GetInstance()->Set(kPrimaryIPCChannel,
kPrimaryIPCChannel + base::GlobalDescriptors::kBaseDescriptor);
« no previous file with comments | « ipc/ipc_channel_posix.cc ('k') | ipc/ipc_perftests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698