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 TEST_F(PhysicalSocketTest, TestWritableAfterPartialWriteIPv4) { | 262 // https://bugs.chromium.org/p/webrtc/issues/detail?id=6167 |
| 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) { |
263 WritableAfterPartialWrite(kIPv4Loopback); | 269 WritableAfterPartialWrite(kIPv4Loopback); |
264 } | 270 } |
265 | 271 |
266 TEST_F(PhysicalSocketTest, TestWritableAfterPartialWriteIPv6) { | 272 // https://bugs.chromium.org/p/webrtc/issues/detail?id=6167 |
| 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) { |
267 MAYBE_SKIP_IPV6; | 279 MAYBE_SKIP_IPV6; |
268 WritableAfterPartialWrite(kIPv6Loopback); | 280 WritableAfterPartialWrite(kIPv6Loopback); |
269 } | 281 } |
270 | 282 |
271 TEST_F(PhysicalSocketTest, TestConnectFailIPv6) { | 283 TEST_F(PhysicalSocketTest, TestConnectFailIPv6) { |
272 SocketTest::TestConnectFailIPv6(); | 284 SocketTest::TestConnectFailIPv6(); |
273 } | 285 } |
274 | 286 |
275 TEST_F(PhysicalSocketTest, TestConnectWithDnsLookupFailIPv4) { | 287 TEST_F(PhysicalSocketTest, TestConnectWithDnsLookupFailIPv4) { |
276 SocketTest::TestConnectWithDnsLookupFailIPv4(); | 288 SocketTest::TestConnectWithDnsLookupFailIPv4(); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 defined(ADDRESS_SANITIZER) || defined(WEBRTC_ANDROID) || \ | 377 defined(ADDRESS_SANITIZER) || defined(WEBRTC_ANDROID) || \ |
366 defined(WEBRTC_LINUX) | 378 defined(WEBRTC_LINUX) |
367 #define MAYBE_TestUdpReadyToSendIPv4 DISABLED_TestUdpReadyToSendIPv4 | 379 #define MAYBE_TestUdpReadyToSendIPv4 DISABLED_TestUdpReadyToSendIPv4 |
368 #else | 380 #else |
369 #define MAYBE_TestUdpReadyToSendIPv4 TestUdpReadyToSendIPv4 | 381 #define MAYBE_TestUdpReadyToSendIPv4 TestUdpReadyToSendIPv4 |
370 #endif | 382 #endif |
371 TEST_F(PhysicalSocketTest, MAYBE_TestUdpReadyToSendIPv4) { | 383 TEST_F(PhysicalSocketTest, MAYBE_TestUdpReadyToSendIPv4) { |
372 SocketTest::TestUdpReadyToSendIPv4(); | 384 SocketTest::TestUdpReadyToSendIPv4(); |
373 } | 385 } |
374 | 386 |
375 TEST_F(PhysicalSocketTest, TestUdpReadyToSendIPv6) { | 387 // https://bugs.chromium.org/p/webrtc/issues/detail?id=6167 |
| 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) { |
376 SocketTest::TestUdpReadyToSendIPv6(); | 394 SocketTest::TestUdpReadyToSendIPv6(); |
377 } | 395 } |
378 | 396 |
379 TEST_F(PhysicalSocketTest, TestGetSetOptionsIPv4) { | 397 TEST_F(PhysicalSocketTest, TestGetSetOptionsIPv4) { |
380 SocketTest::TestGetSetOptionsIPv4(); | 398 SocketTest::TestGetSetOptionsIPv4(); |
381 } | 399 } |
382 | 400 |
383 TEST_F(PhysicalSocketTest, TestGetSetOptionsIPv6) { | 401 TEST_F(PhysicalSocketTest, TestGetSetOptionsIPv6) { |
384 SocketTest::TestGetSetOptionsIPv6(); | 402 SocketTest::TestGetSetOptionsIPv6(); |
385 } | 403 } |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 thread->Start(runnable.get()); | 536 thread->Start(runnable.get()); |
519 EXPECT_TRUE(ss_->Wait(1500, true)); | 537 EXPECT_TRUE(ss_->Wait(1500, true)); |
520 EXPECT_TRUE(ExpectSignal(SIGTERM)); | 538 EXPECT_TRUE(ExpectSignal(SIGTERM)); |
521 EXPECT_EQ(Thread::Current(), signaled_thread_); | 539 EXPECT_EQ(Thread::Current(), signaled_thread_); |
522 EXPECT_TRUE(ExpectNone()); | 540 EXPECT_TRUE(ExpectNone()); |
523 } | 541 } |
524 | 542 |
525 #endif | 543 #endif |
526 | 544 |
527 } // namespace rtc | 545 } // namespace rtc |
OLD | NEW |