#include "components/autofill/core/browser/crowdsourcing/disambiguate_possible_field_types.h"
#include "base/ranges/algorithm.h"
#include "components/autofill/core/browser/autofill_field.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/form_data.h"
#include "components/autofill/core/common/form_data_test_api.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace autofill {
CreateTestFormField;
ElementsAre;
UnorderedElementsAre;
class DisambiguatePossibleFieldTypesTest : public ::testing::Test { … };
TEST_F(DisambiguatePossibleFieldTypesTest,
AmbiguousNamePrecededByAddressDisambiguatesToAddress) { … }
TEST_F(DisambiguatePossibleFieldTypesTest,
AmbiguousNamePrecededByCreditCardDisambiguatesToCreditCard) { … }
TEST_F(DisambiguatePossibleFieldTypesTest,
AmbiguousNameFollowedByAddressDisambiguatesToAddress) { … }
TEST_F(DisambiguatePossibleFieldTypesTest,
AmbiguousNameFollowedByCreditCardDisambiguatesToCreditCard) { … }
TEST_F(DisambiguatePossibleFieldTypesTest,
AmbiguousNameSurroundedByAddressDisambiguatesToAddress) { … }
TEST_F(DisambiguatePossibleFieldTypesTest,
AmbiguousNameSurroundedByCreditCardDisambiguatesToCreditCard) { … }
TEST_F(DisambiguatePossibleFieldTypesTest,
AmbiguousNamePrecededByAddressFollowedByCreditCardRemainsAmbiguous) { … }
TEST_F(DisambiguatePossibleFieldTypesTest,
AmbiguousNamePrecededByCreditCardFollowedByAddressRemainsAmbiguous) { … }
TEST_F(DisambiguatePossibleFieldTypesTest,
AutofilledFieldDisambiguatesToAutofilledType) { … }
}