Skip to content

Commit

Permalink
altref_test: move AltRefTest instantiation w/in VP8 check
Browse files Browse the repository at this point in the history
some configurations may fail if AltRefTest is undefined though
VP8_INSTANTIATE_TEST_CASE is defined away.

Change-Id: I7272775a506718336bd6cee2225cf83bd72fede5
  • Loading branch information
jzern committed Feb 26, 2016
1 parent 48755f9 commit 1ff2935
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/altref_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ TEST_P(AltRefTest, MonotonicTimestamps) {
EXPECT_GE(altref_count(), 1);
}

VP8_INSTANTIATE_TEST_CASE(AltRefTest,
::testing::Range(kLookAheadMin, kLookAheadMax));

#endif // CONFIG_VP8_ENCODER

class AltRefForcedKeyTest
Expand Down Expand Up @@ -149,9 +152,6 @@ TEST_P(AltRefForcedKeyTest, ForcedFrameIsKey) {
}
}

VP8_INSTANTIATE_TEST_CASE(AltRefTest,
::testing::Range(kLookAheadMin, kLookAheadMax));

VP8_INSTANTIATE_TEST_CASE(
AltRefForcedKeyTest,
::testing::Values(::libvpx_test::kOnePassGood),
Expand Down

0 comments on commit 1ff2935

Please sign in to comment.