#include "gtest/gtest.h"
#include "test/codec_factory.h"
#include "test/encode_test_driver.h"
#include "test/util.h"
#include "test/video_source.h"
#include "vpx_config.h"
namespace {
const int kVideoSourceWidth = …;
const int kVideoSourceHeight = …;
const int kFramesToEncode = …;
class DummyTimebaseVideoSource : public ::libvpx_test::DummyVideoSource { … };
class TimestampTest
: public ::libvpx_test::EncoderTest,
public ::libvpx_test::CodecTestWithParam<libvpx_test::TestMode> { … };
TEST_P(TimestampTest, EncodeFrames) { … }
TEST_P(TimestampTest, TestMicrosecondTimebase) { … }
TEST_P(TimestampTest, TestVpxRollover) { … }
#if CONFIG_REALTIME_ONLY
VP8_INSTANTIATE_TEST_SUITE(…);
VP9_INSTANTIATE_TEST_SUITE(…);
#else
VP8_INSTANTIATE_TEST_SUITE(TimestampTest,
::testing::Values(::libvpx_test::kTwoPassGood));
VP9_INSTANTIATE_TEST_SUITE(TimestampTest,
::testing::Values(::libvpx_test::kTwoPassGood));
#endif
}