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:
@ -912,8 +912,7 @@ TEST(AudioEncoderOpusTest, SetMaxPlaybackRateFb) {
|
||||
EXPECT_EQ(64000, config.bitrate_bps);
|
||||
}
|
||||
|
||||
// TODO(webrtc:11325) Reenable after Opus has been upgraded to 1.3.
|
||||
TEST_P(AudioEncoderOpusTest, DISABLED_OpusFlagDtxAsNonSpeech) {
|
||||
TEST_P(AudioEncoderOpusTest, OpusFlagDtxAsNonSpeech) {
|
||||
// Create encoder with DTX enabled.
|
||||
AudioEncoderOpusConfig config;
|
||||
config.dtx_enabled = true;
|
||||
@ -970,8 +969,8 @@ TEST_P(AudioEncoderOpusTest, DISABLED_OpusFlagDtxAsNonSpeech) {
|
||||
}
|
||||
}
|
||||
|
||||
// Maximum number of consecutive non-speech packets should exceed 20.
|
||||
EXPECT_GT(max_nonspeech_frames, 20);
|
||||
// Maximum number of consecutive non-speech packets should exceed 15.
|
||||
EXPECT_GT(max_nonspeech_frames, 15);
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user