OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 <stdio.h> | 11 #include <stdio.h> |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <list> | 14 #include <list> |
15 #include <map> | 15 #include <map> |
16 #include <memory> | 16 #include <memory> |
17 #include <utility> | 17 #include <utility> |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
20 #include "webrtc/api/dtmfsender.h" | |
21 #include "webrtc/api/fakemetricsobserver.h" | 20 #include "webrtc/api/fakemetricsobserver.h" |
22 #include "webrtc/api/localaudiosource.h" | |
23 #include "webrtc/api/mediastreaminterface.h" | 21 #include "webrtc/api/mediastreaminterface.h" |
24 #include "webrtc/api/peerconnection.h" | |
25 #include "webrtc/api/peerconnectionfactory.h" | |
26 #include "webrtc/api/peerconnectioninterface.h" | 22 #include "webrtc/api/peerconnectioninterface.h" |
27 #include "webrtc/api/test/fakeaudiocapturemodule.h" | |
28 #include "webrtc/api/test/fakeconstraints.h" | |
29 #include "webrtc/api/test/fakeperiodicvideocapturer.h" | |
30 #include "webrtc/api/test/fakertccertificategenerator.h" | |
31 #include "webrtc/api/test/fakevideotrackrenderer.h" | |
32 #include "webrtc/api/test/mockpeerconnectionobservers.h" | |
33 #include "webrtc/base/fakenetwork.h" | 23 #include "webrtc/base/fakenetwork.h" |
34 #include "webrtc/base/gunit.h" | 24 #include "webrtc/base/gunit.h" |
35 #include "webrtc/base/helpers.h" | 25 #include "webrtc/base/helpers.h" |
36 #include "webrtc/base/physicalsocketserver.h" | 26 #include "webrtc/base/physicalsocketserver.h" |
37 #include "webrtc/base/ssladapter.h" | 27 #include "webrtc/base/ssladapter.h" |
38 #include "webrtc/base/sslstreamadapter.h" | 28 #include "webrtc/base/sslstreamadapter.h" |
39 #include "webrtc/base/thread.h" | 29 #include "webrtc/base/thread.h" |
40 #include "webrtc/base/virtualsocketserver.h" | 30 #include "webrtc/base/virtualsocketserver.h" |
41 #include "webrtc/media/engine/fakewebrtcvideoengine.h" | 31 #include "webrtc/media/engine/fakewebrtcvideoengine.h" |
42 #include "webrtc/p2p/base/p2pconstants.h" | 32 #include "webrtc/p2p/base/p2pconstants.h" |
43 #include "webrtc/p2p/base/sessiondescription.h" | 33 #include "webrtc/p2p/base/sessiondescription.h" |
44 #include "webrtc/p2p/base/testturnserver.h" | 34 #include "webrtc/p2p/base/testturnserver.h" |
45 #include "webrtc/p2p/client/basicportallocator.h" | 35 #include "webrtc/p2p/client/basicportallocator.h" |
| 36 #include "webrtc/pc/dtmfsender.h" |
| 37 #include "webrtc/pc/localaudiosource.h" |
46 #include "webrtc/pc/mediasession.h" | 38 #include "webrtc/pc/mediasession.h" |
| 39 #include "webrtc/pc/peerconnection.h" |
| 40 #include "webrtc/pc/peerconnectionfactory.h" |
| 41 #include "webrtc/pc/test/fakeaudiocapturemodule.h" |
| 42 #include "webrtc/pc/test/fakeconstraints.h" |
| 43 #include "webrtc/pc/test/fakeperiodicvideocapturer.h" |
| 44 #include "webrtc/pc/test/fakertccertificategenerator.h" |
| 45 #include "webrtc/pc/test/fakevideotrackrenderer.h" |
| 46 #include "webrtc/pc/test/mockpeerconnectionobservers.h" |
47 | 47 |
48 #define MAYBE_SKIP_TEST(feature) \ | 48 #define MAYBE_SKIP_TEST(feature) \ |
49 if (!(feature())) { \ | 49 if (!(feature())) { \ |
50 LOG(LS_INFO) << "Feature disabled... skipping"; \ | 50 LOG(LS_INFO) << "Feature disabled... skipping"; \ |
51 return; \ | 51 return; \ |
52 } | 52 } |
53 | 53 |
54 using cricket::ContentInfo; | 54 using cricket::ContentInfo; |
55 using cricket::FakeWebRtcVideoDecoder; | 55 using cricket::FakeWebRtcVideoDecoder; |
56 using cricket::FakeWebRtcVideoDecoderFactory; | 56 using cricket::FakeWebRtcVideoDecoderFactory; |
(...skipping 2740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2797 server.urls.push_back("turn:hostname2"); | 2797 server.urls.push_back("turn:hostname2"); |
2798 servers.push_back(server); | 2798 servers.push_back(server); |
2799 EXPECT_TRUE(webrtc::ParseIceServers(servers, &stun_servers_, &turn_servers_)); | 2799 EXPECT_TRUE(webrtc::ParseIceServers(servers, &stun_servers_, &turn_servers_)); |
2800 EXPECT_EQ(2U, turn_servers_.size()); | 2800 EXPECT_EQ(2U, turn_servers_.size()); |
2801 EXPECT_NE(turn_servers_[0].priority, turn_servers_[1].priority); | 2801 EXPECT_NE(turn_servers_[0].priority, turn_servers_[1].priority); |
2802 } | 2802 } |
2803 | 2803 |
2804 #endif // if !defined(THREAD_SANITIZER) | 2804 #endif // if !defined(THREAD_SANITIZER) |
2805 | 2805 |
2806 } // namespace | 2806 } // namespace |
OLD | NEW |