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 5616c92c4926b075887a469490cef5a3f743bda8..d0cc4b66ae9b248696bfa26fbc8b9b08c828be7f 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 |
@@ -16,6 +16,7 @@ |
#include "webrtc/base/timeutils.h" |
#include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
#include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" |
+#include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h" |
#include "webrtc/test/frame_utils.h" |
#include "webrtc/test/gtest.h" |
#include "webrtc/test/testsupport/fileutils.h" |
@@ -161,6 +162,7 @@ class TestVp8Impl : public ::testing::Test { |
codec_inst_.maxBitrate = 4000; |
codec_inst_.qpMax = 56; |
codec_inst_.codecSpecific.VP8.denoisingOn = true; |
+ codec_inst_.codecSpecific.VP8.tl_factory = &tl_factory_; |
EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, |
encoder_->InitEncode(&codec_inst_, 1, 1440)); |
@@ -201,6 +203,7 @@ class TestVp8Impl : public ::testing::Test { |
EncodedImage encoded_frame_; |
VideoFrame decoded_frame_; |
VideoCodec codec_inst_; |
+ TemporalLayersFactory tl_factory_; |
}; |
TEST_F(TestVp8Impl, EncoderParameterTest) { |
@@ -215,6 +218,8 @@ TEST_F(TestVp8Impl, EncoderParameterTest) { |
codec_inst_.qpMax = 56; |
codec_inst_.codecSpecific.VP8.complexity = kComplexityNormal; |
codec_inst_.codecSpecific.VP8.numberOfTemporalLayers = 1; |
+ codec_inst_.codecSpecific.VP8.tl_factory = &tl_factory_; |
+ |
// Calls before InitEncode(). |
EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, encoder_->Release()); |
int bit_rate = 300; |