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

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

Issue 2853073004: Derive current layer from TL frame config. (Closed)
Patch Set: Created 3 years, 8 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/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 670ad31483d315c132f8cbba896a38b65464cd96..b553a672cad2db08a235260decca25607af99d74 100644
--- a/webrtc/modules/video_coding/utility/simulcast_rate_allocator_unittest.cc
+++ b/webrtc/modules/video_coding/utility/simulcast_rate_allocator_unittest.cc
@@ -29,13 +29,14 @@ 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, TemporalLayers::FrameConfig, CodecSpecificInfoVP8*, uint32_t));
MOCK_METHOD2(FrameEncoded, void(unsigned int, int));
- MOCK_CONST_METHOD0(CurrentLayerId, int());
+ MOCK_CONST_METHOD1(GetTemporalLayerId, int(TemporalLayers::FrameConfig));
};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698