#include "chrome/browser/ui/views/page_action/page_action_icon_view.h"
#include "base/memory/raw_ptr.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/command_updater_impl.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/events/test/event_generator.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/widget/widget_utils.h"
namespace {
constexpr int kPageActionIconSize = …;
class TestPageActionIconDelegate : public IconLabelBubbleView::Delegate,
public PageActionIconView::Delegate { … };
}
namespace {
class TestPageActionIconView : public PageActionIconView { … };
class TestPageActionIconViewWithIconImage : public TestPageActionIconView { … };
}
class PageActionIconViewTest : public ChromeViewsTestBase { … };
TEST_F(PageActionIconViewTest, ShouldResetSlideAnimationWhenHideIcons) { … }
TEST_F(PageActionIconViewTest, ShouldNotResetSlideAnimationWhenShowIcons) { … }
TEST_F(PageActionIconViewTest, UsesIconImageIfAvailable) { … }
TEST_F(PageActionIconViewTest, IconViewAccessibleName) { … }