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

Unified Diff: webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc

Issue 1647163002: Deprecate VideoDecoder::Reset() and remove calls. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove OnInitializeDecoder for video Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc
diff --git a/webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc b/webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc
index c3d77da0631f7b070a17c7a87f32a0b85c7b908b..0dd3d7cef8a37df5598913bdb57398390c051834 100644
--- a/webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc
+++ b/webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc
@@ -266,22 +266,4 @@ TEST_F(TestVp8Impl, MAYBE_DecodeWithACompleteKeyFrame) {
EXPECT_GT(I420PSNR(&input_frame_, &decoded_frame_), 36);
}
-TEST_F(TestVp8Impl, TestReset) {
- SetUpEncodeDecode();
- EXPECT_EQ(0, encoder_->Encode(input_frame_, NULL, NULL));
- EXPECT_EQ(0, decoder_->Decode(encoded_frame_, false, NULL));
- size_t length = CalcBufferSize(kI420, kWidth, kHeight);
- rtc::scoped_ptr<uint8_t[]> first_frame_buffer(new uint8_t[length]);
- ExtractBuffer(decoded_frame_, length, first_frame_buffer.get());
-
- EXPECT_EQ(0, decoder_->Reset());
-
- EXPECT_EQ(0, decoder_->Decode(encoded_frame_, false, NULL));
- rtc::scoped_ptr<uint8_t[]> second_frame_buffer(new uint8_t[length]);
- ExtractBuffer(decoded_frame_, length, second_frame_buffer.get());
-
- EXPECT_EQ(
- 0, memcmp(second_frame_buffer.get(), first_frame_buffer.get(), length));
-}
-
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698