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

Side by Side Diff: ipc/sync_socket_unittest.cc

Issue 11858023: More IPC test header cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « ipc/ipc_test_base.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/sync_socket.h" 5 #include "base/sync_socket.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <string> 8 #include <string>
9 #include <sstream> 9 #include <sstream>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/process_util.h" 13 #include "base/process_util.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "ipc/ipc_channel_proxy.h" 15 #include "ipc/ipc_channel_proxy.h"
16 #include "ipc/ipc_multiprocess_test.h" 16 #include "ipc/ipc_multiprocess_test.h"
17 #include "ipc/ipc_test_base.h" 17 #include "ipc/ipc_test_base.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #include "testing/multiprocess_func_list.h"
20 19
21 #if defined(OS_POSIX) 20 #if defined(OS_POSIX)
22 #include "base/file_descriptor_posix.h" 21 #include "base/file_descriptor_posix.h"
23 #endif 22 #endif
24 23
25 // IPC messages for testing ---------------------------------------------------- 24 // IPC messages for testing ----------------------------------------------------
26 25
27 #define IPC_MESSAGE_IMPL 26 #define IPC_MESSAGE_IMPL
28 #include "ipc/ipc_message_macros.h" 27 #include "ipc/ipc_message_macros.h"
29 28
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 302
304 // Read from another socket to free some space for a new write. 303 // Read from another socket to free some space for a new write.
305 char hello[kHelloStringLength] = {0}; 304 char hello[kHelloStringLength] = {0};
306 pair[1].Receive(&hello[0], sizeof(hello)); 305 pair[1].Receive(&hello[0], sizeof(hello));
307 306
308 // Should be able to write more data to the buffer now. 307 // Should be able to write more data to the buffer now.
309 EXPECT_EQ(kHelloStringLength, pair[0].Send(kHelloString, kHelloStringLength)); 308 EXPECT_EQ(kHelloStringLength, pair[0].Send(kHelloString, kHelloStringLength));
310 } 309 }
311 310
312 } // namespace 311 } // namespace
OLDNEW
« no previous file with comments | « ipc/ipc_test_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698