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 <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "webrtc/api/audiotrack.h" | 14 #include "webrtc/api/audiotrack.h" |
15 #include "webrtc/api/fakemediacontroller.h" | 15 #include "webrtc/api/fakemediacontroller.h" |
16 #include "webrtc/api/fakemetricsobserver.h" | 16 #include "webrtc/api/fakemetricsobserver.h" |
17 #include "webrtc/api/jsepicecandidate.h" | 17 #include "webrtc/api/jsepicecandidate.h" |
18 #include "webrtc/api/jsepsessiondescription.h" | 18 #include "webrtc/api/jsepsessiondescription.h" |
19 #include "webrtc/api/peerconnection.h" | 19 #include "webrtc/api/peerconnection.h" |
20 #include "webrtc/api/sctputils.h" | 20 #include "webrtc/api/sctputils.h" |
21 #include "webrtc/api/streamcollection.h" | |
22 #include "webrtc/api/streamcollection.h" | |
23 #include "webrtc/api/test/fakedtlsidentitystore.h" | 21 #include "webrtc/api/test/fakedtlsidentitystore.h" |
24 #include "webrtc/api/videotrack.h" | 22 #include "webrtc/api/videotrack.h" |
25 #include "webrtc/api/webrtcsession.h" | 23 #include "webrtc/api/webrtcsession.h" |
26 #include "webrtc/api/webrtcsessiondescriptionfactory.h" | 24 #include "webrtc/api/webrtcsessiondescriptionfactory.h" |
27 #include "webrtc/base/fakenetwork.h" | 25 #include "webrtc/base/fakenetwork.h" |
28 #include "webrtc/base/firewallsocketserver.h" | 26 #include "webrtc/base/firewallsocketserver.h" |
29 #include "webrtc/base/gunit.h" | 27 #include "webrtc/base/gunit.h" |
30 #include "webrtc/base/logging.h" | 28 #include "webrtc/base/logging.h" |
31 #include "webrtc/base/network.h" | 29 #include "webrtc/base/network.h" |
32 #include "webrtc/base/physicalsocketserver.h" | 30 #include "webrtc/base/physicalsocketserver.h" |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 public sigslot::has_slots<> { | 314 public sigslot::has_slots<> { |
317 protected: | 315 protected: |
318 // TODO Investigate why ChannelManager crashes, if it's created | 316 // TODO Investigate why ChannelManager crashes, if it's created |
319 // after stun_server. | 317 // after stun_server. |
320 WebRtcSessionTest() | 318 WebRtcSessionTest() |
321 : media_engine_(new cricket::FakeMediaEngine()), | 319 : media_engine_(new cricket::FakeMediaEngine()), |
322 data_engine_(new cricket::FakeDataEngine()), | 320 data_engine_(new cricket::FakeDataEngine()), |
323 channel_manager_( | 321 channel_manager_( |
324 new cricket::ChannelManager(media_engine_, | 322 new cricket::ChannelManager(media_engine_, |
325 data_engine_, | 323 data_engine_, |
326 new cricket::CaptureManager(), | |
327 rtc::Thread::Current())), | 324 rtc::Thread::Current())), |
328 fake_call_(webrtc::Call::Config()), | 325 fake_call_(webrtc::Call::Config()), |
329 media_controller_( | 326 media_controller_( |
330 webrtc::MediaControllerInterface::Create(cricket::MediaConfig(), | 327 webrtc::MediaControllerInterface::Create(cricket::MediaConfig(), |
331 rtc::Thread::Current(), | 328 rtc::Thread::Current(), |
332 channel_manager_.get())), | 329 channel_manager_.get())), |
333 tdesc_factory_(new cricket::TransportDescriptionFactory()), | 330 tdesc_factory_(new cricket::TransportDescriptionFactory()), |
334 desc_factory_( | 331 desc_factory_( |
335 new cricket::MediaSessionDescriptionFactory(channel_manager_.get(), | 332 new cricket::MediaSessionDescriptionFactory(channel_manager_.get(), |
336 tdesc_factory_.get())), | 333 tdesc_factory_.get())), |
(...skipping 3952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4289 } | 4286 } |
4290 | 4287 |
4291 // TODO(bemasc): Add a TestIceStatesBundle with BUNDLE enabled. That test | 4288 // TODO(bemasc): Add a TestIceStatesBundle with BUNDLE enabled. That test |
4292 // currently fails because upon disconnection and reconnection OnIceComplete is | 4289 // currently fails because upon disconnection and reconnection OnIceComplete is |
4293 // called more than once without returning to IceGatheringGathering. | 4290 // called more than once without returning to IceGatheringGathering. |
4294 | 4291 |
4295 INSTANTIATE_TEST_CASE_P(WebRtcSessionTests, | 4292 INSTANTIATE_TEST_CASE_P(WebRtcSessionTests, |
4296 WebRtcSessionTest, | 4293 WebRtcSessionTest, |
4297 testing::Values(ALREADY_GENERATED, | 4294 testing::Values(ALREADY_GENERATED, |
4298 DTLS_IDENTITY_STORE)); | 4295 DTLS_IDENTITY_STORE)); |
OLD | NEW |