#include "components/password_manager/core/common/password_manager_util.h"
#include <string>
#include "components/autofill/core/common/form_data.h"
#include "components/autofill/core/common/form_field_data.h"
#include "components/password_manager/core/common/password_manager_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace password_manager::util {
namespace {
FormData;
FormFieldData;
FormFieldData CreateFormField(autofill::FormControlType form_control_type,
std::string autocomplete_attribute) { … }
TEST(PasswordsManagerUtilTest,
IsRendererRecognizedCredentialFormWithPasswordField) { … }
TEST(PasswordsManagerUtilTest,
IsRendererRecognizedCredentialFormWithUsernameAutocompleteAttribute) { … }
TEST(PasswordsManagerUtilTest,
IsRendererRecognizedCredentialFormWithFamilyNameAutocompleteAttribute) { … }
TEST(PasswordsManagerUtilTest, CanValueBeConsideredAsSingleUsername_Valid) { … }
TEST(PasswordsManagerUtilTest,
CanValueBeConsideredAsSingleUsername_ValueHasOtpSize) { … }
TEST(PasswordsManagerUtilTest,
CanValueBeConsideredAsSingleUsername_ValueEmpty) { … }
TEST(PasswordsManagerUtilTest,
CanValueBeConsideredAsSingleUsername_ValueTooLarge) { … }
TEST(PasswordsManagerUtilTest, CanFieldBeConsideredAsSingleUsername_Valid) { … }
TEST(PasswordsManagerUtilTest,
CanFieldBeConsideredAsSingleUsername_IdAndNameTooShort) { … }
TEST(PasswordsManagerUtilTest,
CanFieldBeConsideredAsSingleUsername_IsSearchField) { … }
TEST(PasswordsManagerUtilTest, IsLikelyOtp_True) { … }
TEST(PasswordsManagerUtilTest, IsLikelyOtp_False) { … }
}
}