| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 observer.set_receive_stream(video_receive_streams_[0]); | 261 observer.set_receive_stream(video_receive_streams_[0]); |
| 262 DriftingClock drifting_clock(clock_, video_ntp_speed); | 262 DriftingClock drifting_clock(clock_, video_ntp_speed); |
| 263 CreateFrameGeneratorCapturerWithDrift(&drifting_clock, video_rtp_speed, | 263 CreateFrameGeneratorCapturerWithDrift(&drifting_clock, video_rtp_speed, |
| 264 kDefaultFramerate, kDefaultWidth, | 264 kDefaultFramerate, kDefaultWidth, |
| 265 kDefaultHeight); | 265 kDefaultHeight); |
| 266 | 266 |
| 267 Start(); | 267 Start(); |
| 268 | 268 |
| 269 fake_audio_device.Start(); | 269 fake_audio_device.Start(); |
| 270 EXPECT_EQ(0, voe_base->StartPlayout(recv_channel_id)); | 270 EXPECT_EQ(0, voe_base->StartPlayout(recv_channel_id)); |
| 271 EXPECT_EQ(0, voe_base->StartReceive(recv_channel_id)); | |
| 272 EXPECT_EQ(0, voe_base->StartSend(send_channel_id)); | 271 EXPECT_EQ(0, voe_base->StartSend(send_channel_id)); |
| 273 | 272 |
| 274 EXPECT_TRUE(observer.Wait()) | 273 EXPECT_TRUE(observer.Wait()) |
| 275 << "Timed out while waiting for audio and video to be synchronized."; | 274 << "Timed out while waiting for audio and video to be synchronized."; |
| 276 | 275 |
| 277 EXPECT_EQ(0, voe_base->StopSend(send_channel_id)); | 276 EXPECT_EQ(0, voe_base->StopSend(send_channel_id)); |
| 278 EXPECT_EQ(0, voe_base->StopReceive(recv_channel_id)); | |
| 279 EXPECT_EQ(0, voe_base->StopPlayout(recv_channel_id)); | 277 EXPECT_EQ(0, voe_base->StopPlayout(recv_channel_id)); |
| 280 fake_audio_device.Stop(); | 278 fake_audio_device.Stop(); |
| 281 | 279 |
| 282 Stop(); | 280 Stop(); |
| 283 video_send_transport.StopSending(); | 281 video_send_transport.StopSending(); |
| 284 audio_send_transport.StopSending(); | 282 audio_send_transport.StopSending(); |
| 285 receive_transport.StopSending(); | 283 receive_transport.StopSending(); |
| 286 | 284 |
| 287 DestroyStreams(); | 285 DestroyStreams(); |
| 288 | 286 |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 uint32_t last_set_bitrate_; | 721 uint32_t last_set_bitrate_; |
| 724 VideoSendStream* send_stream_; | 722 VideoSendStream* send_stream_; |
| 725 test::FrameGeneratorCapturer* frame_generator_; | 723 test::FrameGeneratorCapturer* frame_generator_; |
| 726 VideoEncoderConfig encoder_config_; | 724 VideoEncoderConfig encoder_config_; |
| 727 } test; | 725 } test; |
| 728 | 726 |
| 729 RunBaseTest(&test); | 727 RunBaseTest(&test); |
| 730 } | 728 } |
| 731 | 729 |
| 732 } // namespace webrtc | 730 } // namespace webrtc |
| OLD | NEW |