chromium/chrome/browser/ui/views/media_preview/camera_preview/camera_coordinator_unittest.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/views/media_preview/camera_preview/camera_coordinator.h"

#include <stddef.h>

#include <memory>
#include <optional>
#include <string>

#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/mock_callback.h"
#include "base/test/test_future.h"
#include "chrome/browser/media/prefs/capture_device_ranking.h"
#include "chrome/browser/ui/views/frame/test_with_browser_view.h"
#include "chrome/grit/generated_resources.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"
#include "ui/base/l10n/l10n_util.h"
#include "ui/views/view.h"

_;
Pointwise;

namespace {

constexpr char kNumDevicesHistogram[] =;
constexpr char kDeviceId[] =;
constexpr char kDeviceName[] =;
constexpr char kDeviceId2[] =;
constexpr char kDeviceName2[] =;

media_preview_metrics::Context GetMetricsContext() {}

MATCHER_P(HasItems, items, "") {}

MATCHER(VideoCaptureDeviceInfoEq, "") {}

}  // namespace

class CameraCoordinatorTest : public TestWithBrowserView {};

TEST_F(CameraCoordinatorTest, RelevantVideoCaptureDeviceInfoExtraction) {}

TEST_F(CameraCoordinatorTest,
       RelevantVideoCaptureDeviceInfoExtraction_ConstrainedToEligibleDevices) {}

TEST_F(CameraCoordinatorTest, ConnectToDifferentDevice) {}

TEST_F(CameraCoordinatorTest, TryConnectToSameDevice) {}

TEST_F(CameraCoordinatorTest, UpdateDevicePreferenceRanking) {}

TEST_F(CameraCoordinatorTest, ConnectDevicesBeforeCoordinatorInitialize) {}