| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 // Simulate a really small maximum send size. | 252 // Simulate a really small maximum send size. |
| 253 const int kMaxSendSize = 128; | 253 const int kMaxSendSize = 128; |
| 254 SetMaxSendSize(kMaxSendSize); | 254 SetMaxSendSize(kMaxSendSize); |
| 255 | 255 |
| 256 // Run the default send/receive socket tests with a smaller amount of data | 256 // Run the default send/receive socket tests with a smaller amount of data |
| 257 // to avoid long running times due to the small maximum send size. | 257 // to avoid long running times due to the small maximum send size. |
| 258 const size_t kDataSize = 128 * 1024; | 258 const size_t kDataSize = 128 * 1024; |
| 259 TcpInternal(loopback, kDataSize, kMaxSendSize); | 259 TcpInternal(loopback, kDataSize, kMaxSendSize); |
| 260 } | 260 } |
| 261 | 261 |
| 262 // https://bugs.chromium.org/p/webrtc/issues/detail?id=6167 | 262 TEST_F(PhysicalSocketTest, TestWritableAfterPartialWriteIPv4) { |
| 263 #if defined(WEBRTC_WIN) | |
| 264 #define MAYBE_TestWritableAfterPartialWriteIPv4 DISABLED_TestWritableAfterPartia
lWriteIPv4 | |
| 265 #else | |
| 266 #define MAYBE_TestWritableAfterPartialWriteIPv4 TestWritableAfterPartialWriteIPv
4 | |
| 267 #endif | |
| 268 TEST_F(PhysicalSocketTest, MAYBE_TestWritableAfterPartialWriteIPv4) { | |
| 269 WritableAfterPartialWrite(kIPv4Loopback); | 263 WritableAfterPartialWrite(kIPv4Loopback); |
| 270 } | 264 } |
| 271 | 265 |
| 272 // https://bugs.chromium.org/p/webrtc/issues/detail?id=6167 | 266 TEST_F(PhysicalSocketTest, TestWritableAfterPartialWriteIPv6) { |
| 273 #if defined(WEBRTC_WIN) | |
| 274 #define MAYBE_TestWritableAfterPartialWriteIPv6 DISABLED_TestWritableAfterPartia
lWriteIPv6 | |
| 275 #else | |
| 276 #define MAYBE_TestWritableAfterPartialWriteIPv6 TestWritableAfterPartialWriteIPv
6 | |
| 277 #endif | |
| 278 TEST_F(PhysicalSocketTest, MAYBE_TestWritableAfterPartialWriteIPv6) { | |
| 279 MAYBE_SKIP_IPV6; | 267 MAYBE_SKIP_IPV6; |
| 280 WritableAfterPartialWrite(kIPv6Loopback); | 268 WritableAfterPartialWrite(kIPv6Loopback); |
| 281 } | 269 } |
| 282 | 270 |
| 283 TEST_F(PhysicalSocketTest, TestConnectFailIPv6) { | 271 TEST_F(PhysicalSocketTest, TestConnectFailIPv6) { |
| 284 SocketTest::TestConnectFailIPv6(); | 272 SocketTest::TestConnectFailIPv6(); |
| 285 } | 273 } |
| 286 | 274 |
| 287 TEST_F(PhysicalSocketTest, TestConnectWithDnsLookupFailIPv4) { | 275 TEST_F(PhysicalSocketTest, TestConnectWithDnsLookupFailIPv4) { |
| 288 SocketTest::TestConnectWithDnsLookupFailIPv4(); | 276 SocketTest::TestConnectWithDnsLookupFailIPv4(); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 defined(ADDRESS_SANITIZER) || defined(WEBRTC_ANDROID) || \ | 365 defined(ADDRESS_SANITIZER) || defined(WEBRTC_ANDROID) || \ |
| 378 defined(WEBRTC_LINUX) | 366 defined(WEBRTC_LINUX) |
| 379 #define MAYBE_TestUdpReadyToSendIPv4 DISABLED_TestUdpReadyToSendIPv4 | 367 #define MAYBE_TestUdpReadyToSendIPv4 DISABLED_TestUdpReadyToSendIPv4 |
| 380 #else | 368 #else |
| 381 #define MAYBE_TestUdpReadyToSendIPv4 TestUdpReadyToSendIPv4 | 369 #define MAYBE_TestUdpReadyToSendIPv4 TestUdpReadyToSendIPv4 |
| 382 #endif | 370 #endif |
| 383 TEST_F(PhysicalSocketTest, MAYBE_TestUdpReadyToSendIPv4) { | 371 TEST_F(PhysicalSocketTest, MAYBE_TestUdpReadyToSendIPv4) { |
| 384 SocketTest::TestUdpReadyToSendIPv4(); | 372 SocketTest::TestUdpReadyToSendIPv4(); |
| 385 } | 373 } |
| 386 | 374 |
| 387 // https://bugs.chromium.org/p/webrtc/issues/detail?id=6167 | 375 TEST_F(PhysicalSocketTest, TestUdpReadyToSendIPv6) { |
| 388 #if defined(WEBRTC_WIN) | |
| 389 #define MAYBE_TestUdpReadyToSendIPv6 DISABLED_TestUdpReadyToSendIPv6 | |
| 390 #else | |
| 391 #define MAYBE_TestUdpReadyToSendIPv6 TestUdpReadyToSendIPv6 | |
| 392 #endif | |
| 393 TEST_F(PhysicalSocketTest, MAYBE_TestUdpReadyToSendIPv6) { | |
| 394 SocketTest::TestUdpReadyToSendIPv6(); | 376 SocketTest::TestUdpReadyToSendIPv6(); |
| 395 } | 377 } |
| 396 | 378 |
| 397 TEST_F(PhysicalSocketTest, TestGetSetOptionsIPv4) { | 379 TEST_F(PhysicalSocketTest, TestGetSetOptionsIPv4) { |
| 398 SocketTest::TestGetSetOptionsIPv4(); | 380 SocketTest::TestGetSetOptionsIPv4(); |
| 399 } | 381 } |
| 400 | 382 |
| 401 TEST_F(PhysicalSocketTest, TestGetSetOptionsIPv6) { | 383 TEST_F(PhysicalSocketTest, TestGetSetOptionsIPv6) { |
| 402 SocketTest::TestGetSetOptionsIPv6(); | 384 SocketTest::TestGetSetOptionsIPv6(); |
| 403 } | 385 } |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 thread->Start(runnable.get()); | 518 thread->Start(runnable.get()); |
| 537 EXPECT_TRUE(ss_->Wait(1500, true)); | 519 EXPECT_TRUE(ss_->Wait(1500, true)); |
| 538 EXPECT_TRUE(ExpectSignal(SIGTERM)); | 520 EXPECT_TRUE(ExpectSignal(SIGTERM)); |
| 539 EXPECT_EQ(Thread::Current(), signaled_thread_); | 521 EXPECT_EQ(Thread::Current(), signaled_thread_); |
| 540 EXPECT_TRUE(ExpectNone()); | 522 EXPECT_TRUE(ExpectNone()); |
| 541 } | 523 } |
| 542 | 524 |
| 543 #endif | 525 #endif |
| 544 | 526 |
| 545 } // namespace rtc | 527 } // namespace rtc |
| OLD | NEW |