#include <string>
#include "gtest/gtest.h"
#include "./vpx_config.h"
#include "./y4menc.h"
#include "test/md5_helper.h"
#include "test/util.h"
#include "test/y4m_video_source.h"
namespace {
string;
static const unsigned int kWidth = …;
static const unsigned int kHeight = …;
static const unsigned int kFrames = …;
struct Y4mTestParam { … };
const Y4mTestParam kY4mTestVectors[] = …;
static void write_image_file(const vpx_image_t *img, FILE *file) { … }
class Y4mVideoSourceTest : public ::testing::TestWithParam<Y4mTestParam>,
public ::libvpx_test::Y4mVideoSource { … };
TEST_P(Y4mVideoSourceTest, SourceTest) { … }
INSTANTIATE_TEST_SUITE_P(…);
class Y4mVideoWriteTest : public Y4mVideoSourceTest { … };
TEST_P(Y4mVideoWriteTest, WriteTest) { … }
INSTANTIATE_TEST_SUITE_P(…);
static const char kY4MRegularHeader[] = …;
TEST(Y4MHeaderTest, RegularHeader) { … }
static const char kY4MLongHeader[] = …;
TEST(Y4MHeaderTest, LongHeader) { … }
}