#include "third_party/blink/renderer/platform/audio/audio_frame_stats_accumulator.h"
#include <stdint.h>
#include "base/time/time.h"
#include "media/base/audio_glitch_info.h"
#include "media/base/audio_timestamp_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
namespace {
void VerifyAccumulator(const AudioFrameStatsAccumulator& accumulator,
uint64_t observed_frames,
base::TimeDelta observed_frames_duration,
uint64_t glitch_frames,
base::TimeDelta latency,
base::TimeDelta min_latency,
base::TimeDelta average_latency,
base::TimeDelta max_latency,
const media::AudioGlitchInfo& glitch_info) { … }
TEST(AudioFrameStatsAccumulatorTest, AbsorbEmtpy) { … }
TEST(AudioFrameStatsAccumulatorTest, Update) { … }
TEST(AudioFrameStatsAccumulatorTest, Absorb) { … }
TEST(AudioFrameStatsAccumulatorTest, UpdateDifferentSampleRates) { … }
}
}