summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_tests.cc
diff options
context:
space:
mode:
authorsehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-24 16:14:53 +0000
committersehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-24 16:14:53 +0000
commit0840cc764d0f0b693d3762c356b7d35e58d343af (patch)
tree8f1f90ef17b8e395f27f239beaf86ce9b5af6467 /ipc/ipc_tests.cc
parent160673757540777e7db373c56b61673f05870c99 (diff)
downloadchromium_src-0840cc764d0f0b693d3762c356b7d35e58d343af.zip
chromium_src-0840cc764d0f0b693d3762c356b7d35e58d343af.tar.gz
chromium_src-0840cc764d0f0b693d3762c356b7d35e58d343af.tar.bz2
This adds the first version of SyncSocket to base, along with a trivial unittest.
SyncSocket provides a blocking send/receive that can be used for synchronization. Review URL: http://codereview.chromium.org/418004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_tests.cc')
-rw-r--r--ipc/ipc_tests.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/ipc/ipc_tests.cc b/ipc/ipc_tests.cc
index 901427d..a7546c3 100644
--- a/ipc/ipc_tests.cc
+++ b/ipc/ipc_tests.cc
@@ -42,6 +42,7 @@
const char kTestClientChannel[] = "T1";
const char kReflectorChannel[] = "T2";
const char kFuzzerChannel[] = "F3";
+const char kSyncSocketChannel[] = "S4";
const size_t kLongMessageStringNumBytes = 50000;
@@ -78,6 +79,9 @@ base::ProcessHandle IPCChannelTest::SpawnChild(ChildType child_type,
case FUZZER_SERVER:
return MultiProcessTest::SpawnChild(L"RunFuzzServer", debug_on_start);
break;
+ case SYNC_SOCKET_SERVER:
+ return MultiProcessTest::SpawnChild(L"RunSyncSocketServer", debug_on_start);
+ break;
default:
return NULL;
break;
@@ -123,6 +127,11 @@ base::ProcessHandle IPCChannelTest::SpawnChild(ChildType child_type,
fds_to_map,
debug_on_start);
break;
+ case SYNC_SOCKET_SERVER:
+ ret = MultiProcessTest::SpawnChild(L"RunSyncSocketServer",
+ fds_to_map,
+ debug_on_start);
+ break;
default:
return NULL;
break;