chromium/chrome/browser/ui/views/autofill/popup/popup_row_factory_utils_unittest.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/views/autofill/popup/popup_row_factory_utils.h"

#include <memory>
#include <utility>
#include <vector>

#include "base/check_op.h"
#include "base/run_loop.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.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/browser/ui/views/autofill/popup/popup_row_view.h"
#include "chrome/browser/ui/views/autofill/popup/popup_row_with_button_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/autofill/core/common/autofill_features.h"
#include "components/strings/grit/components_strings.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/events/base_event_utils.h"
#include "ui/events/test/event_generator.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/throbber.h"
#include "ui/views/view_utils.h"
#include "ui/views/widget/widget_utils.h"

IsNull;
NotNull;
Return;

namespace autofill {

class PopupRowFactoryUtilsTestBase : public ChromeViewsTestBase {};

// A test fixture for testing the creation of rows that contain a button.
class PopupRowFactoryUtilsRowWithButtonTest
    : public PopupRowFactoryUtilsTestBase {};

TEST_F(PopupRowFactoryUtilsRowWithButtonTest,
       AutocompleteDeleteInvokesController) {}

TEST_F(PopupRowFactoryUtilsRowWithButtonTest,
       AutocompleteDeleteButtonHasTooltip) {}

TEST_F(PopupRowFactoryUtilsRowWithButtonTest,
       AutocompleteDeleteButtonSetsAccessibility) {}

TEST_F(PopupRowFactoryUtilsRowWithButtonTest,
       CreateNewPlusAddressInlineSuggestionRefreshInvokesController) {}

TEST_F(PopupRowFactoryUtilsRowWithButtonTest,
       CreateNewPlusAddressInlineSuggestionHasTooltip) {}

TEST_F(PopupRowFactoryUtilsRowWithButtonTest,
       CreateNewPlusAddressInlineSuggestionSetsAccessibility) {}

class PasswordPopupRowViewTest : public PopupRowFactoryUtilsTestBase {};

TEST_F(PasswordPopupRowViewTest, LoadingSuggestionShowsThrobber) {}

TEST_F(PasswordPopupRowViewTest, NonLoadingSuggestionDoesNotShowThrobber) {}

}  // namespace autofill