chromium/third_party/libvpx/source/libvpx/test/timestamp_test.cc

/*
 *  Copyright (c) 2019 The WebM project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */
#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 =;

// A video source that exposes functions to set the timebase, framerate and
// starting pts.
class DummyTimebaseVideoSource : public ::libvpx_test::DummyVideoSource {};

class TimestampTest
    : public ::libvpx_test::EncoderTest,
      public ::libvpx_test::CodecTestWithParam<libvpx_test::TestMode> {};

// Tests encoding in millisecond timebase.
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
}  // namespace