OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. |
3 * Copyright 2012 Google Inc. | |
4 * | 3 * |
5 * Redistribution and use in source and binary forms, with or without | 4 * Use of this source code is governed by a BSD-style license |
6 * modification, are permitted provided that the following conditions are met: | 5 * that can be found in the LICENSE file in the root of the source |
7 * | 6 * tree. An additional intellectual property rights grant can be found |
8 * 1. Redistributions of source code must retain the above copyright notice, | 7 * in the file PATENTS. All contributing project authors may |
9 * this list of conditions and the following disclaimer. | 8 * be found in the AUTHORS file in the root of the source tree. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | |
11 * this list of conditions and the following disclaimer in the documentation | |
12 * and/or other materials provided with the distribution. | |
13 * 3. The name of the author may not be used to endorse or promote products | |
14 * derived from this software without specific prior written permission. | |
15 * | |
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED | |
17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | |
19 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
20 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | |
22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | |
23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | |
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
26 */ | 9 */ |
27 | 10 |
28 #include <utility> | 11 #include <utility> |
29 #include <vector> | 12 #include <vector> |
30 | 13 |
31 #include "talk/app/webrtc/audiotrack.h" | 14 #include "webrtc/api/audiotrack.h" |
32 #include "talk/app/webrtc/fakemediacontroller.h" | 15 #include "webrtc/api/fakemediacontroller.h" |
33 #include "talk/app/webrtc/fakemetricsobserver.h" | 16 #include "webrtc/api/fakemetricsobserver.h" |
34 #include "talk/app/webrtc/jsepicecandidate.h" | 17 #include "webrtc/api/jsepicecandidate.h" |
35 #include "talk/app/webrtc/jsepsessiondescription.h" | 18 #include "webrtc/api/jsepsessiondescription.h" |
36 #include "talk/app/webrtc/peerconnection.h" | 19 #include "webrtc/api/peerconnection.h" |
37 #include "talk/app/webrtc/sctputils.h" | 20 #include "webrtc/api/sctputils.h" |
38 #include "talk/app/webrtc/streamcollection.h" | 21 #include "webrtc/api/streamcollection.h" |
39 #include "talk/app/webrtc/streamcollection.h" | 22 #include "webrtc/api/streamcollection.h" |
40 #include "talk/app/webrtc/test/fakeconstraints.h" | 23 #include "webrtc/api/test/fakeconstraints.h" |
41 #include "talk/app/webrtc/test/fakedtlsidentitystore.h" | 24 #include "webrtc/api/test/fakedtlsidentitystore.h" |
42 #include "talk/app/webrtc/videotrack.h" | 25 #include "webrtc/api/videotrack.h" |
43 #include "talk/app/webrtc/webrtcsession.h" | 26 #include "webrtc/api/webrtcsession.h" |
44 #include "talk/app/webrtc/webrtcsessiondescriptionfactory.h" | 27 #include "webrtc/api/webrtcsessiondescriptionfactory.h" |
45 #include "talk/media/base/fakemediaengine.h" | 28 #include "talk/media/base/fakemediaengine.h" |
46 #include "talk/media/base/fakevideorenderer.h" | 29 #include "talk/media/base/fakevideorenderer.h" |
47 #include "talk/media/base/mediachannel.h" | 30 #include "talk/media/base/mediachannel.h" |
48 #include "talk/media/webrtc/fakewebrtccall.h" | 31 #include "talk/media/webrtc/fakewebrtccall.h" |
49 #include "webrtc/p2p/base/stunserver.h" | |
50 #include "webrtc/p2p/base/teststunserver.h" | |
51 #include "webrtc/p2p/base/testturnserver.h" | |
52 #include "webrtc/p2p/base/transportchannel.h" | |
53 #include "webrtc/p2p/client/basicportallocator.h" | |
54 #include "talk/session/media/channelmanager.h" | 32 #include "talk/session/media/channelmanager.h" |
55 #include "talk/session/media/mediasession.h" | 33 #include "talk/session/media/mediasession.h" |
56 #include "webrtc/base/fakenetwork.h" | 34 #include "webrtc/base/fakenetwork.h" |
57 #include "webrtc/base/firewallsocketserver.h" | 35 #include "webrtc/base/firewallsocketserver.h" |
58 #include "webrtc/base/gunit.h" | 36 #include "webrtc/base/gunit.h" |
59 #include "webrtc/base/logging.h" | 37 #include "webrtc/base/logging.h" |
60 #include "webrtc/base/network.h" | 38 #include "webrtc/base/network.h" |
61 #include "webrtc/base/physicalsocketserver.h" | 39 #include "webrtc/base/physicalsocketserver.h" |
62 #include "webrtc/base/ssladapter.h" | 40 #include "webrtc/base/ssladapter.h" |
63 #include "webrtc/base/sslidentity.h" | 41 #include "webrtc/base/sslidentity.h" |
64 #include "webrtc/base/sslstreamadapter.h" | 42 #include "webrtc/base/sslstreamadapter.h" |
65 #include "webrtc/base/stringutils.h" | 43 #include "webrtc/base/stringutils.h" |
66 #include "webrtc/base/thread.h" | 44 #include "webrtc/base/thread.h" |
67 #include "webrtc/base/virtualsocketserver.h" | 45 #include "webrtc/base/virtualsocketserver.h" |
| 46 #include "webrtc/p2p/base/stunserver.h" |
| 47 #include "webrtc/p2p/base/teststunserver.h" |
| 48 #include "webrtc/p2p/base/testturnserver.h" |
| 49 #include "webrtc/p2p/base/transportchannel.h" |
| 50 #include "webrtc/p2p/client/basicportallocator.h" |
68 | 51 |
69 #define MAYBE_SKIP_TEST(feature) \ | 52 #define MAYBE_SKIP_TEST(feature) \ |
70 if (!(feature())) { \ | 53 if (!(feature())) { \ |
71 LOG(LS_INFO) << "Feature disabled... skipping"; \ | 54 LOG(LS_INFO) << "Feature disabled... skipping"; \ |
72 return; \ | 55 return; \ |
73 } | 56 } |
74 | 57 |
75 using cricket::FakeVoiceMediaChannel; | 58 using cricket::FakeVoiceMediaChannel; |
76 using cricket::TransportInfo; | 59 using cricket::TransportInfo; |
77 using rtc::SocketAddress; | 60 using rtc::SocketAddress; |
(...skipping 4249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4327 } | 4310 } |
4328 | 4311 |
4329 // TODO(bemasc): Add a TestIceStatesBundle with BUNDLE enabled. That test | 4312 // TODO(bemasc): Add a TestIceStatesBundle with BUNDLE enabled. That test |
4330 // currently fails because upon disconnection and reconnection OnIceComplete is | 4313 // currently fails because upon disconnection and reconnection OnIceComplete is |
4331 // called more than once without returning to IceGatheringGathering. | 4314 // called more than once without returning to IceGatheringGathering. |
4332 | 4315 |
4333 INSTANTIATE_TEST_CASE_P(WebRtcSessionTests, | 4316 INSTANTIATE_TEST_CASE_P(WebRtcSessionTests, |
4334 WebRtcSessionTest, | 4317 WebRtcSessionTest, |
4335 testing::Values(ALREADY_GENERATED, | 4318 testing::Values(ALREADY_GENERATED, |
4336 DTLS_IDENTITY_STORE)); | 4319 DTLS_IDENTITY_STORE)); |
OLD | NEW |