#include "components/autofill/core/browser/single_field_form_fill_router.h"
#include "base/functional/callback_helpers.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/form_structure.h"
#include "components/autofill/core/browser/form_structure_test_api.h"
#include "components/autofill/core/browser/mock_autocomplete_history_manager.h"
#include "components/autofill/core/browser/mock_merchant_promo_code_manager.h"
#include "components/autofill/core/browser/payments/test/mock_iban_manager.h"
#include "components/autofill/core/browser/suggestions_context.h"
#include "components/autofill/core/browser/test_autofill_client.h"
#include "components/autofill/core/browser/test_personal_data_manager.h"
#include "components/autofill/core/browser/webdata/mock_autofill_webdata_service.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "components/autofill/core/common/autofill_prefs.h"
#include "components/autofill/core/common/form_data_test_api.h"
#include "components/version_info/version_info.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace autofill {
namespace {
_;
DoAll;
SaveArg;
}
class SingleFieldFormFillRouterTest : public testing::Test { … };
TEST_F(SingleFieldFormFillRouterTest,
RouteToAutocompleteHistoryManager_OnGetSingleFieldSuggestions) { … }
TEST_F(SingleFieldFormFillRouterTest,
RouteToAllSingleFieldFormFillers_OnWillSubmitForm) { … }
TEST_F(SingleFieldFormFillRouterTest,
RouteToAllSingleFieldFormFillers_CancelPendingQueries) { … }
TEST_F(SingleFieldFormFillRouterTest,
RouteToAutocompleteHistoryManager_OnRemoveCurrentSingleFieldSuggestion) { … }
TEST_F(SingleFieldFormFillRouterTest,
RouteToAutocompleteHistoryManager_OnSingleFieldSuggestionSelected) { … }
TEST_F(SingleFieldFormFillRouterTest,
RouteToMerchantPromoCodeManager_OnGetSingleFieldSuggestions) { … }
TEST_F(SingleFieldFormFillRouterTest, MerchantPromoCodeManagerNotPresent) { … }
TEST_F(SingleFieldFormFillRouterTest, MerchantPromoCodeManagerReturnedFalse) { … }
TEST_F(SingleFieldFormFillRouterTest,
RouteToMerchantPromoCodeManager_OnRemoveCurrentSingleFieldSuggestion) { … }
TEST_F(SingleFieldFormFillRouterTest,
RouteToMerchantPromoCodeManager_OnSingleFieldSuggestionSelected) { … }
TEST_F(
SingleFieldFormFillRouterTest,
FieldNotEligibleForAnySingleFieldFormFiller_OnGetSingleFieldSuggestions) { … }
TEST_F(SingleFieldFormFillRouterTest, IbanManagerNotPresent) { … }
TEST_F(SingleFieldFormFillRouterTest, IbanManagerReturnedFalse) { … }
TEST_F(SingleFieldFormFillRouterTest,
RouteToIbanManager_OnRemoveCurrentSingleFieldSuggestion) { … }
}