OLD | NEW |
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 "net/base/tcp_listen_socket_unittest.h" | 5 #include "net/base/tcp_listen_socket_unittest.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <sys/types.h> | 8 #include <sys/types.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/eintr_wrapper.h" | 11 #include "base/posix/eintr_wrapper.h" |
12 #include "base/sys_byteorder.h" | 12 #include "base/sys_byteorder.h" |
13 #include "net/base/net_util.h" | 13 #include "net/base/net_util.h" |
14 #include "testing/platform_test.h" | 14 #include "testing/platform_test.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 const int TCPListenSocketTester::kTestPort = 9999; | 18 const int TCPListenSocketTester::kTestPort = 9999; |
19 | 19 |
20 static const int kReadBufSize = 1024; | 20 static const int kReadBufSize = 1024; |
21 static const char kHelloWorld[] = "HELLO, WORLD"; | 21 static const char kHelloWorld[] = "HELLO, WORLD"; |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 | 286 |
287 TEST_F(TCPListenSocketTest, ServerSend) { | 287 TEST_F(TCPListenSocketTest, ServerSend) { |
288 tester_->TestServerSend(); | 288 tester_->TestServerSend(); |
289 } | 289 } |
290 | 290 |
291 TEST_F(TCPListenSocketTest, ServerSendMultiple) { | 291 TEST_F(TCPListenSocketTest, ServerSendMultiple) { |
292 tester_->TestServerSendMultiple(); | 292 tester_->TestServerSendMultiple(); |
293 } | 293 } |
294 | 294 |
295 } // namespace net | 295 } // namespace net |
OLD | NEW |