#include "chrome/browser/ui/views/media_preview/page_info_previews_coordinator.h"
#include <optional>
#include "base/system/system_monitor.h"
#include "base/test/gtest_util.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/test_future.h"
#include "chrome/browser/ui/views/frame/test_with_browser_view.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 "content/public/test/web_contents_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
blink::mojom::MediaStreamType GetStreamTypeFromSettingsType(
ContentSettingsType type) { … }
std::string ViewTypeToDurationHistogramName(
MediaCoordinator::ViewType view_type) { … }
}
class PageInfoPreviewsCoordinatorTest : public TestWithBrowserView { … };
TEST_F(PageInfoPreviewsCoordinatorTest, MediaStreamCamera) { … }
TEST_F(PageInfoPreviewsCoordinatorTest, MediaStreamMic) { … }
PageInfoPreviewsCoordinatorDeathTest;
TEST_F(PageInfoPreviewsCoordinatorDeathTest, NeitherCameraNorMic) { … }