Add ProtectionBitrateCalculator as an abstract class. ProtectionBitrateCalculatorDefault implements ProtectionBitrateCalculator. Register VideoSendStream to packet feedback

Bug: webrtc:8656
Change-Id: Iab4f6ab8997cb082762218afc8580e9985ac2522
Reviewed-on: https://webrtc-review.googlesource.com/33010
Commit-Queue: Ying Wang <yinwa@webrtc.org>
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21348}
This commit is contained in:
Ying Wang
2017-12-18 14:49:46 +01:00
committed by Commit Bot
parent d6c54cdc8e
commit e58e91b6d1
7 changed files with 181 additions and 64 deletions

View File

@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include "modules/video_coding/protection_bitrate_calculator.h"
#include "modules/video_coding/protection_bitrate_calculator_default.h"
#include "system_wrappers/include/clock.h"
#include "test/gtest.h"
@ -46,7 +46,7 @@ class ProtectionBitrateCalculatorTest : public ::testing::Test {
SimulatedClock clock_;
ProtectionCallback protection_callback_;
ProtectionBitrateCalculator media_opt_;
ProtectionBitrateCalculatorDefault media_opt_;
};
TEST_F(ProtectionBitrateCalculatorTest, ProtectsUsingFecBitrate) {