#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/views/controls/hover_button.h"
#include <memory>
#include <string>
#include "base/strings/strcat.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/events/test/event_generator.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/text_utils.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/styled_label.h"
#include "ui/views/style/typography.h"
#include "ui/views/test/views_test_base.h"
#include "ui/views/view.h"
#include "ui/views/view_class_properties.h"
#include "ui/views/widget/widget_utils.h"
namespace {
constexpr int kButtonWidth = …;
struct TitleSubtitlePair { … };
const TitleSubtitlePair kTitleSubtitlePairs[] = …;
std::u16string GetAccessibleName(HoverButton& button) { … }
}
class HoverButtonTest : public ChromeViewsTestBase { … };
TEST_F(HoverButtonTest, TooltipAndAccessibleName) { … }
TEST_F(HoverButtonTest, TooltipAndAccessibleNameWithFooter) { … }
TEST_F(HoverButtonTest, TooltipAndAccessibleName_DynamicTextUpdate) { … }
TEST_F(HoverButtonTest, CreateButtonWithSubtitleAndIcons) { … }
TEST_F(HoverButtonTest, CreateButtonWithSubtitleAndFooter) { … }
TEST_F(HoverButtonTest, ActivatesOnMouseReleased) { … }
TEST_F(HoverButtonTest, ChangingTextStyleResizesButton) { … }
#if !BUILDFLAG(IS_MAC) || defined(USE_AURA)
TEST_F(HoverButtonTest, TapGestureThatDeletesTheButton) { … }
TEST_F(HoverButtonTest, SetIconHorizontalMargins) { … }
#endif