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 |
11 #include <memory> | 11 #include <memory> |
12 #include <signal.h> | 12 #include <signal.h> |
13 #include <stdarg.h> | 13 #include <stdarg.h> |
14 | 14 |
15 #include "webrtc/rtc_base/gunit.h" | 15 #include "webrtc/base/gunit.h" |
16 #include "webrtc/rtc_base/logging.h" | 16 #include "webrtc/base/logging.h" |
17 #include "webrtc/rtc_base/networkmonitor.h" | 17 #include "webrtc/base/networkmonitor.h" |
18 #include "webrtc/rtc_base/physicalsocketserver.h" | 18 #include "webrtc/base/physicalsocketserver.h" |
19 #include "webrtc/rtc_base/socket_unittest.h" | 19 #include "webrtc/base/socket_unittest.h" |
20 #include "webrtc/rtc_base/testutils.h" | 20 #include "webrtc/base/testutils.h" |
21 #include "webrtc/rtc_base/thread.h" | 21 #include "webrtc/base/thread.h" |
22 | 22 |
23 namespace rtc { | 23 namespace rtc { |
24 | 24 |
25 #define MAYBE_SKIP_IPV4 \ | 25 #define MAYBE_SKIP_IPV4 \ |
26 if (!HasIPv4Enabled()) { \ | 26 if (!HasIPv4Enabled()) { \ |
27 LOG(LS_INFO) << "No IPv4... skipping"; \ | 27 LOG(LS_INFO) << "No IPv4... skipping"; \ |
28 return; \ | 28 return; \ |
29 } | 29 } |
30 | 30 |
31 #define MAYBE_SKIP_IPV6 \ | 31 #define MAYBE_SKIP_IPV6 \ |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 thread->Start(runnable.get()); | 615 thread->Start(runnable.get()); |
616 EXPECT_TRUE(ss_->Wait(1500, true)); | 616 EXPECT_TRUE(ss_->Wait(1500, true)); |
617 EXPECT_TRUE(ExpectSignal(SIGTERM)); | 617 EXPECT_TRUE(ExpectSignal(SIGTERM)); |
618 EXPECT_EQ(Thread::Current(), signaled_thread_); | 618 EXPECT_EQ(Thread::Current(), signaled_thread_); |
619 EXPECT_TRUE(ExpectNone()); | 619 EXPECT_TRUE(ExpectNone()); |
620 } | 620 } |
621 | 621 |
622 #endif | 622 #endif |
623 | 623 |
624 } // namespace rtc | 624 } // namespace rtc |
OLD | NEW |