]> granicus.if.org Git - libvpx/commitdiff
simplify test code
authorYaowu Xu <yaowu@google.com>
Thu, 8 Sep 2016 23:16:54 +0000 (16:16 -0700)
committerYaowu Xu <yaowu@google.com>
Fri, 9 Sep 2016 16:40:58 +0000 (16:40 +0000)
Change-Id: Ib5491fb8f5dd7edf27c74abdd21b1f0a42aafd1f

test/active_map_refresh_test.cc

index 9d2f33e0ea34e0df32d0a42b1febc8fa6579ef8a..161dc733d5d18a5662f3618c06581f62b86a673d 100644 (file)
@@ -115,22 +115,15 @@ TEST_P(ActiveMapRefreshTest, Test) {
   cfg_.rc_end_usage = AOM_CBR;
   cfg_.kf_max_dist = 90000;
 
-#if CONFIG_AV1
-  const int nframes = codec_ == &libaom_test::kAV1 ? 10 : 30;
-#else
-  const int nframes = 30;
-#endif  // CONFIG_AV1
-  ::libaom_test::Y4mVideoSource video("desktop_credits.y4m", 0, nframes);
-  ::libaom_test::Y4mVideoSource video_holder("desktop_credits.y4m", 0, nframes);
+  ::libaom_test::Y4mVideoSource video("desktop_credits.y4m", 0, 10);
+  ::libaom_test::Y4mVideoSource video_holder("desktop_credits.y4m", 0, 10);
   video_holder.Begin();
   y4m_holder_ = &video_holder;
 
   ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
 }
 
-#if CONFIG_AV1
 AV1_INSTANTIATE_TEST_CASE(ActiveMapRefreshTest,
                           ::testing::Values(::libaom_test::kRealTime),
                           ::testing::Range(5, 6));
-#endif  // CONFIG_AV1
 }  // namespace