#include "components/autofill/core/browser/manual_testing_import.h"
#include <optional>
#include <vector>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/json/json_reader.h"
#include "base/test/scoped_feature_list.h"
#include "base/values.h"
#include "components/autofill/core/browser/country_type.h"
#include "components/autofill/core/browser/data_model/autofill_profile.h"
#include "components/autofill/core/browser/data_model/credit_card.h"
#include "components/autofill/core/browser/field_types.h"
#include "components/autofill/core/common/autofill_features.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace autofill {
namespace {
MATCHER(DataModelsCompareEqual, "") { … }
}
class ManualTestingImportTest : public testing::Test { … };
TEST_F(ManualTestingImportTest, LoadCreditCardsFromFile_Valid) { … }
TEST_F(ManualTestingImportTest, LoadCreditCardsFromFile_Invalid_NoDictionary) { … }
TEST_F(ManualTestingImportTest,
LoadCreditCardsFromFile_Invalid_NonRelatedType) { … }
TEST_F(ManualTestingImportTest,
LoadCreditCardsFromFile_Invalid_UnrecognizedType) { … }
TEST_F(ManualTestingImportTest, LoadCreditCardsFromFile_NotValid) { … }
TEST_F(ManualTestingImportTest, LoadProfilesFromFile_Valid) { … }
TEST_F(ManualTestingImportTest,
AutofillProfileFromJSON_Invalid_FailedToOpenFile) { … }
TEST_F(ManualTestingImportTest, LoadProfilesFromFile_Invalid_NotDictionary) { … }
TEST_F(ManualTestingImportTest,
LoadProfilesFromFile_Invalid_FailedToParseJSON) { … }
TEST_F(ManualTestingImportTest, LoadProfilesFromFile_Invalid_UnrecognizedType) { … }
TEST_F(ManualTestingImportTest,
LoadProfilesFromFile_Invalid_UnrecognizedRecordType) { … }
TEST_F(ManualTestingImportTest, LoadProfilesFromFile_InvalidInitialCreatorId) { … }
TEST_F(ManualTestingImportTest,
DISABLED_LoadProfilesFromFile_Invalid_NotFullyStructured) { … }
class ManualTestingImportTesti18n : public ManualTestingImportTest { … };
TEST_F(ManualTestingImportTesti18n, Loadi18nProfilesFromFile_Valid) { … }
}