chromium/third_party/blink/renderer/modules/mediastream/webaudio_media_stream_audio_sink_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.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/modules/mediastream/webaudio_media_stream_audio_sink.h"

#include <stddef.h>

#include <memory>

#include "base/test/bind.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_latency.h"
#include "media/base/audio_parameters.h"
#include "media/base/audio_pull_fifo.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/web/web_heap.h"
#include "third_party/blink/renderer/platform/audio/audio_utilities.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 {

class WebAudioMediaStreamAudioSinkTest : public testing::Test {};

TEST_F(WebAudioMediaStreamAudioSinkTest, VerifyDataFlow) {}

TEST_F(WebAudioMediaStreamAudioSinkTest,
       DeleteSourceProviderBeforeStoppingTrack) {}

TEST_F(WebAudioMediaStreamAudioSinkTest,
       StopTrackBeforeDeletingSourceProvider) {}

class WebAudioMediaStreamAudioSinkFifoTest
    : public WebAudioMediaStreamAudioSinkTest,
      public testing::WithParamInterface<
          std::tuple<int, int, float, float, int>> {};

TEST_P(WebAudioMediaStreamAudioSinkFifoTest, VerifyFifo) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace blink