OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "talk/app/webrtc/jsepsessiondescription.h" | 35 #include "talk/app/webrtc/jsepsessiondescription.h" |
36 #include "talk/app/webrtc/peerconnection.h" | 36 #include "talk/app/webrtc/peerconnection.h" |
37 #include "talk/app/webrtc/sctputils.h" | 37 #include "talk/app/webrtc/sctputils.h" |
38 #include "talk/app/webrtc/streamcollection.h" | 38 #include "talk/app/webrtc/streamcollection.h" |
39 #include "talk/app/webrtc/streamcollection.h" | 39 #include "talk/app/webrtc/streamcollection.h" |
40 #include "talk/app/webrtc/test/fakeconstraints.h" | 40 #include "talk/app/webrtc/test/fakeconstraints.h" |
41 #include "talk/app/webrtc/test/fakedtlsidentitystore.h" | 41 #include "talk/app/webrtc/test/fakedtlsidentitystore.h" |
42 #include "talk/app/webrtc/videotrack.h" | 42 #include "talk/app/webrtc/videotrack.h" |
43 #include "talk/app/webrtc/webrtcsession.h" | 43 #include "talk/app/webrtc/webrtcsession.h" |
44 #include "talk/app/webrtc/webrtcsessiondescriptionfactory.h" | 44 #include "talk/app/webrtc/webrtcsessiondescriptionfactory.h" |
45 #include "talk/media/base/fakemediaengine.h" | |
46 #include "talk/media/base/fakevideorenderer.h" | |
47 #include "talk/media/base/mediachannel.h" | |
48 #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" | 45 #include "talk/session/media/channelmanager.h" |
55 #include "talk/session/media/mediasession.h" | 46 #include "talk/session/media/mediasession.h" |
56 #include "webrtc/base/fakenetwork.h" | 47 #include "webrtc/base/fakenetwork.h" |
57 #include "webrtc/base/firewallsocketserver.h" | 48 #include "webrtc/base/firewallsocketserver.h" |
58 #include "webrtc/base/gunit.h" | 49 #include "webrtc/base/gunit.h" |
59 #include "webrtc/base/logging.h" | 50 #include "webrtc/base/logging.h" |
60 #include "webrtc/base/network.h" | 51 #include "webrtc/base/network.h" |
61 #include "webrtc/base/physicalsocketserver.h" | 52 #include "webrtc/base/physicalsocketserver.h" |
62 #include "webrtc/base/ssladapter.h" | 53 #include "webrtc/base/ssladapter.h" |
63 #include "webrtc/base/sslidentity.h" | 54 #include "webrtc/base/sslidentity.h" |
64 #include "webrtc/base/sslstreamadapter.h" | 55 #include "webrtc/base/sslstreamadapter.h" |
65 #include "webrtc/base/stringutils.h" | 56 #include "webrtc/base/stringutils.h" |
66 #include "webrtc/base/thread.h" | 57 #include "webrtc/base/thread.h" |
67 #include "webrtc/base/virtualsocketserver.h" | 58 #include "webrtc/base/virtualsocketserver.h" |
| 59 #include "webrtc/media/base/fakemediaengine.h" |
| 60 #include "webrtc/media/base/fakevideorenderer.h" |
| 61 #include "webrtc/media/base/mediachannel.h" |
| 62 #include "webrtc/media/webrtc/fakewebrtccall.h" |
| 63 #include "webrtc/p2p/base/stunserver.h" |
| 64 #include "webrtc/p2p/base/teststunserver.h" |
| 65 #include "webrtc/p2p/base/testturnserver.h" |
| 66 #include "webrtc/p2p/base/transportchannel.h" |
| 67 #include "webrtc/p2p/client/basicportallocator.h" |
68 | 68 |
69 #define MAYBE_SKIP_TEST(feature) \ | 69 #define MAYBE_SKIP_TEST(feature) \ |
70 if (!(feature())) { \ | 70 if (!(feature())) { \ |
71 LOG(LS_INFO) << "Feature disabled... skipping"; \ | 71 LOG(LS_INFO) << "Feature disabled... skipping"; \ |
72 return; \ | 72 return; \ |
73 } | 73 } |
74 | 74 |
75 using cricket::FakeVoiceMediaChannel; | 75 using cricket::FakeVoiceMediaChannel; |
76 using cricket::TransportInfo; | 76 using cricket::TransportInfo; |
77 using rtc::SocketAddress; | 77 using rtc::SocketAddress; |
(...skipping 4232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4310 } | 4310 } |
4311 | 4311 |
4312 // TODO(bemasc): Add a TestIceStatesBundle with BUNDLE enabled. That test | 4312 // TODO(bemasc): Add a TestIceStatesBundle with BUNDLE enabled. That test |
4313 // currently fails because upon disconnection and reconnection OnIceComplete is | 4313 // currently fails because upon disconnection and reconnection OnIceComplete is |
4314 // called more than once without returning to IceGatheringGathering. | 4314 // called more than once without returning to IceGatheringGathering. |
4315 | 4315 |
4316 INSTANTIATE_TEST_CASE_P(WebRtcSessionTests, | 4316 INSTANTIATE_TEST_CASE_P(WebRtcSessionTests, |
4317 WebRtcSessionTest, | 4317 WebRtcSessionTest, |
4318 testing::Values(ALREADY_GENERATED, | 4318 testing::Values(ALREADY_GENERATED, |
4319 DTLS_IDENTITY_STORE)); | 4319 DTLS_IDENTITY_STORE)); |
OLD | NEW |