#include "third_party/blink/public/platform/web_audio_source_provider_impl.h"
#include <stddef.h>
#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "media/base/audio_glitch_info.h"
#include "media/base/audio_parameters.h"
#include "media/base/fake_audio_render_callback.h"
#include "media/base/media_util.h"
#include "media/base/mock_audio_renderer_sink.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/media/web_audio_source_provider_client.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
_;
namespace blink {
namespace {
MATCHER(IsMuted, std::string(negation ? "isn't" : "is") + " muted") { … }
const float kTestVolume = …;
const int kTestSampleRate = …;
}
class WebAudioSourceProviderImplTest : public testing::Test,
public WebAudioSourceProviderClient { … };
TEST_F(WebAudioSourceProviderImplTest, SetClientBeforeInitialize) { … }
TEST_F(WebAudioSourceProviderImplTest, SinkMethods) { … }
TEST_F(WebAudioSourceProviderImplTest, RenderTainted) { … }
TEST_F(WebAudioSourceProviderImplTest, ProvideInput) { … }
TEST_F(WebAudioSourceProviderImplTest, ProvideInputTainted) { … }
TEST_F(WebAudioSourceProviderImplTest, CopyAudioCB) { … }
TEST_F(WebAudioSourceProviderImplTest, CopyAudioCBTainted) { … }
TEST_F(WebAudioSourceProviderImplTest, MultipleInitializeWithSetClient) { … }
TEST_F(WebAudioSourceProviderImplTest, ProvideInputDifferentChannelCount) { … }
TEST_F(WebAudioSourceProviderImplTest, SetClientCallback) { … }
}