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 <signal.h> | 11 #include <signal.h> |
12 #include <stdarg.h> | 12 #include <stdarg.h> |
13 | 13 |
14 #include "webrtc/base/gunit.h" | 14 #include "webrtc/base/gunit.h" |
15 #include "webrtc/base/logging.h" | 15 #include "webrtc/base/logging.h" |
16 #include "webrtc/base/physicalsocketserver.h" | 16 #include "webrtc/base/physicalsocketserver.h" |
17 #include "webrtc/base/scoped_ptr.h" | 17 #include "webrtc/base/scoped_ptr.h" |
18 #include "webrtc/base/socket_unittest.h" | 18 #include "webrtc/base/socket_unittest.h" |
19 #include "webrtc/base/testutils.h" | 19 #include "webrtc/base/testutils.h" |
20 #include "webrtc/base/thread.h" | 20 #include "webrtc/base/thread.h" |
21 #include "webrtc/test/testsupport/gtest_disable.h" | |
22 | 21 |
23 namespace rtc { | 22 namespace rtc { |
24 | 23 |
25 class PhysicalSocketTest; | 24 class PhysicalSocketTest; |
26 | 25 |
27 class FakeSocketDispatcher : public SocketDispatcher { | 26 class FakeSocketDispatcher : public SocketDispatcher { |
28 public: | 27 public: |
29 explicit FakeSocketDispatcher(PhysicalSocketServer* ss) | 28 explicit FakeSocketDispatcher(PhysicalSocketServer* ss) |
30 : SocketDispatcher(ss) { | 29 : SocketDispatcher(ss) { |
31 } | 30 } |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 thread->Start(runnable.get()); | 517 thread->Start(runnable.get()); |
519 EXPECT_TRUE(ss_->Wait(1500, true)); | 518 EXPECT_TRUE(ss_->Wait(1500, true)); |
520 EXPECT_TRUE(ExpectSignal(SIGTERM)); | 519 EXPECT_TRUE(ExpectSignal(SIGTERM)); |
521 EXPECT_EQ(Thread::Current(), signaled_thread_); | 520 EXPECT_EQ(Thread::Current(), signaled_thread_); |
522 EXPECT_TRUE(ExpectNone()); | 521 EXPECT_TRUE(ExpectNone()); |
523 } | 522 } |
524 | 523 |
525 #endif | 524 #endif |
526 | 525 |
527 } // namespace rtc | 526 } // namespace rtc |
OLD | NEW |