#include "chrome/browser/ui/views/media_preview/media_coordinator.h"
#include "chrome/browser/media/prefs/capture_device_ranking.h"
#include "chrome/browser/ui/views/frame/test_with_browser_view.h"
#include "chrome/browser/ui/views/media_preview/media_preview_metrics.h"
#include "chrome/browser/ui/views/media_preview/media_view.h"
#include "components/media_effects/test/fake_audio_service.h"
#include "components/media_effects/test/fake_video_capture_service.h"
#include "components/media_effects/test/scoped_media_device_info.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
constexpr char kCameraId1[] = …;
constexpr char kCameraName1[] = …;
constexpr char kCameraId2[] = …;
constexpr char kCameraName2[] = …;
constexpr char kMicId1[] = …;
constexpr char kMicName1[] = …;
constexpr char kGroupId1[] = …;
constexpr char kMicId2[] = …;
constexpr char kMicName2[] = …;
constexpr char kGroupId2[] = …;
media_preview_metrics::Context GetMetricsContext(
MediaCoordinator::ViewType type) { … }
MATCHER(VideoCaptureDeviceInfoEq, "") { … }
}
ElementsAre;
Pointwise;
class MediaCoordinatorTest : public TestWithBrowserView { … };
TEST_F(MediaCoordinatorTest, CamerasRankingUpdate) { … }
TEST_F(MediaCoordinatorTest, MicsRankingUpdate) { … }
TEST_F(MediaCoordinatorTest, CamerasAndMicsRankingUpdate) { … }