summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_multiprocess_test.cc
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-25 21:51:35 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-25 21:51:35 +0000
commit3c78858906d3d0d7f5319d7c993240284b4503b5 (patch)
tree1abeaac1ec6d16e96c05ef5f534681979d1f4ef6 /ipc/ipc_multiprocess_test.cc
parentcdf594b2db94ff9c66d3f552a063706c16015c2b (diff)
downloadchromium_src-3c78858906d3d0d7f5319d7c993240284b4503b5.zip
chromium_src-3c78858906d3d0d7f5319d7c993240284b4503b5.tar.gz
chromium_src-3c78858906d3d0d7f5319d7c993240284b4503b5.tar.bz2
Refactor (many) IPC tests, notably most of the multiprocess tests.
This factors out common code and, more importantly/usefully, makes test-specific code more local, and thus easier to add new tests and maintain existing ones. In particular, this allows you to add a new test "client" (running in another process) without modifying ipc_test_base.*. Review URL: https://codereview.chromium.org/12051048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178901 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_multiprocess_test.cc')
-rw-r--r--ipc/ipc_multiprocess_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipc/ipc_multiprocess_test.cc b/ipc/ipc_multiprocess_test.cc
index b13ed7b..8e3c03a 100644
--- a/ipc/ipc_multiprocess_test.cc
+++ b/ipc/ipc_multiprocess_test.cc
@@ -11,9 +11,13 @@
#include "ipc/ipc_descriptors.h"
#endif
+namespace internal {
+
void MultiProcessTestIPCSetUp() {
#if defined(OS_POSIX)
base::GlobalDescriptors::GetInstance()->Set(kPrimaryIPCChannel,
kPrimaryIPCChannel + base::GlobalDescriptors::kBaseDescriptor);
#endif
}
+
+} // namespace internal