#include <tuple>
#include "gtest/gtest.h"
#include "test/codec_factory.h"
#include "test/encode_test_driver.h"
#include "test/util.h"
#include "test/i420_video_source.h"
#include "vpx_config.h"
#include "vpx_mem/vpx_mem.h"
namespace {
class DecodeCorruptedFrameTest
: public ::libvpx_test::EncoderTest,
public ::testing::TestWithParam<
std::tuple<const libvpx_test::CodecFactory *> > { … };
TEST_P(DecodeCorruptedFrameTest, DecodeCorruptedFrame) { … }
#if CONFIG_VP9
INSTANTIATE_TEST_SUITE_P(…);
#endif
#if CONFIG_VP8
INSTANTIATE_TEST_SUITE_P(…);
#endif
}