Update Opus tests for Opus 1.3

This updates various bitexactness tests and other tests that no longer
pass.

Bug: webrtc:11325
Change-Id: Ifa3e4b42e303f5573e028dfdf8a108a76f6318ae
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/168952
Commit-Queue: Ivo Creusen <ivoc@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30688}
This commit is contained in:
Ivo Creusen
2020-03-04 17:16:59 +01:00
committed by Commit Bot
parent 99eb20b513
commit 16ddae924e
5 changed files with 49 additions and 61 deletions

View File

@ -101,13 +101,13 @@ float EncodedPowerRatio(AudioEncoder* encoder,
} // namespace
// TODO(webrtc:11325) Reenable after Opus has been upgraded to 1.3.
TEST(BandwidthAdaptationTest, DISABLED_BandwidthAdaptationTest) {
// TODO(ivoc): Remove this test, WebRTC-AdjustOpusBandwidth is obsolete.
TEST(BandwidthAdaptationTest, BandwidthAdaptationTest) {
test::ScopedFieldTrials override_field_trials(
"WebRTC-AdjustOpusBandwidth/Enabled/");
constexpr float kMaxNarrowbandRatio = 0.0035f;
constexpr float kMinWidebandRatio = 0.03f;
constexpr float kMinWidebandRatio = 0.01f;
// Create encoder.
AudioEncoderOpusConfig enc_config;