OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/listen_socket_unittest.h" | 5 #include "net/base/listen_socket_unittest.h" |
6 | 6 |
7 #include "base/platform_test.h" | |
8 #include "net/base/net_util.h" | 7 #include "net/base/net_util.h" |
| 8 #include "testing/platform_test.h" |
9 | 9 |
10 const int ListenSocketTester::kTestPort = 9999; | 10 const int ListenSocketTester::kTestPort = 9999; |
11 | 11 |
12 static const int kReadBufSize = 1024; | 12 static const int kReadBufSize = 1024; |
13 static const char* kHelloWorld = "HELLO, WORLD"; | 13 static const char* kHelloWorld = "HELLO, WORLD"; |
14 static const int kMaxQueueSize = 20; | 14 static const int kMaxQueueSize = 20; |
15 static const char* kLoopback = "127.0.0.1"; | 15 static const char* kLoopback = "127.0.0.1"; |
16 static const int kDefaultTimeoutMs = 5000; | 16 static const int kDefaultTimeoutMs = 5000; |
17 #if defined(OS_POSIX) | 17 #if defined(OS_POSIX) |
18 static const char* kSemaphoreName = "chromium.listen_socket"; | 18 static const char* kSemaphoreName = "chromium.listen_socket"; |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 } | 315 } |
316 | 316 |
317 TEST_F(ListenSocketTest, ClientSendLong) { | 317 TEST_F(ListenSocketTest, ClientSendLong) { |
318 tester_->TestClientSendLong(); | 318 tester_->TestClientSendLong(); |
319 } | 319 } |
320 | 320 |
321 TEST_F(ListenSocketTest, ServerSend) { | 321 TEST_F(ListenSocketTest, ServerSend) { |
322 tester_->TestServerSend(); | 322 tester_->TestServerSend(); |
323 } | 323 } |
324 | 324 |
OLD | NEW |