#include "components/permissions/contexts/camera_pan_tilt_zoom_permission_context.h"
#include "base/memory/raw_ptr.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_types.h"
#include "components/permissions/permissions_client.h"
#include "components/permissions/test/test_permissions_client.h"
#include "components/webrtc/media_stream_device_enumerator_impl.h"
#include "content/public/test/test_renderer_host.h"
namespace {
struct TestConfig { … };
class ContentSettingsChangeWaiter : public content_settings::Observer { … };
}
namespace permissions {
namespace {
class TestCameraPanTiltZoomPermissionContextDelegate
: public CameraPanTiltZoomPermissionContext::Delegate { … };
}
class CameraPanTiltZoomPermissionContextTests
: public content::RenderViewHostTestHarness,
public testing::WithParamInterface<TestConfig> { … };
class CameraContentSettingTests
: public CameraPanTiltZoomPermissionContextTests { … };
TEST_P(CameraContentSettingTests, TestResetPermissionOnCameraChange) { … }
INSTANTIATE_TEST_SUITE_P(…);
class CameraPanTiltZoomContentSettingTests
: public CameraPanTiltZoomPermissionContextTests { … };
TEST_P(CameraPanTiltZoomContentSettingTests,
TestCameraPermissionOnCameraPanTiltZoomChange) { … }
INSTANTIATE_TEST_SUITE_P(…);
}