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 "webrtc/base/asyncinvoker.h" | 11 #include "webrtc/base/asyncinvoker.h" |
12 #include "webrtc/base/asyncudpsocket.h" | 12 #include "webrtc/base/asyncudpsocket.h" |
13 #include "webrtc/base/event.h" | 13 #include "webrtc/base/event.h" |
14 #include "webrtc/base/gunit.h" | 14 #include "webrtc/base/gunit.h" |
15 #include "webrtc/base/physicalsocketserver.h" | 15 #include "webrtc/base/physicalsocketserver.h" |
16 #include "webrtc/base/socketaddress.h" | 16 #include "webrtc/base/socketaddress.h" |
17 #include "webrtc/base/thread.h" | 17 #include "webrtc/base/thread.h" |
18 #include "webrtc/test/testsupport/gtest_disable.h" | |
19 | 18 |
20 #if defined(WEBRTC_WIN) | 19 #if defined(WEBRTC_WIN) |
21 #include <comdef.h> // NOLINT | 20 #include <comdef.h> // NOLINT |
22 #endif | 21 #endif |
23 | 22 |
24 using namespace rtc; | 23 using namespace rtc; |
25 | 24 |
26 // Generates a sequence of numbers (collaboratively). | 25 // Generates a sequence of numbers (collaboratively). |
27 class TestGenerator { | 26 class TestGenerator { |
28 public: | 27 public: |
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 }; | 717 }; |
719 | 718 |
720 TEST_F(ComThreadTest, ComInited) { | 719 TEST_F(ComThreadTest, ComInited) { |
721 Thread* thread = new ComThread(); | 720 Thread* thread = new ComThread(); |
722 EXPECT_TRUE(thread->Start()); | 721 EXPECT_TRUE(thread->Start()); |
723 thread->Post(this, 0); | 722 thread->Post(this, 0); |
724 EXPECT_TRUE_WAIT(done_, 1000); | 723 EXPECT_TRUE_WAIT(done_, 1000); |
725 delete thread; | 724 delete thread; |
726 } | 725 } |
727 #endif | 726 #endif |
OLD | NEW |