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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 TEST_F(PhysicalSocketTest, TestGetSetOptionsIPv4) { | 379 TEST_F(PhysicalSocketTest, TestGetSetOptionsIPv4) { |
380 SocketTest::TestGetSetOptionsIPv4(); | 380 SocketTest::TestGetSetOptionsIPv4(); |
381 } | 381 } |
382 | 382 |
383 TEST_F(PhysicalSocketTest, TestGetSetOptionsIPv6) { | 383 TEST_F(PhysicalSocketTest, TestGetSetOptionsIPv6) { |
384 SocketTest::TestGetSetOptionsIPv6(); | 384 SocketTest::TestGetSetOptionsIPv6(); |
385 } | 385 } |
386 | 386 |
387 #if defined(WEBRTC_POSIX) | 387 #if defined(WEBRTC_POSIX) |
388 | 388 |
| 389 #if !defined(WEBRTC_MAC) |
| 390 TEST_F(PhysicalSocketTest, TestSocketRecvTimestampIPv4) { |
| 391 SocketTest::TestSocketRecvTimestamp(); |
| 392 } |
| 393 |
| 394 #if defined(WEBRTC_LINUX) |
| 395 #define MAYBE_TestSocketRecvTimestampIPv6 DISABLED_TestSocketRecvTimestampIPv6 |
| 396 #else |
| 397 #define MAYBE_TestSocketRecvTimestampIPv6 TestSocketRecvTimestampIPv6 |
| 398 #endif |
| 399 TEST_F(PhysicalSocketTest, MAYBE_TestSocketRecvTimestampIPv6) { |
| 400 SocketTest::TestSocketRecvTimestamp(); |
| 401 } |
| 402 #endif |
| 403 |
389 class PosixSignalDeliveryTest : public testing::Test { | 404 class PosixSignalDeliveryTest : public testing::Test { |
390 public: | 405 public: |
391 static void RecordSignal(int signum) { | 406 static void RecordSignal(int signum) { |
392 signals_received_.push_back(signum); | 407 signals_received_.push_back(signum); |
393 signaled_thread_ = Thread::Current(); | 408 signaled_thread_ = Thread::Current(); |
394 } | 409 } |
395 | 410 |
396 protected: | 411 protected: |
397 void SetUp() { | 412 void SetUp() { |
398 ss_.reset(new PhysicalSocketServer()); | 413 ss_.reset(new PhysicalSocketServer()); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 thread->Start(runnable.get()); | 518 thread->Start(runnable.get()); |
504 EXPECT_TRUE(ss_->Wait(1500, true)); | 519 EXPECT_TRUE(ss_->Wait(1500, true)); |
505 EXPECT_TRUE(ExpectSignal(SIGTERM)); | 520 EXPECT_TRUE(ExpectSignal(SIGTERM)); |
506 EXPECT_EQ(Thread::Current(), signaled_thread_); | 521 EXPECT_EQ(Thread::Current(), signaled_thread_); |
507 EXPECT_TRUE(ExpectNone()); | 522 EXPECT_TRUE(ExpectNone()); |
508 } | 523 } |
509 | 524 |
510 #endif | 525 #endif |
511 | 526 |
512 } // namespace rtc | 527 } // namespace rtc |
OLD | NEW |