#include "chrome/browser/ui/global_media_controls/media_notification_device_provider_impl.h"
#include "base/ranges/algorithm.h"
#include "media/audio/audio_device_description.h"
#include "media/audio/audio_system.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
class MockAudioSystem : public media::AudioSystem { … };
bool DescriptionsAreEqual(const media::AudioDeviceDescriptions& lhs,
const media::AudioDeviceDescriptions& rhs) { … }
media::AudioDeviceDescriptions DescriptionsFromProvider(
media::AudioDeviceDescriptions descriptions_from_audio_system) { … }
}
TEST(MediaNotificationDeviceProviderTest,
MaybeRemoveDefaultDeviceRemovesDefaultDevice) { … }
TEST(MediaNotificationDeviceProviderTest,
MaybeRemoveDefaultDeviceDoesNotRemoveDefaultDevice) { … }
TEST(MediaNotificationDeviceProviderTest,
MaybeRemoveDefaultDeviceWithMultipleRealDefaultDeviceNames) { … }
TEST(MediaNotificationDeviceProviderTest, NoDefaultDevice) { … }
TEST(MediaNotificationDeviceProviderTest,
MaybeRemoveDefaultDeviceMultipleTimes) { … }