error_resilience_test renaming -> Suffix Large

Change-Id: I62daa5938c93f0fce0c90ad3b67a2eb590120e38
This commit is contained in:
Jim Bankoski 2014-03-12 08:13:16 -07:00 committed by Gerrit Code Review
parent 5d185d107b
commit a0b5ed6730

View File

@ -19,19 +19,20 @@ namespace {
const int kMaxErrorFrames = 12; const int kMaxErrorFrames = 12;
const int kMaxDroppableFrames = 12; const int kMaxDroppableFrames = 12;
class ErrorResilienceTest : public ::libvpx_test::EncoderTest, class ErrorResilienceTestLarge : public ::libvpx_test::EncoderTest,
public ::libvpx_test::CodecTestWithParam<libvpx_test::TestMode> { public ::libvpx_test::CodecTestWithParam<libvpx_test::TestMode> {
protected: protected:
ErrorResilienceTest() : EncoderTest(GET_PARAM(0)), ErrorResilienceTestLarge()
psnr_(0.0), : EncoderTest(GET_PARAM(0)),
nframes_(0), psnr_(0.0),
mismatch_psnr_(0.0), nframes_(0),
mismatch_nframes_(0), mismatch_psnr_(0.0),
encoding_mode_(GET_PARAM(1)) { mismatch_nframes_(0),
encoding_mode_(GET_PARAM(1)) {
Reset(); Reset();
} }
virtual ~ErrorResilienceTest() {} virtual ~ErrorResilienceTestLarge() {}
void Reset() { void Reset() {
error_nframes_ = 0; error_nframes_ = 0;
@ -144,7 +145,7 @@ class ErrorResilienceTest : public ::libvpx_test::EncoderTest,
libvpx_test::TestMode encoding_mode_; libvpx_test::TestMode encoding_mode_;
}; };
TEST_P(ErrorResilienceTest, OnVersusOff) { TEST_P(ErrorResilienceTestLarge, OnVersusOff) {
const vpx_rational timebase = { 33333333, 1000000000 }; const vpx_rational timebase = { 33333333, 1000000000 };
cfg_.g_timebase = timebase; cfg_.g_timebase = timebase;
cfg_.rc_target_bitrate = 2000; cfg_.rc_target_bitrate = 2000;
@ -179,7 +180,7 @@ TEST_P(ErrorResilienceTest, OnVersusOff) {
// if we lose (i.e., drop before decoding) a set of droppable // if we lose (i.e., drop before decoding) a set of droppable
// frames (i.e., frames that don't update any reference buffers). // frames (i.e., frames that don't update any reference buffers).
// Check both isolated and consecutive loss. // Check both isolated and consecutive loss.
TEST_P(ErrorResilienceTest, DropFramesWithoutRecovery) { TEST_P(ErrorResilienceTestLarge, DropFramesWithoutRecovery) {
const vpx_rational timebase = { 33333333, 1000000000 }; const vpx_rational timebase = { 33333333, 1000000000 };
cfg_.g_timebase = timebase; cfg_.g_timebase = timebase;
cfg_.rc_target_bitrate = 500; cfg_.rc_target_bitrate = 500;
@ -235,7 +236,7 @@ TEST_P(ErrorResilienceTest, DropFramesWithoutRecovery) {
#endif #endif
} }
VP8_INSTANTIATE_TEST_CASE(ErrorResilienceTest, ONE_PASS_TEST_MODES); VP8_INSTANTIATE_TEST_CASE(ErrorResilienceTestLarge, ONE_PASS_TEST_MODES);
VP9_INSTANTIATE_TEST_CASE(ErrorResilienceTest, ONE_PASS_TEST_MODES); VP9_INSTANTIATE_TEST_CASE(ErrorResilienceTestLarge, ONE_PASS_TEST_MODES);
} // namespace } // namespace