| Index: chrome/common/ipc_tests.cc
|
| diff --git a/chrome/common/ipc_tests.cc b/chrome/common/ipc_tests.cc
|
| index d347fb5f971e161c6bb01f138bd419bac781b22d..e025261ab5d8ab85772de8d3a38868d732ef93f1 100644
|
| --- a/chrome/common/ipc_tests.cc
|
| +++ b/chrome/common/ipc_tests.cc
|
| @@ -26,6 +26,7 @@
|
| #include "base/test_suite.h"
|
| #include "base/thread.h"
|
| #include "chrome/common/chrome_switches.h"
|
| +#include "chrome/common/chrome_descriptors.h"
|
| #include "chrome/common/ipc_channel.h"
|
| #include "chrome/common/ipc_channel_proxy.h"
|
| #include "chrome/common/ipc_message_utils.h"
|
| @@ -86,11 +87,9 @@ base::ProcessHandle IPCChannelTest::SpawnChild(ChildType child_type,
|
| CommandLine::ForCurrentProcess()->HasSwitch(switches::kDebugChildren);
|
|
|
| base::file_handle_mapping_vector fds_to_map;
|
| - int src_fd;
|
| - int dest_fd;
|
| - channel->GetClientFileDescriptorMapping(&src_fd, &dest_fd);
|
| - if (src_fd > -1) {
|
| - fds_to_map.push_back(std::pair<int,int>(src_fd, dest_fd));
|
| + const int ipcfd = channel->GetClientFileDescriptor();
|
| + if (ipcfd > -1) {
|
| + fds_to_map.push_back(std::pair<int,int>(ipcfd, kPrimaryIPCChannel + 3));
|
| }
|
|
|
| base::ProcessHandle ret = NULL;
|
| @@ -258,11 +257,9 @@ TEST_F(IPCChannelTest, ChannelProxyTest) {
|
| bool debug_on_start = CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kDebugChildren);
|
| base::file_handle_mapping_vector fds_to_map;
|
| - int src_fd;
|
| - int dest_fd;
|
| - chan.GetClientFileDescriptorMapping(&src_fd, &dest_fd);
|
| - if (src_fd > -1) {
|
| - fds_to_map.push_back(std::pair<int,int>(src_fd, dest_fd));
|
| + const int ipcfd = chan.GetClientFileDescriptor();
|
| + if (ipcfd > -1) {
|
| + fds_to_map.push_back(std::pair<int,int>(ipcfd, kPrimaryIPCChannel + 3));
|
| }
|
|
|
| base::ProcessHandle process_handle = MultiProcessTest::SpawnChild(
|
|
|