| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 #include "webrtc/video/video_quality_test.h" | 10 #include "webrtc/video/video_quality_test.h" |
| (...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 | 1355 |
| 1356 // Start sending and receiving video. | 1356 // Start sending and receiving video. |
| 1357 video_receive_stream->Start(); | 1357 video_receive_stream->Start(); |
| 1358 video_send_stream_->Start(); | 1358 video_send_stream_->Start(); |
| 1359 capturer_->Start(); | 1359 capturer_->Start(); |
| 1360 | 1360 |
| 1361 if (params_.audio) { | 1361 if (params_.audio) { |
| 1362 // Start receiving audio. | 1362 // Start receiving audio. |
| 1363 audio_receive_stream->Start(); | 1363 audio_receive_stream->Start(); |
| 1364 EXPECT_EQ(0, voe.base->StartPlayout(voe.receive_channel_id)); | 1364 EXPECT_EQ(0, voe.base->StartPlayout(voe.receive_channel_id)); |
| 1365 EXPECT_EQ(0, voe.base->StartReceive(voe.receive_channel_id)); | |
| 1366 | 1365 |
| 1367 // Start sending audio. | 1366 // Start sending audio. |
| 1368 audio_send_stream_->Start(); | 1367 audio_send_stream_->Start(); |
| 1369 EXPECT_EQ(0, voe.base->StartSend(voe.send_channel_id)); | 1368 EXPECT_EQ(0, voe.base->StartSend(voe.send_channel_id)); |
| 1370 } | 1369 } |
| 1371 | 1370 |
| 1372 test::PressEnterToContinue(); | 1371 test::PressEnterToContinue(); |
| 1373 | 1372 |
| 1374 if (params_.audio) { | 1373 if (params_.audio) { |
| 1375 // Stop sending audio. | 1374 // Stop sending audio. |
| 1376 EXPECT_EQ(0, voe.base->StopSend(voe.send_channel_id)); | 1375 EXPECT_EQ(0, voe.base->StopSend(voe.send_channel_id)); |
| 1377 audio_send_stream_->Stop(); | 1376 audio_send_stream_->Stop(); |
| 1378 | 1377 |
| 1379 // Stop receiving audio. | 1378 // Stop receiving audio. |
| 1380 EXPECT_EQ(0, voe.base->StopReceive(voe.receive_channel_id)); | |
| 1381 EXPECT_EQ(0, voe.base->StopPlayout(voe.receive_channel_id)); | 1379 EXPECT_EQ(0, voe.base->StopPlayout(voe.receive_channel_id)); |
| 1382 audio_receive_stream->Stop(); | 1380 audio_receive_stream->Stop(); |
| 1383 } | 1381 } |
| 1384 | 1382 |
| 1385 // Stop receiving and sending video. | 1383 // Stop receiving and sending video. |
| 1386 capturer_->Stop(); | 1384 capturer_->Stop(); |
| 1387 video_send_stream_->Stop(); | 1385 video_send_stream_->Stop(); |
| 1388 video_receive_stream->Stop(); | 1386 video_receive_stream->Stop(); |
| 1389 | 1387 |
| 1390 call->DestroyVideoReceiveStream(video_receive_stream); | 1388 call->DestroyVideoReceiveStream(video_receive_stream); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1419 std::ostringstream str; | 1417 std::ostringstream str; |
| 1420 str << receive_logs_++; | 1418 str << receive_logs_++; |
| 1421 std::string path = | 1419 std::string path = |
| 1422 params_.common.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; | 1420 params_.common.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; |
| 1423 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), | 1421 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), |
| 1424 10000000); | 1422 10000000); |
| 1425 } | 1423 } |
| 1426 } | 1424 } |
| 1427 | 1425 |
| 1428 } // namespace webrtc | 1426 } // namespace webrtc |
| OLD | NEW |