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

Side by Side Diff: ipc/ipc_sync_channel_unittest.cc

Issue 5749001: Add support for sockets that can listen and accept a connection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix up use of DCHECK which was causing release build failures Created 10 years 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_switches.cc ('k') | ipc/sync_socket_unittest.cc » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Unit test for SyncChannel. 5 // Unit test for SyncChannel.
6 6
7 #include "ipc/ipc_sync_channel.h"
8
7 #include <string> 9 #include <string>
8 #include <vector> 10 #include <vector>
9 11
10 #include "base/basictypes.h" 12 #include "base/basictypes.h"
11 #include "base/logging.h" 13 #include "base/logging.h"
12 #include "base/message_loop.h" 14 #include "base/message_loop.h"
13 #include "base/platform_thread.h" 15 #include "base/platform_thread.h"
14 #include "base/scoped_ptr.h" 16 #include "base/scoped_ptr.h"
15 #include "base/stl_util-inl.h" 17 #include "base/stl_util-inl.h"
16 #include "base/string_util.h" 18 #include "base/string_util.h"
17 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" 19 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
18 #include "base/thread.h" 20 #include "base/thread.h"
19 #include "base/waitable_event.h" 21 #include "base/waitable_event.h"
20 #include "ipc/ipc_message.h" 22 #include "ipc/ipc_message.h"
21 #include "ipc/ipc_sync_channel.h"
22 #include "ipc/ipc_sync_message_filter.h" 23 #include "ipc/ipc_sync_message_filter.h"
23 #include "ipc/ipc_sync_message_unittest.h" 24 #include "ipc/ipc_sync_message_unittest.h"
24 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
25 26
26 using namespace IPC; 27 using namespace IPC;
27 using base::WaitableEvent; 28 using base::WaitableEvent;
28 29
29 namespace { 30 namespace {
30 31
31 // Base class for a "process" with listener and IPC threads. 32 // Base class for a "process" with listener and IPC threads.
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 server.done_event()->Wait(); 1156 server.done_event()->Wait();
1156 server.done_event()->Reset(); 1157 server.done_event()->Reset();
1157 1158
1158 server.SendDummy(); 1159 server.SendDummy();
1159 server.done_event()->Wait(); 1160 server.done_event()->Wait();
1160 1161
1161 EXPECT_FALSE(server.send_result()); 1162 EXPECT_FALSE(server.send_result());
1162 } 1163 }
1163 1164
1164 1165
OLDNEW
« no previous file with comments | « ipc/ipc_switches.cc ('k') | ipc/sync_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698