diff options
author | morrita@chromium.org <morrita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-06 20:13:51 +0000 |
---|---|---|
committer | morrita@chromium.org <morrita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-06 20:13:51 +0000 |
commit | 2f60c9b74db6c61424a5a9c731acef26a9260c9c (patch) | |
tree | ef3fb081703d0fb3f20f2d279f2d73310a14eac6 /ipc/ipc_test_base.cc | |
parent | 42dbdaa6943939486e36e8ded5eb26f2419eeee3 (diff) | |
download | chromium_src-2f60c9b74db6c61424a5a9c731acef26a9260c9c.zip chromium_src-2f60c9b74db6c61424a5a9c731acef26a9260c9c.tar.gz chromium_src-2f60c9b74db6c61424a5a9c731acef26a9260c9c.tar.bz2 |
Make IPC::Channel polymorphic
This change makes each platform specific ChannelImpl into
a subclass of Channel: ChannelPosix, ChannelWin, ChannelNacl.
delegated functions are now virtual.
TEST=none
BUG=377980
R=darin@chromium.org, jam@chromium.org
Review URL: https://codereview.chromium.org/310293002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275505 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_test_base.cc')
-rw-r--r-- | ipc/ipc_test_base.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ipc/ipc_test_base.cc b/ipc/ipc_test_base.cc index 4e7133b..589ee98 100644 --- a/ipc/ipc_test_base.cc +++ b/ipc/ipc_test_base.cc @@ -97,8 +97,9 @@ bool IPCTestBase::StartClient() { client_process_ = SpawnChild(test_main); #elif defined(OS_POSIX) base::FileHandleMappingVector fds_to_map; - const int ipcfd = channel_.get() ? channel_->GetClientFileDescriptor() : - channel_proxy_->GetClientFileDescriptor(); + const int ipcfd = channel_.get() + ? channel_->GetClientFileDescriptor() + : channel_proxy_->GetClientFileDescriptor(); if (ipcfd > -1) fds_to_map.push_back(std::pair<int, int>(ipcfd, kPrimaryIPCChannel + base::GlobalDescriptors::kBaseDescriptor)); |