| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 observer.set_receive_stream(video_receive_streams_[0]); | 266 observer.set_receive_stream(video_receive_streams_[0]); |
| 267 DriftingClock drifting_clock(clock_, video_ntp_speed); | 267 DriftingClock drifting_clock(clock_, video_ntp_speed); |
| 268 CreateFrameGeneratorCapturerWithDrift(&drifting_clock, video_rtp_speed, | 268 CreateFrameGeneratorCapturerWithDrift(&drifting_clock, video_rtp_speed, |
| 269 kDefaultFramerate, kDefaultWidth, | 269 kDefaultFramerate, kDefaultWidth, |
| 270 kDefaultHeight); | 270 kDefaultHeight); |
| 271 | 271 |
| 272 Start(); | 272 Start(); |
| 273 | 273 |
| 274 fake_audio_device.Start(); | 274 fake_audio_device.Start(); |
| 275 EXPECT_EQ(0, voe_base->StartPlayout(recv_channel_id)); | 275 EXPECT_EQ(0, voe_base->StartPlayout(recv_channel_id)); |
| 276 EXPECT_EQ(0, voe_base->StartReceive(recv_channel_id)); | |
| 277 EXPECT_EQ(0, voe_base->StartSend(send_channel_id)); | 276 EXPECT_EQ(0, voe_base->StartSend(send_channel_id)); |
| 278 | 277 |
| 279 EXPECT_TRUE(observer.Wait()) | 278 EXPECT_TRUE(observer.Wait()) |
| 280 << "Timed out while waiting for audio and video to be synchronized."; | 279 << "Timed out while waiting for audio and video to be synchronized."; |
| 281 | 280 |
| 282 EXPECT_EQ(0, voe_base->StopSend(send_channel_id)); | 281 EXPECT_EQ(0, voe_base->StopSend(send_channel_id)); |
| 283 EXPECT_EQ(0, voe_base->StopReceive(recv_channel_id)); | |
| 284 EXPECT_EQ(0, voe_base->StopPlayout(recv_channel_id)); | 282 EXPECT_EQ(0, voe_base->StopPlayout(recv_channel_id)); |
| 285 fake_audio_device.Stop(); | 283 fake_audio_device.Stop(); |
| 286 | 284 |
| 287 Stop(); | 285 Stop(); |
| 288 video_send_transport.StopSending(); | 286 video_send_transport.StopSending(); |
| 289 audio_send_transport.StopSending(); | 287 audio_send_transport.StopSending(); |
| 290 receive_transport.StopSending(); | 288 receive_transport.StopSending(); |
| 291 | 289 |
| 292 DestroyStreams(); | 290 DestroyStreams(); |
| 293 | 291 |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 uint32_t last_set_bitrate_; | 727 uint32_t last_set_bitrate_; |
| 730 VideoSendStream* send_stream_; | 728 VideoSendStream* send_stream_; |
| 731 test::FrameGeneratorCapturer* frame_generator_; | 729 test::FrameGeneratorCapturer* frame_generator_; |
| 732 VideoEncoderConfig encoder_config_; | 730 VideoEncoderConfig encoder_config_; |
| 733 } test; | 731 } test; |
| 734 | 732 |
| 735 RunBaseTest(&test); | 733 RunBaseTest(&test); |
| 736 } | 734 } |
| 737 | 735 |
| 738 } // namespace webrtc | 736 } // namespace webrtc |
| OLD | NEW |