#include "chrome/browser/ui/views/autofill/popup/popup_row_with_button_view.h"
#include <memory>
#include <utility>
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/mock_callback.h"
#include "build/build_config.h"
#include "chrome/browser/ui/autofill/mock_autofill_popup_controller.h"
#include "chrome/browser/ui/views/autofill/popup/mock_accessibility_selection_delegate.h"
#include "chrome/browser/ui/views/autofill/popup/mock_selection_delegate.h"
#include "chrome/browser/ui/views/autofill/popup/popup_row_content_view.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "components/autofill/core/browser/metrics/autofill_metrics.h"
#include "components/autofill/core/browser/ui/suggestion.h"
#include "components/autofill/core/browser/ui/suggestion_type.h"
#include "components/input/native_web_keyboard_event.h"
#include "components/strings/grit/components_strings.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/input/web_input_event.h"
#include "third_party/blink/public/common/input/web_keyboard_event.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/compositor/canvas_painter.h"
#include "ui/events/base_event_utils.h"
#include "ui/events/test/event_generator.h"
#include "ui/gfx/geometry/point.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_utils.h"
namespace autofill {
NiceMock;
Return;
StrictMock;
ButtonBehavior;
class PopupRowWithButtonViewTest : public ChromeViewsTestBase { … };
TEST_F(PopupRowWithButtonViewTest, ShowsOrHideButtonOnSelected) { … }
TEST_F(PopupRowWithButtonViewTest, DoNotHideButtonForShowAlwaysBehavior) { … }
TEST_F(PopupRowWithButtonViewTest,
UpdateFocusedPartAndRunCallbacksOnButtonHovered) { … }
TEST_F(PopupRowWithButtonViewTest, ButtonClickTriggersCallback) { … }
TEST_F(PopupRowWithButtonViewTest, KeyPressLeftRightEnter) { … }
TEST_F(PopupRowWithButtonViewTest, CursorVerticalNavigationAlwaysHidesButton) { … }
TEST_F(PopupRowWithButtonViewTest, AutocompleteControlsFocusByKeyboardKeys) { … }
}