#include "media/audio/audio_device_stats_reporter.h"
#include "base/time/time.h"
#include "base/test/metrics/histogram_tester.h"
#include "media/base/audio_glitch_info.h"
#include "media/base/audio_latency.h"
#include "media/base/audio_parameters.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
Return;
namespace media {
namespace {
const std::string kRenderDelay = …;
const std::string kRenderGlitchCountShort = …;
const std::string kRenderGlitchCountIntervals = …;
const std::string kRenderGlitchDurationShort = …;
const std::string kRenderGlitchDurationIntervals = …;
const std::string kCaptureDelay = …;
const std::string kCaptureGlitchCountShort = …;
const std::string kCaptureGlitchCountIntervals = …;
const std::string kCaptureGlitchDurationShort = …;
const std::string kCaptureGlitchDurationIntervals = …;
}
class AudioDeviceStatsReporterOutputTest
: public ::testing::TestWithParam<
std::tuple<media::AudioLatency::Type, std::string>> { … };
TEST_P(AudioDeviceStatsReporterOutputTest, ShortStreamTest) { … }
TEST_P(AudioDeviceStatsReporterOutputTest, LongStreamTest) { … }
INSTANTIATE_TEST_SUITE_P(…);
class AudioDeviceStatsReporterInputTest : public ::testing::Test { … };
TEST_F(AudioDeviceStatsReporterInputTest, ShortStreamTest) { … }
TEST_F(AudioDeviceStatsReporterInputTest, LongStreamTest) { … }
}