Update internal SW codecs to return unique_ptrs
TBR=stefan@webrtc.org Bug: webrtc:7925 Change-Id: I84239b071a2608d928f09b06809090eec5eafb14 Reviewed-on: https://webrtc-review.googlesource.com/21165 Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20650}
This commit is contained in:

committed by
Commit Bot

parent
8f91f1ee71
commit
4fe6adc06a
@ -63,8 +63,8 @@ void VideoCodecTest::SetUp() {
|
||||
input_frame_.reset(new VideoFrame(video_frame_buffer, kVideoRotation_0, 0));
|
||||
fclose(source_file_);
|
||||
|
||||
encoder_.reset(CreateEncoder());
|
||||
decoder_.reset(CreateDecoder());
|
||||
encoder_ = CreateEncoder();
|
||||
decoder_ = CreateDecoder();
|
||||
encoder_->RegisterEncodeCompleteCallback(&encode_complete_callback_);
|
||||
decoder_->RegisterDecodeCompleteCallback(&decode_complete_callback_);
|
||||
|
||||
|
@ -68,8 +68,8 @@ class VideoCodecTest : public ::testing::Test {
|
||||
VideoCodecTest* const test_;
|
||||
};
|
||||
|
||||
virtual VideoEncoder* CreateEncoder() = 0;
|
||||
virtual VideoDecoder* CreateDecoder() = 0;
|
||||
virtual std::unique_ptr<VideoEncoder> CreateEncoder() = 0;
|
||||
virtual std::unique_ptr<VideoDecoder> CreateDecoder() = 0;
|
||||
virtual VideoCodec codec_settings() = 0;
|
||||
|
||||
void SetUp() override;
|
||||
|
Reference in New Issue
Block a user