Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: webrtc/video/end_to_end_tests.cc

Issue 2042603002: Movable support for VideoReceiveStream::Config and avoid copies (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add TODO Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/test/call_test.cc ('k') | webrtc/video/receive_statistics_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <algorithm> 10 #include <algorithm>
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 receive_config.rtp.local_ssrc = test::CallTest::kReceiverLocalVideoSsrc; 1207 receive_config.rtp.local_ssrc = test::CallTest::kReceiverLocalVideoSsrc;
1208 VideoReceiveStream::Decoder decoder = 1208 VideoReceiveStream::Decoder decoder =
1209 test::CreateMatchingDecoder(send_config.encoder_settings); 1209 test::CreateMatchingDecoder(send_config.encoder_settings);
1210 allocated_decoders.push_back( 1210 allocated_decoders.push_back(
1211 std::unique_ptr<VideoDecoder>(decoder.decoder)); 1211 std::unique_ptr<VideoDecoder>(decoder.decoder));
1212 receive_config.decoders.push_back(decoder); 1212 receive_config.decoders.push_back(decoder);
1213 1213
1214 UpdateReceiveConfig(i, &receive_config); 1214 UpdateReceiveConfig(i, &receive_config);
1215 1215
1216 receive_streams[i] = 1216 receive_streams[i] =
1217 receiver_call->CreateVideoReceiveStream(receive_config); 1217 receiver_call->CreateVideoReceiveStream(std::move(receive_config));
1218 receive_streams[i]->Start(); 1218 receive_streams[i]->Start();
1219 1219
1220 frame_generators[i] = test::FrameGeneratorCapturer::Create( 1220 frame_generators[i] = test::FrameGeneratorCapturer::Create(
1221 send_streams[i]->Input(), width, height, 30, 1221 send_streams[i]->Input(), width, height, 30,
1222 Clock::GetRealTimeClock()); 1222 Clock::GetRealTimeClock());
1223 frame_generators[i]->Start(); 1223 frame_generators[i]->Start();
1224 } 1224 }
1225 1225
1226 Wait(); 1226 Wait();
1227 1227
(...skipping 2312 matching lines...) Expand 10 before | Expand all | Expand 10 after
3540 private: 3540 private:
3541 bool video_observed_; 3541 bool video_observed_;
3542 bool audio_observed_; 3542 bool audio_observed_;
3543 SequenceNumberUnwrapper unwrapper_; 3543 SequenceNumberUnwrapper unwrapper_;
3544 std::set<int64_t> received_packet_ids_; 3544 std::set<int64_t> received_packet_ids_;
3545 } test; 3545 } test;
3546 3546
3547 RunBaseTest(&test); 3547 RunBaseTest(&test);
3548 } 3548 }
3549 } // namespace webrtc 3549 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/call_test.cc ('k') | webrtc/video/receive_statistics_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698