#ifdef UNSAFE_BUFFERS_BUILD
#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(…);
}