summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWan-Teh Chang <wtc@google.com>2023-03-22 16:09:24 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-03-22 16:09:24 +0000
commita0bf98de0d7f7017bccc287bbf986d7518502e29 (patch)
treebca4e44c784653fd133bb32652d201bdfcb9c685 /test
parent882399bd54a82aa72ba766356d8fda31fbe40450 (diff)
parent430c6c1553df0abfe2dadc480b21dd691a98140f (diff)
downloadlibvpx-a0bf98de0d7f7017bccc287bbf986d7518502e29.tar.gz
Merge "Change UpdateRateControl() to return bool" into main
Diffstat (limited to 'test')
-rw-r--r--test/vp8_ratectrl_rtc_test.cc8
-rw-r--r--test/vp9_ratectrl_rtc_test.cc6
2 files changed, 7 insertions, 7 deletions
diff --git a/test/vp8_ratectrl_rtc_test.cc b/test/vp8_ratectrl_rtc_test.cc
index 56c26a99f..b76bcae11 100644
--- a/test/vp8_ratectrl_rtc_test.cc
+++ b/test/vp8_ratectrl_rtc_test.cc
@@ -160,7 +160,7 @@ class Vp8RcInterfaceTest
if (test_video_.width == 640 && target_bitrate_ == 1000) return;
SetConfig();
rc_api_ = libvpx::VP8RateControlRTC::Create(rc_cfg_);
- rc_api_->UpdateRateControl(rc_cfg_);
+ ASSERT_TRUE(rc_api_->UpdateRateControl(rc_cfg_));
::libvpx_test::I420VideoSource video(test_video_.name, test_video_.width,
test_video_.height, 30, 1, 0,
@@ -177,7 +177,7 @@ class Vp8RcInterfaceTest
key_interval_ = 100;
SetConfig();
rc_api_ = libvpx::VP8RateControlRTC::Create(rc_cfg_);
- rc_api_->UpdateRateControl(rc_cfg_);
+ ASSERT_TRUE(rc_api_->UpdateRateControl(rc_cfg_));
::libvpx_test::I420VideoSource video(test_video_.name, test_video_.width,
test_video_.height, 30, 1, 0,
@@ -193,7 +193,7 @@ class Vp8RcInterfaceTest
if (test_video_.width == 640 && target_bitrate_ == 1000) return;
SetConfigTemporalLayers(2);
rc_api_ = libvpx::VP8RateControlRTC::Create(rc_cfg_);
- rc_api_->UpdateRateControl(rc_cfg_);
+ ASSERT_TRUE(rc_api_->UpdateRateControl(rc_cfg_));
::libvpx_test::I420VideoSource video(test_video_.name, test_video_.width,
test_video_.height, 30, 1, 0,
@@ -209,7 +209,7 @@ class Vp8RcInterfaceTest
if (test_video_.width == 640 && target_bitrate_ == 1000) return;
SetConfigTemporalLayers(3);
rc_api_ = libvpx::VP8RateControlRTC::Create(rc_cfg_);
- rc_api_->UpdateRateControl(rc_cfg_);
+ ASSERT_TRUE(rc_api_->UpdateRateControl(rc_cfg_));
::libvpx_test::I420VideoSource video(test_video_.name, test_video_.width,
test_video_.height, 30, 1, 0,
diff --git a/test/vp9_ratectrl_rtc_test.cc b/test/vp9_ratectrl_rtc_test.cc
index c6ab5b034..5abda1290 100644
--- a/test/vp9_ratectrl_rtc_test.cc
+++ b/test/vp9_ratectrl_rtc_test.cc
@@ -212,7 +212,7 @@ class RcInterfaceSvcTest
rc_cfg_.layer_target_bitrate[6] = 0;
rc_cfg_.layer_target_bitrate[7] = 0;
rc_cfg_.layer_target_bitrate[8] = 0;
- rc_api_->UpdateRateControl(rc_cfg_);
+ ASSERT_TRUE(rc_api_->UpdateRateControl(rc_cfg_));
} else if (video->frame() == 200) {
// Go down to 1 spatial layer.
// Update the encoder config.
@@ -226,7 +226,7 @@ class RcInterfaceSvcTest
rc_cfg_.layer_target_bitrate[3] = 0;
rc_cfg_.layer_target_bitrate[4] = 0;
rc_cfg_.layer_target_bitrate[5] = 0;
- rc_api_->UpdateRateControl(rc_cfg_);
+ ASSERT_TRUE(rc_api_->UpdateRateControl(rc_cfg_));
} else if (0 && video->frame() == 280) {
// TODO(marpan): Re-enable this going back up when issue is fixed.
// Go back up to 3 spatial layers.
@@ -235,7 +235,7 @@ class RcInterfaceSvcTest
encoder->Config(&cfg_);
// Update the RC config.
SetRCConfigSvc(3, 3);
- rc_api_->UpdateRateControl(rc_cfg_);
+ ASSERT_TRUE(rc_api_->UpdateRateControl(rc_cfg_));
}
}
}