diff options
author | xroche <xavier.roche@open.eurogiciel.org> | 2014-11-12 09:57:17 +0100 |
---|---|---|
committer | xroche <xavier.roche@open.eurogiciel.org> | 2014-11-12 09:57:17 +0100 |
commit | 5e7225bb8e267151e93fd29a7d3c8a493dfd9b9d (patch) | |
tree | e16c83382d05019be9f19b52eb617757877d3c61 /test/config_test.cc | |
parent | 6d402749a249b062a161f5c2aad1e4e79ef08c33 (diff) | |
download | libvpx-upstream/1.3.0.tar.gz libvpx-upstream/1.3.0.tar.bz2 libvpx-upstream/1.3.0.zip |
Imported Upstream version 1.3.0upstream/1.3.0upstream-tar
Diffstat (limited to 'test/config_test.cc')
-rw-r--r-- | test/config_test.cc | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/test/config_test.cc b/test/config_test.cc index c4da46e2e..36c63302b 100644 --- a/test/config_test.cc +++ b/test/config_test.cc @@ -8,20 +8,22 @@ * be found in the AUTHORS file in the root of the source tree. */ #include "third_party/googletest/src/include/gtest/gtest.h" +#include "test/codec_factory.h" #include "test/encode_test_driver.h" +#include "test/util.h" #include "test/video_source.h" namespace { class ConfigTest : public ::libvpx_test::EncoderTest, - public ::testing::TestWithParam<enum libvpx_test::TestMode> { - public: - ConfigTest() : frame_count_in_(0), frame_count_out_(0), frame_count_max_(0) {} - + public ::libvpx_test::CodecTestWithParam<libvpx_test::TestMode> { protected: + ConfigTest() : EncoderTest(GET_PARAM(0)), + frame_count_in_(0), frame_count_out_(0), frame_count_max_(0) {} + virtual void SetUp() { InitializeConfig(); - SetMode(GetParam()); + SetMode(GET_PARAM(1)); } virtual void BeginPassHook(unsigned int /*pass*/) { @@ -38,10 +40,6 @@ class ConfigTest : public ::libvpx_test::EncoderTest, ++frame_count_out_; } - virtual bool Continue() const { - return !HasFatalFailure() && !abort_; - } - unsigned int frame_count_in_; unsigned int frame_count_out_; unsigned int frame_count_max_; @@ -57,5 +55,5 @@ TEST_P(ConfigTest, LagIsDisabled) { EXPECT_EQ(frame_count_in_, frame_count_out_); } -INSTANTIATE_TEST_CASE_P(OnePassModes, ConfigTest, ONE_PASS_TEST_MODES); +VP8_INSTANTIATE_TEST_CASE(ConfigTest, ONE_PASS_TEST_MODES); } // namespace |