#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/filters/audio_timestamp_validator.h"
#include <tuple>
#include "base/time/time.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/media_util.h"
#include "media/base/mock_media_log.h"
#include "media/base/test_helpers.h"
#include "testing/gtest/include/gtest/gtest.h"
HasSubstr;
namespace media {
static const AudioCodec kCodec = …;
static const SampleFormat kSampleFormat = …;
static const base::TimeDelta kSeekPreroll;
static const int kSamplesPerSecond = …;
static const base::TimeDelta kBufferDuration = …;
static const ChannelLayout kChannelLayout = …;
static const int kChannelCount = …;
static const int kChannels = …;
static const int kFramesPerBuffer = …;
ValidatorTestParams;
class AudioTimestampValidatorTest
: public testing::Test,
public ::testing::WithParamInterface<ValidatorTestParams> { … };
TEST_P(AudioTimestampValidatorTest, WarnForEraticTimes) { … }
TEST_P(AudioTimestampValidatorTest, NoWarningForValidTimes) { … }
TEST_P(AudioTimestampValidatorTest, SingleWarnForSingleLargeGap) { … }
TEST_P(AudioTimestampValidatorTest, RepeatedWarnForSlowAccumulatingDrift) { … }
INSTANTIATE_TEST_SUITE_P(…);
}