#include "components/autofill/core/common/autocomplete_parsing_util.h"
#include <optional>
#include <string>
#include "components/autofill/core/common/form_field_data.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace autofill {
struct AutocompleteAttributeTestcase { … };
class AutocompleteAttributeProcessingUtilTest
: public testing::TestWithParam<AutocompleteAttributeTestcase> { … };
const AutocompleteAttributeTestcase kAutocompleteTestcases[]{ … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(AutocompleteAttributeProcessingUtilTest, ParseAutocompleteAttribute) { … }
TEST_F(AutocompleteAttributeProcessingUtilTest,
IsAutocompleteTypeWrongButWellIntended_FalseOnIgnoredValues) { … }
TEST_F(
AutocompleteAttributeProcessingUtilTest,
IsAutocompleteTypeWrongButWellIntended_FalseOnSubstringMatchWithKnownValue) { … }
TEST_F(AutocompleteAttributeProcessingUtilTest,
IsAutocompleteTypeWrongButWellIntended_TrueOnPossibleTypo) { … }
TEST_F(AutocompleteAttributeProcessingUtilTest,
IsAutocompleteTypeWrongButWellIntended_FalseOnDisableKeywordFound) { … }
}