| 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 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 EXPECT_CALL(video_provider_, SetCaptureDevice(kVideoSsrc, NULL)).Times(1); | 130 EXPECT_CALL(video_provider_, SetCaptureDevice(kVideoSsrc, NULL)).Times(1); |
| 131 EXPECT_CALL(video_provider_, SetVideoSend(kVideoSsrc, false, _)).Times(1); | 131 EXPECT_CALL(video_provider_, SetVideoSend(kVideoSsrc, false, _)).Times(1); |
| 132 video_rtp_sender_ = nullptr; | 132 video_rtp_sender_ = nullptr; |
| 133 } | 133 } |
| 134 | 134 |
| 135 void CreateAudioRtpReceiver() { | 135 void CreateAudioRtpReceiver() { |
| 136 audio_track_ = AudioTrack::Create( | 136 audio_track_ = AudioTrack::Create( |
| 137 kAudioTrackId, RemoteAudioSource::Create(kAudioSsrc, NULL)); | 137 kAudioTrackId, RemoteAudioSource::Create(kAudioSsrc, NULL)); |
| 138 EXPECT_TRUE(stream_->AddTrack(audio_track_)); | 138 EXPECT_TRUE(stream_->AddTrack(audio_track_)); |
| 139 EXPECT_CALL(audio_provider_, SetAudioPlayout(kAudioSsrc, true)); | 139 EXPECT_CALL(audio_provider_, SetAudioPlayout(kAudioSsrc, true)); |
| 140 audio_rtp_receiver_ = new AudioRtpReceiver(stream_->GetAudioTracks()[0], | 140 audio_rtp_receiver_ = new AudioRtpReceiver(stream_, kAudioTrackId, |
| 141 kAudioSsrc, &audio_provider_); | 141 kAudioSsrc, &audio_provider_); |
| 142 audio_track_ = audio_rtp_receiver_->audio_track(); |
| 142 } | 143 } |
| 143 | 144 |
| 144 void CreateVideoRtpReceiver() { | 145 void CreateVideoRtpReceiver() { |
| 145 EXPECT_CALL(video_provider_, SetVideoPlayout(kVideoSsrc, true, _)); | 146 EXPECT_CALL(video_provider_, SetVideoPlayout(kVideoSsrc, true, _)); |
| 146 video_rtp_receiver_ = | 147 video_rtp_receiver_ = |
| 147 new VideoRtpReceiver(stream_, kVideoTrackId, rtc::Thread::Current(), | 148 new VideoRtpReceiver(stream_, kVideoTrackId, rtc::Thread::Current(), |
| 148 kVideoSsrc, &video_provider_); | 149 kVideoSsrc, &video_provider_); |
| 149 video_track_ = video_rtp_receiver_->video_track(); | 150 video_track_ = video_rtp_receiver_->video_track(); |
| 150 } | 151 } |
| 151 | 152 |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 .WillOnce(Return(RtpParameters())); | 510 .WillOnce(Return(RtpParameters())); |
| 510 EXPECT_CALL(video_provider_, SetVideoRtpParameters(kVideoSsrc, _)) | 511 EXPECT_CALL(video_provider_, SetVideoRtpParameters(kVideoSsrc, _)) |
| 511 .WillOnce(Return(true)); | 512 .WillOnce(Return(true)); |
| 512 RtpParameters params = video_rtp_sender_->GetParameters(); | 513 RtpParameters params = video_rtp_sender_->GetParameters(); |
| 513 EXPECT_TRUE(video_rtp_sender_->SetParameters(params)); | 514 EXPECT_TRUE(video_rtp_sender_->SetParameters(params)); |
| 514 | 515 |
| 515 DestroyVideoRtpSender(); | 516 DestroyVideoRtpSender(); |
| 516 } | 517 } |
| 517 | 518 |
| 518 } // namespace webrtc | 519 } // namespace webrtc |
| OLD | NEW |