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 <utility> | 16 #include <utility> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "talk/session/media/mediasession.h" | |
20 #include "webrtc/api/dtmfsender.h" | 19 #include "webrtc/api/dtmfsender.h" |
21 #include "webrtc/api/fakemetricsobserver.h" | 20 #include "webrtc/api/fakemetricsobserver.h" |
22 #include "webrtc/api/localaudiosource.h" | 21 #include "webrtc/api/localaudiosource.h" |
23 #include "webrtc/api/mediastreaminterface.h" | 22 #include "webrtc/api/mediastreaminterface.h" |
24 #include "webrtc/api/peerconnection.h" | 23 #include "webrtc/api/peerconnection.h" |
25 #include "webrtc/api/peerconnectionfactory.h" | 24 #include "webrtc/api/peerconnectionfactory.h" |
26 #include "webrtc/api/peerconnectioninterface.h" | 25 #include "webrtc/api/peerconnectioninterface.h" |
27 #include "webrtc/api/test/fakeaudiocapturemodule.h" | 26 #include "webrtc/api/test/fakeaudiocapturemodule.h" |
28 #include "webrtc/api/test/fakeconstraints.h" | 27 #include "webrtc/api/test/fakeconstraints.h" |
29 #include "webrtc/api/test/fakedtlsidentitystore.h" | 28 #include "webrtc/api/test/fakedtlsidentitystore.h" |
30 #include "webrtc/api/test/fakeperiodicvideocapturer.h" | 29 #include "webrtc/api/test/fakeperiodicvideocapturer.h" |
31 #include "webrtc/api/test/fakevideotrackrenderer.h" | 30 #include "webrtc/api/test/fakevideotrackrenderer.h" |
32 #include "webrtc/api/test/mockpeerconnectionobservers.h" | 31 #include "webrtc/api/test/mockpeerconnectionobservers.h" |
33 #include "webrtc/api/videosourceinterface.h" | 32 #include "webrtc/api/videosourceinterface.h" |
34 #include "webrtc/base/gunit.h" | 33 #include "webrtc/base/gunit.h" |
35 #include "webrtc/base/physicalsocketserver.h" | 34 #include "webrtc/base/physicalsocketserver.h" |
36 #include "webrtc/base/scoped_ptr.h" | 35 #include "webrtc/base/scoped_ptr.h" |
37 #include "webrtc/base/ssladapter.h" | 36 #include "webrtc/base/ssladapter.h" |
38 #include "webrtc/base/sslstreamadapter.h" | 37 #include "webrtc/base/sslstreamadapter.h" |
39 #include "webrtc/base/thread.h" | 38 #include "webrtc/base/thread.h" |
40 #include "webrtc/base/virtualsocketserver.h" | 39 #include "webrtc/base/virtualsocketserver.h" |
41 #include "webrtc/media/engine/fakewebrtcvideoengine.h" | 40 #include "webrtc/media/engine/fakewebrtcvideoengine.h" |
42 #include "webrtc/p2p/base/constants.h" | 41 #include "webrtc/p2p/base/constants.h" |
43 #include "webrtc/p2p/base/sessiondescription.h" | 42 #include "webrtc/p2p/base/sessiondescription.h" |
44 #include "webrtc/p2p/client/fakeportallocator.h" | 43 #include "webrtc/p2p/client/fakeportallocator.h" |
| 44 #include "webrtc/pc/mediasession.h" |
45 | 45 |
46 #define MAYBE_SKIP_TEST(feature) \ | 46 #define MAYBE_SKIP_TEST(feature) \ |
47 if (!(feature())) { \ | 47 if (!(feature())) { \ |
48 LOG(LS_INFO) << "Feature disabled... skipping"; \ | 48 LOG(LS_INFO) << "Feature disabled... skipping"; \ |
49 return; \ | 49 return; \ |
50 } | 50 } |
51 | 51 |
52 using cricket::ContentInfo; | 52 using cricket::ContentInfo; |
53 using cricket::FakeWebRtcVideoDecoder; | 53 using cricket::FakeWebRtcVideoDecoder; |
54 using cricket::FakeWebRtcVideoDecoderFactory; | 54 using cricket::FakeWebRtcVideoDecoderFactory; |
(...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2003 PeerConnectionInterface::IceServer server; | 2003 PeerConnectionInterface::IceServer server; |
2004 server.urls.push_back("turn:hostname"); | 2004 server.urls.push_back("turn:hostname"); |
2005 server.urls.push_back("turn:hostname2"); | 2005 server.urls.push_back("turn:hostname2"); |
2006 servers.push_back(server); | 2006 servers.push_back(server); |
2007 EXPECT_TRUE(webrtc::ParseIceServers(servers, &stun_servers_, &turn_servers_)); | 2007 EXPECT_TRUE(webrtc::ParseIceServers(servers, &stun_servers_, &turn_servers_)); |
2008 EXPECT_EQ(2U, turn_servers_.size()); | 2008 EXPECT_EQ(2U, turn_servers_.size()); |
2009 EXPECT_NE(turn_servers_[0].priority, turn_servers_[1].priority); | 2009 EXPECT_NE(turn_servers_[0].priority, turn_servers_[1].priority); |
2010 } | 2010 } |
2011 | 2011 |
2012 #endif // if !defined(THREAD_SANITIZER) | 2012 #endif // if !defined(THREAD_SANITIZER) |
OLD | NEW |