#include "chrome/browser/ui/views/permissions/permission_prompt_bubble_two_origins_view.h"
#include "base/containers/to_vector.h"
#include "base/memory/raw_ptr.h"
#include "base/ranges/algorithm.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/favicon/favicon_service_factory.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/views/permissions/permission_prompt_style.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/test_browser_window.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "components/permissions/permission_util.h"
#include "components/permissions/request_type.h"
#include "components/permissions/test/mock_permission_request.h"
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
namespace {
class TestDelegateTwoOrigins : public permissions::PermissionPrompt::Delegate { … };
}
class PermissionPromptBubbleTwoOriginsViewTest : public ChromeViewsTestBase { … };
TEST_F(PermissionPromptBubbleTwoOriginsViewTest,
TitleMentionsRequestingOriginAndPermission) { … }
TEST_F(PermissionPromptBubbleTwoOriginsViewTest, DiesIfPermissionNotAllowed) { … }
TEST_F(PermissionPromptBubbleTwoOriginsViewTest,
DescriptionMentionsTwoOriginsAndPermission) { … }
TEST_F(PermissionPromptBubbleTwoOriginsViewTest, LinkIsPresent) { … }