#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 {
const int kVideoSourceWidth = …;
const int kVideoSourceHeight = …;
const int kFramesToEncode = …;
class DummyTimebaseVideoSource : public ::libaom_test::DummyVideoSource { … };
class TimestampTest
: public ::libaom_test::EncoderTest,
public ::libaom_test::CodecTestWithParam<libaom_test::TestMode> { … };
TEST_P(TimestampTest, EncodeFrames) { … }
TEST_P(TimestampTest, TestMicrosecondTimebase) { … }
TEST_P(TimestampTest, TestAv1Rollover) { … }
#if CONFIG_REALTIME_ONLY
AV1_INSTANTIATE_TEST_SUITE(…);
#else
AV1_INSTANTIATE_TEST_SUITE(TimestampTest,
::testing::Values(::libaom_test::kRealTime,
::libaom_test::kTwoPassGood));
#endif
}