Clean up channel modes
Makes channel modes flags instead of a straight enum allowing us to check
properties directly.
BUG=none
TEST=BUILD
Review URL: http://codereview.chromium.org/6334061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73658 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 1707726c90f2e3eca0c91e08586130988bd6edfd
diff --git a/ipc/ipc_sync_channel_unittest.cc b/ipc/ipc_sync_channel_unittest.cc
index de40083..11e361e 100644
--- a/ipc/ipc_sync_channel_unittest.cc
+++ b/ipc/ipc_sync_channel_unittest.cc
@@ -233,7 +233,7 @@
// First we create the workers that are channel servers, or else the other
// workers' channel initialization might fail because the pipe isn't created..
for (size_t i = 0; i < workers.size(); ++i) {
- if (workers[i]->mode() == Channel::MODE_SERVER) {
+ if (workers[i]->mode() & Channel::MODE_SERVER_FLAG) {
workers[i]->Start();
workers[i]->WaitForChannelCreation();
}
@@ -241,7 +241,7 @@
// now create the clients
for (size_t i = 0; i < workers.size(); ++i) {
- if (workers[i]->mode() == Channel::MODE_CLIENT)
+ if (workers[i]->mode() & Channel::MODE_CLIENT_FLAG)
workers[i]->Start();
}