#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[] = …;
}
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) { … }
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 > { … };
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) { … }