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

Unified Diff: webrtc/modules/video_coding/utility/simulcast_rate_allocator_unittest.cc

Issue 2853073004: Derive current layer from TL frame config. (Closed)
Patch Set: rebase Created 3 years, 7 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
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/utility/simulcast_rate_allocator_unittest.cc
diff --git a/webrtc/modules/video_coding/utility/simulcast_rate_allocator_unittest.cc b/webrtc/modules/video_coding/utility/simulcast_rate_allocator_unittest.cc
index 562718600b646da3f5e86b86dc55fecddfde894c..e0aac1056b2f59eee4f30edc95fd70f7d848071c 100644
--- a/webrtc/modules/video_coding/utility/simulcast_rate_allocator_unittest.cc
+++ b/webrtc/modules/video_coding/utility/simulcast_rate_allocator_unittest.cc
@@ -29,14 +29,18 @@ constexpr uint32_t kFramerateFps = 5;
class MockTemporalLayers : public TemporalLayers {
public:
- MOCK_METHOD1(UpdateLayerConfig, TemporalReferences(uint32_t));
+ MOCK_METHOD1(UpdateLayerConfig, TemporalLayers::FrameConfig(uint32_t));
MOCK_METHOD3(OnRatesUpdated, std::vector<uint32_t>(int, int, int));
MOCK_METHOD1(UpdateConfiguration, bool(vpx_codec_enc_cfg_t*));
- MOCK_METHOD3(PopulateCodecSpecific,
- void(bool, CodecSpecificInfoVP8*, uint32_t));
+ MOCK_METHOD4(PopulateCodecSpecific,
+ void(bool,
+ const TemporalLayers::FrameConfig&,
+ CodecSpecificInfoVP8*,
+ uint32_t));
MOCK_METHOD2(FrameEncoded, void(unsigned int, int));
- MOCK_CONST_METHOD0(CurrentLayerId, int());
MOCK_CONST_METHOD0(Tl0PicIdx, uint8_t());
+ MOCK_CONST_METHOD1(GetTemporalLayerId,
+ int(const TemporalLayers::FrameConfig&));
};
} // namespace
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698