#include "ui/views/controls/button/label_button.h"
#include <algorithm>
#include <optional>
#include <string>
#include <utility>
#include "base/command_line.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/actions/actions.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/ui_base_switches.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/events/test/event_generator.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/font_list.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/image/image_unittest_util.h"
#include "ui/gfx/text_utils.h"
#include "ui/native_theme/native_theme.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/animation/ink_drop.h"
#include "ui/views/animation/test/ink_drop_host_test_api.h"
#include "ui/views/animation/test/test_ink_drop.h"
#include "ui/views/border.h"
#include "ui/views/buildflags.h"
#include "ui/views/controls/button/label_button_image_container.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/style/platform_style.h"
#include "ui/views/test/views_test_base.h"
#include "ui/views/test/views_test_utils.h"
#include "ui/views/test/widget_test.h"
#include "ui/views/view_test_api.h"
#include "ui/views/view_utils.h"
#include "ui/views/widget/widget_utils.h"
namespace views {
ASCIIToUTF16;
class TestLabelButton : public LabelButton { … };
BEGIN_METADATA(…)
class LabelButtonTest : public test::WidgetTest { … };
TEST_F(LabelButtonTest, FocusBehavior) { … }
TEST_F(LabelButtonTest, Init) { … }
TEST_F(LabelButtonTest, Label) { … }
TEST_F(LabelButtonTest, LabelPreferredSizeWithMaxWidth) { … }
TEST_F(LabelButtonTest, LabelShrinkDown) { … }
TEST_F(LabelButtonTest, LabelShrinksDownOnManualSetBounds) { … }
TEST_F(LabelButtonTest, LabelShrinksDownCanceledBySettingText) { … }
TEST_F(
LabelButtonTest,
LabelShrinksDownImmediatelyIfAlreadySmallerThanPreferredSizeWithoutLabel) { … }
TEST_F(LabelButtonTest, AccessibleState) { … }
TEST_F(LabelButtonTest, AccessibleDefaultState) { … }
TEST_F(LabelButtonTest, Image) { … }
TEST_F(LabelButtonTest, ImageAlignmentWithMultilineLabel) { … }
TEST_F(LabelButtonTest, LabelAndImage) { … }
TEST_F(LabelButtonTest, LabelWrapAndImageAlignment) { … }
TEST_F(LabelButtonTest, GetHeightForWidthConsistentWithGetPreferredSize) { … }
TEST_F(LabelButtonTest, TextSizeFromContext) { … }
TEST_F(LabelButtonTest, ChangeTextSize) { … }
TEST_F(LabelButtonTest, ChangeLabelImageSpacing) { … }
TEST_F(LabelButtonTest, HighlightedButtonStyle) { … }
TEST_F(LabelButtonTest, OnThemeChanged) { … }
TEST_F(LabelButtonTest, SetEnabledTextColorsResetsToThemeColors) { … }
TEST_F(LabelButtonTest, SetEnabledTextColorIds) { … }
TEST_F(LabelButtonTest, ImageOrLabelGetClipped) { … }
TEST_F(LabelButtonTest, UpdateImageAfterSettingImageModel) { … }
TEST_F(LabelButtonTest, AccessibiltyDefaultState) { … }
class InkDropLabelButtonTest : public ViewsTestBase { … };
TEST_F(InkDropLabelButtonTest, HoverStateAfterMouseEnterAndExitEvents) { … }
TEST_F(InkDropLabelButtonTest, TargetEventHandler) { … }
class LabelButtonVisualStateTest : public test::WidgetTest { … };
TEST_F(LabelButtonVisualStateTest, IndependentWidget) { … }
TEST_F(LabelButtonVisualStateTest, ChildWidget) { … }
LabelButtonActionViewInterfaceTest;
TEST_F(LabelButtonActionViewInterfaceTest, TestActionChanged) { … }
}