chromium/chrome/browser/media/webrtc/webrtc_pan_tilt_zoom_browsertest.cc

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

#include <string>

#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h"
#include "chrome/browser/media/webrtc/webrtc_browsertest_base.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "media/base/media_switches.h"

namespace {

struct PermissionTestConfig {};

struct TrackTestConfig {};

static const char kMainHtmlPage[] =;

}  // namespace

class WebRtcPanTiltZoomPermissionBrowserTest
    : public WebRtcTestBase,
      public testing::WithParamInterface<PermissionTestConfig> {};

IN_PROC_BROWSER_TEST_P(WebRtcPanTiltZoomPermissionBrowserTest,
                       TestRequestPanTiltZoomPermission) {}

INSTANTIATE_TEST_SUITE_P();

class WebRtcPanTiltZoomTrackBrowserTest
    : public WebRtcTestBase,
      public testing::WithParamInterface<TrackTestConfig> {};

IN_PROC_BROWSER_TEST_P(WebRtcPanTiltZoomTrackBrowserTest,
                       TestTrackFromGetUserMedia) {}

// Default PTZ value is 100, min is 100, max is 400 as defined in fake video
// capture config at media/capture/video/fake_video_capture_device.cc and
// media/capture/video/fake_video_capture_device_factory.cc
INSTANTIATE_TEST_SUITE_P();

class WebRtcPanTiltZoomConstraintsBrowserTest
    : public WebRtcTestBase,
      public ::testing::WithParamInterface<std::string> {};

IN_PROC_BROWSER_TEST_P(WebRtcPanTiltZoomConstraintsBrowserTest,
                       TestConstraintsFromGetUserMedia) {}

IN_PROC_BROWSER_TEST_P(WebRtcPanTiltZoomConstraintsBrowserTest,
                       TestUnconstrainedConstraintsFromGetUserMedia) {}

INSTANTIATE_TEST_SUITE_P();

class WebRtcPanTiltZoomPermissionRequestBrowserTest
    : public WebRtcTestBase,
      public ::testing::WithParamInterface<
          bool /* IsPanTiltZoomSupported() */> {};

IN_PROC_BROWSER_TEST_P(WebRtcPanTiltZoomPermissionRequestBrowserTest,
                       TestRequestPanTiltZoomPermission) {}

INSTANTIATE_TEST_SUITE_P();

class WebRtcPanTiltZoomCameraDevicesBrowserTest : public WebRtcTestBase {};

IN_PROC_BROWSER_TEST_F(WebRtcPanTiltZoomCameraDevicesBrowserTest,
                       TestCameraPanTiltZoomPermissionIsNotGrantedAfterCamera) {}

IN_PROC_BROWSER_TEST_F(WebRtcPanTiltZoomCameraDevicesBrowserTest,
                       TestCameraPanTiltZoomPermissionPersists) {}

class WebRtcPanTiltZoomFakeCameraDevicesBrowserTest : public WebRtcTestBase {};

IN_PROC_BROWSER_TEST_F(WebRtcPanTiltZoomFakeCameraDevicesBrowserTest,
                       TestPageVisible) {}