From: James Zern Date: Fri, 1 Aug 2014 20:18:30 +0000 (-0700) Subject: frame_size_tests: cosmetics X-Git-Tag: v1.4.0~1100^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e04273f7b690a73210e7c0ac1cb37d28cfc2e538;p=platform%2Fupstream%2Flibvpx.git frame_size_tests: cosmetics - output DecodeError() on failure - remove unused includes Change-Id: Ib5059137f7033089d4010cbdfd633861b9028718 --- diff --git a/test/frame_size_tests.cc b/test/frame_size_tests.cc index 34ee8b6..2400c20 100644 --- a/test/frame_size_tests.cc +++ b/test/frame_size_tests.cc @@ -7,13 +7,9 @@ * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ -#include -#include #include "third_party/googletest/src/include/gtest/gtest.h" #include "test/codec_factory.h" -#include "test/encode_test_driver.h" -#include "test/i420_video_source.h" -#include "test/util.h" +#include "test/video_source.h" namespace { @@ -33,10 +29,7 @@ class VP9FrameSizeTestsLarge virtual bool HandleDecodeResult(const vpx_codec_err_t res_dec, const libvpx_test::VideoSource &video, libvpx_test::Decoder *decoder) { - EXPECT_EQ(expected_res_, res_dec) - << "Expected " << expected_res_ - << "but got " << res_dec; - + EXPECT_EQ(expected_res_, res_dec) << decoder->DecodeError(); return !::testing::Test::HasFailure(); }