#include "components/user_education/views/help_bubble_view.h"
#include <memory>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_forward.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/test/mock_callback.h"
#include "components/user_education/common/events.h"
#include "components/user_education/common/feature_promo_specification.h"
#include "components/user_education/common/help_bubble.h"
#include "components/user_education/common/help_bubble_params.h"
#include "components/user_education/views/help_bubble_delegate.h"
#include "components/user_education/views/help_bubble_factory_views.h"
#include "components/user_education/views/help_bubble_views_test_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "ui/base/accelerators/accelerator.h"
#include "ui/base/interaction/element_identifier.h"
#include "ui/base/interaction/element_test_util.h"
#include "ui/base/interaction/element_tracker.h"
#include "ui/base/interaction/expect_call_in_scope.h"
#include "ui/base/interaction/interaction_test_util.h"
#include "ui/base/theme_provider.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/views/controls/scroll_view.h"
#include "ui/views/interaction/interaction_test_util_views.h"
#include "ui/views/layout/flex_layout_view.h"
#include "ui/views/layout/layout_types.h"
#include "ui/views/test/views_test_base.h"
#include "ui/views/test/views_test_utils.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_observer.h"
namespace user_education {
namespace {
DEFINE_LOCAL_ELEMENT_IDENTIFIER_VALUE(…);
const ui::ElementContext kTestElementContext{ … };
constexpr gfx::Rect kWidgetBounds{ … };
}
class HelpBubbleViewTest : public views::ViewsTestBase { … };
TEST_F(HelpBubbleViewTest, DefaultMaxWidth) { … }
TEST_F(HelpBubbleViewTest, ExpandedMaxWidth) { … }
TEST_F(HelpBubbleViewTest, CallButtonCallback_Mouse) { … }
TEST_F(HelpBubbleViewTest, CallButtonCallback_Keyboard) { … }
TEST_F(HelpBubbleViewTest, StableButtonOrder) { … }
TEST_F(HelpBubbleViewTest, AnchorToRect) { … }
TEST_F(HelpBubbleViewTest, AnchorRectUpdated) { … }
TEST_F(HelpBubbleViewTest, ScrollAnchorViewToVisible) { … }
class HelpBubbleViewsTest : public HelpBubbleViewTest { … };
TEST_F(HelpBubbleViewsTest, AnchorToRect) { … }
TEST_F(HelpBubbleViewsTest, AnchorRectUpdated) { … }
TEST_F(HelpBubbleViewsTest, AnchorRectOverlapsEdge) { … }
TEST_F(HelpBubbleViewsTest, AnchorOutsideBoundsHorizontal) { … }
TEST_F(HelpBubbleViewsTest, AnchorOutsideBoundsVertical) { … }
TEST_F(HelpBubbleViewsTest, MoveAnchorWidget) { … }
}