From 040ffb6326866c9cea3f10530007da511521ed57 Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Fri, 13 Sep 2013 09:23:53 -0700 Subject: [PATCH] Minor adjustment in unit tests The CpuSpeedTest is extended to cover 2pass good quality with CpuUsed from 0 to 4. The BordersTest is changed to use CpuUsed 1 for faster turn around. Change-Id: I005e89adee7fe63af4b1f2a76a3a13ea826feadf --- test/borders_test.cc | 2 +- test/cpu_speed_test.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/borders_test.cc b/test/borders_test.cc index efaedb9d2..dcdedcfab 100644 --- a/test/borders_test.cc +++ b/test/borders_test.cc @@ -30,7 +30,7 @@ class BordersTest : public ::libvpx_test::EncoderTest, virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video, ::libvpx_test::Encoder *encoder) { if (video->frame() == 1) { - encoder->Control(VP8E_SET_CPUUSED, 0); + encoder->Control(VP8E_SET_CPUUSED, 1); encoder->Control(VP8E_SET_ENABLEAUTOALTREF, 1); encoder->Control(VP8E_SET_ARNR_MAXFRAMES, 7); encoder->Control(VP8E_SET_ARNR_STRENGTH, 5); diff --git a/test/cpu_speed_test.cc b/test/cpu_speed_test.cc index e6ad75b1d..c92e72379 100644 --- a/test/cpu_speed_test.cc +++ b/test/cpu_speed_test.cc @@ -108,5 +108,5 @@ using std::tr1::make_tuple; VP9_INSTANTIATE_TEST_CASE( CpuSpeedTest, ::testing::Values(::libvpx_test::kTwoPassGood), - ::testing::Range(0, 3)); + ::testing::Range(0, 5)); } // namespace -- 2.40.0