summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_test_base.cc
diff options
context:
space:
mode:
authordongseong.hwang@intel.com <dongseong.hwang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-06 23:11:18 +0000
committerdongseong.hwang@intel.com <dongseong.hwang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-06 23:11:18 +0000
commit2862eebc98c6442447b7b501d1ceb3f2bd1775d9 (patch)
treeb9040f7756df71463406568533d4f1a52022d180 /ipc/ipc_test_base.cc
parent3b5c3f15c2c226a655d02c8f888c07884773d9e3 (diff)
downloadchromium_src-2862eebc98c6442447b7b501d1ceb3f2bd1775d9.zip
chromium_src-2862eebc98c6442447b7b501d1ceb3f2bd1775d9.tar.gz
chromium_src-2862eebc98c6442447b7b501d1ceb3f2bd1775d9.tar.bz2
Use base::GlobalDescriptors::kBaseDescriptor instead of magic number 3.
Review URL: https://chromiumcodereview.appspot.com/23814006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221809 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_test_base.cc')
-rw-r--r--ipc/ipc_test_base.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/ipc/ipc_test_base.cc b/ipc/ipc_test_base.cc
index 5e16e42..ef050a7 100644
--- a/ipc/ipc_test_base.cc
+++ b/ipc/ipc_test_base.cc
@@ -14,6 +14,10 @@
#include "ipc/ipc_descriptors.h"
#include "ipc/ipc_switches.h"
+#if defined(OS_POSIX)
+#include "base/posix/global_descriptors.h"
+#endif
+
// static
std::string IPCTestBase::GetChannelName(const std::string& test_client_name) {
DCHECK(!test_client_name.empty());
@@ -102,7 +106,8 @@ bool IPCTestBase::StartClient() {
const int ipcfd = channel_.get() ? channel_->GetClientFileDescriptor() :
channel_proxy_->GetClientFileDescriptor();
if (ipcfd > -1)
- fds_to_map.push_back(std::pair<int, int>(ipcfd, kPrimaryIPCChannel + 3));
+ fds_to_map.push_back(std::pair<int, int>(ipcfd,
+ kPrimaryIPCChannel + base::GlobalDescriptors::kBaseDescriptor));
client_process_ = MultiProcessTest::SpawnChild(test_main,
fds_to_map,