#include "base/containers/to_vector.h"
#include "base/memory/raw_ptr.h"
#include "base/ranges/algorithm.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/test_with_browser_view.h"
#include "chrome/browser/ui/views/permissions/chip/chip_controller.h"
#include "chrome/browser/ui/views/permissions/permission_prompt_chip.h"
#include "components/permissions/features.h"
#include "components/permissions/permission_request_enums.h"
#include "components/permissions/permission_ui_selector.h"
#include "components/permissions/test/mock_permission_request.h"
#include "ui/events/base_event_utils.h"
#include "ui/gfx/animation/animation_test_api.h"
#include "ui/views/test/ax_event_counter.h"
#include "ui/views/test/button_test_api.h"
namespace {
class TestDelegate : public permissions::PermissionPrompt::Delegate { … };
}
class PermissionChipUnitTest : public TestWithBrowserView { … };
TEST_F(PermissionChipUnitTest, AlreadyDisplayedRequestTest) { … }
TEST_F(PermissionChipUnitTest, ClickOnRequestChipTest) { … }
TEST_F(PermissionChipUnitTest, DisplayQuietChipNoAbusiveTest) { … }
TEST_F(PermissionChipUnitTest, ClickOnQuietChipNoAbusiveTest) { … }
TEST_F(PermissionChipUnitTest, DisplayQuietChipAbusiveTest) { … }
TEST_F(PermissionChipUnitTest, ClickOnQuietChipAbusiveTest) { … }