#include "third_party/blink/renderer/modules/media/audio/audio_renderer_sink_cache.h"
#include <utility>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/test/test_mock_time_task_runner.h"
#include "base/threading/thread.h"
#include "media/audio/audio_device_description.h"
#include "media/base/audio_parameters.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/testing/task_environment.h"
namespace blink {
namespace {
const char* const kDefaultDeviceId = …;
const char kAnotherDeviceId[] = …;
const char kUnhealthyDeviceId[] = …;
const LocalFrameToken kFrameToken;
constexpr base::TimeDelta kDeleteTimeout = …;
}
class AudioRendererSinkCacheTest : public testing::Test { … };
TEST_F(AudioRendererSinkCacheTest, GetDeviceInfo) { … }
TEST_F(AudioRendererSinkCacheTest, GarbageCollection) { … }
TEST_F(AudioRendererSinkCacheTest, UnhealthySinkIsNotCached) { … }
TEST_F(AudioRendererSinkCacheTest, UnhealthySinkIsStopped) { … }
TEST_F(AudioRendererSinkCacheTest, MultithreadedAccess) { … }
}