chromium/third_party/blink/renderer/platform/media/web_audio_source_provider_impl_test.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;
}  // namespace

class WebAudioSourceProviderImplTest : public testing::Test,
                                       public WebAudioSourceProviderClient {};

TEST_F(WebAudioSourceProviderImplTest, SetClientBeforeInitialize) {}

// Verify AudioRendererSink functionality w/ and w/o a client.
TEST_F(WebAudioSourceProviderImplTest, SinkMethods) {}

// Test tainting effects on Render().
TEST_F(WebAudioSourceProviderImplTest, RenderTainted) {}

// Test the AudioRendererSink state machine and its effects on provideInput().
TEST_F(WebAudioSourceProviderImplTest, ProvideInput) {}

// Test tainting effects on ProvideInput().
TEST_F(WebAudioSourceProviderImplTest, ProvideInputTainted) {}

// Verify CopyAudioCB is called if registered.
TEST_F(WebAudioSourceProviderImplTest, CopyAudioCB) {}

// Verify CopyAudioCB is zero when tainted.
TEST_F(WebAudioSourceProviderImplTest, CopyAudioCBTainted) {}

TEST_F(WebAudioSourceProviderImplTest, MultipleInitializeWithSetClient) {}

TEST_F(WebAudioSourceProviderImplTest, ProvideInputDifferentChannelCount) {}

TEST_F(WebAudioSourceProviderImplTest, SetClientCallback) {}

}  // namespace blink