Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: ipc/ipc_send_fds_test.cc

Issue 3026055: Cleanup in base. This moves the implementation (and a bunch of header file... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "ipc/ipc_tests.h" 7 #include "ipc/ipc_tests.h"
8 8
9 #if defined(OS_MACOSX) 9 #if defined(OS_MACOSX)
10 extern "C" { 10 extern "C" {
11 #include <sandbox.h> 11 #include <sandbox.h>
12 } 12 }
13 #endif 13 #endif
14 #include <fcntl.h> 14 #include <fcntl.h>
15 #include <sys/stat.h> 15 #include <sys/stat.h>
16 16
17 #include "base/eintr_wrapper.h" 17 #include "base/eintr_wrapper.h"
18 #include "base/message_loop.h" 18 #include "base/message_loop.h"
19 #include "ipc/ipc_channel.h" 19 #include "ipc/ipc_channel.h"
20 #include "ipc/ipc_message_utils.h" 20 #include "ipc/ipc_message_utils.h"
21 #include "testing/multiprocess_func_list.h"
21 22
22 #if defined(OS_POSIX) 23 #if defined(OS_POSIX)
23 24
24 namespace { 25 namespace {
25 26
26 const unsigned kNumFDsToSend = 20; 27 const unsigned kNumFDsToSend = 20;
27 const char* kDevZeroPath = "/dev/zero"; 28 const char* kDevZeroPath = "/dev/zero";
28 29
29 static void VerifyAndCloseDescriptor(int fd, ino_t inode_num) { 30 static void VerifyAndCloseDescriptor(int fd, ino_t inode_num) {
30 // Check that we can read from the FD. 31 // Check that we can read from the FD.
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 IPC::Channel chan(kTestClientChannel, IPC::Channel::MODE_SERVER, 179 IPC::Channel chan(kTestClientChannel, IPC::Channel::MODE_SERVER,
179 &listener); 180 &listener);
180 chan.Connect(); 181 chan.Connect();
181 182
182 base::ProcessHandle process_handle = SpawnChild(TEST_DESCRIPTOR_CLIENT, 183 base::ProcessHandle process_handle = SpawnChild(TEST_DESCRIPTOR_CLIENT,
183 &chan); 184 &chan);
184 TestDescriptorServer(chan, process_handle); 185 TestDescriptorServer(chan, process_handle);
185 } 186 }
186 187
187 #endif // defined(OS_POSIX) 188 #endif // defined(OS_POSIX)
OLDNEW
« base/test/test_suite.cc ('K') | « ipc/ipc.gyp ('k') | ipc/ipc_tests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698