#include "third_party/blink/renderer/modules/mediacapturefromelement/html_audio_element_capturer_source.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
#include "base/time/time.h"
#include "media/audio/null_audio_sink.h"
#include "media/base/audio_parameters.h"
#include "media/base/fake_audio_render_callback.h"
#include "media/base/media_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/modules/mediastream/web_media_stream_audio_sink.h"
#include "third_party/blink/public/platform/scheduler/test/renderer_scheduler_test_support.h"
#include "third_party/blink/public/platform/web_audio_source_provider_impl.h"
#include "third_party/blink/public/platform/web_string.h"
#include "third_party/blink/public/web/web_heap.h"
#include "third_party/blink/renderer/modules/mediastream/mock_media_stream_audio_sink.h"
#include "third_party/blink/renderer/platform/mediastream/media_stream_audio_track.h"
#include "third_party/blink/renderer/platform/mediastream/media_stream_component_impl.h"
#include "third_party/blink/renderer/platform/mediastream/media_stream_source.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
namespace blink {
static const int kNumChannelsForTest = …;
static const int kBufferDurationMs = …;
static const int kAudioTrackSampleRate = …;
static const int kAudioTrackSamplesPerBuffer = …;
class HTMLAudioElementCapturerSourceTest : public testing::Test { … };
TEST_F(HTMLAudioElementCapturerSourceTest, ConstructAndDestruct) { … }
TEST_F(HTMLAudioElementCapturerSourceTest, CaptureAudio) { … }
TEST_F(HTMLAudioElementCapturerSourceTest,
StartAndStopInSameTaskCapturesZeroFrames) { … }
TEST_F(HTMLAudioElementCapturerSourceTest, TaintedPlayerDeliversMutedAudio) { … }
}