chromium/chrome/browser/ui/views/permissions/embedded_permission_prompt_uitest.cc

// Copyright 2024 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 <vector>

#include "base/strings/string_util.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/permissions/features.h"
#include "components/permissions/request_type.h"
#include "components/permissions/test/mock_permission_request.h"
#include "components/permissions/test/permission_request_observer.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "third_party/blink/public/common/features_generated.h"

class EmbeddedPermissionPromptUiTest : public DialogBrowserTest {};

class DefaultParamEmbeddedPermissionPromptUiTest
    : public EmbeddedPermissionPromptUiTest {};

IN_PROC_BROWSER_TEST_F(DefaultParamEmbeddedPermissionPromptUiTest,
                       InvokeUi_camera) {}
IN_PROC_BROWSER_TEST_F(DefaultParamEmbeddedPermissionPromptUiTest,
                       InvokeUi_microphone) {}
IN_PROC_BROWSER_TEST_F(DefaultParamEmbeddedPermissionPromptUiTest,
                       InvokeUi_camera_microphone) {}

class WindowMiddleEmbeddedPermissionPromptUiTest
    : public EmbeddedPermissionPromptUiTest {};

IN_PROC_BROWSER_TEST_F(WindowMiddleEmbeddedPermissionPromptUiTest,
                       InvokeUi_camera) {}
IN_PROC_BROWSER_TEST_F(WindowMiddleEmbeddedPermissionPromptUiTest,
                       InvokeUi_microphone) {}
IN_PROC_BROWSER_TEST_F(WindowMiddleEmbeddedPermissionPromptUiTest,
                       InvokeUi_camera_microphone) {}

class NearElementEmbeddedPermissionPromptUiTest
    : public EmbeddedPermissionPromptUiTest {};

IN_PROC_BROWSER_TEST_F(NearElementEmbeddedPermissionPromptUiTest,
                       InvokeUi_camera) {}
IN_PROC_BROWSER_TEST_F(NearElementEmbeddedPermissionPromptUiTest,
                       InvokeUi_microphone) {}
IN_PROC_BROWSER_TEST_F(NearElementEmbeddedPermissionPromptUiTest,
                       InvokeUi_camera_microphone) {}

class LegacyPromptEmbeddedPermissionPromptUiTest
    : public EmbeddedPermissionPromptUiTest {};

IN_PROC_BROWSER_TEST_F(LegacyPromptEmbeddedPermissionPromptUiTest,
                       InvokeUi_camera) {}
IN_PROC_BROWSER_TEST_F(LegacyPromptEmbeddedPermissionPromptUiTest,
                       InvokeUi_microphone) {}
IN_PROC_BROWSER_TEST_F(LegacyPromptEmbeddedPermissionPromptUiTest,
                       InvokeUi_camera_microphone) {}