#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/platform/audio/audio_destination.h"
#include <memory>
#include "media/base/audio_glitch_info.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/platform/web_audio_device.h"
#include "third_party/blink/public/platform/web_audio_latency_hint.h"
#include "third_party/blink/public/platform/web_audio_sink_descriptor.h"
#include "third_party/blink/renderer/platform/audio/audio_callback_metric_reporter.h"
#include "third_party/blink/renderer/platform/audio/audio_io_callback.h"
#include "third_party/blink/renderer/platform/audio/audio_utilities.h"
#include "third_party/blink/renderer/platform/testing/testing_platform_support.h"
namespace blink {
namespace {
_;
InSequence;
const LocalFrameToken kFrameToken;
class MockWebAudioDevice : public WebAudioDevice { … };
class TestPlatform : public TestingPlatformSupport { … };
class AudioCallback : public AudioIOCallback { … };
class AudioDestinationTest
: public ::testing::TestWithParam<std::optional<float>> { … };
TEST_P(AudioDestinationTest, ResamplingTest) { … }
TEST_P(AudioDestinationTest, GlitchAndDelay) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}