#include "components/autofill/core/browser/address_normalizer_impl.h"
#include <utility>
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/task_environment.h"
#include "components/autofill/core/browser/address_normalizer.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/data_model/autofill_profile.h"
#include "components/autofill/core/common/autofill_features.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/libaddressinput/src/cpp/include/libaddressinput/null_storage.h"
#include "third_party/libaddressinput/src/cpp/include/libaddressinput/source.h"
#include "third_party/libaddressinput/src/cpp/include/libaddressinput/storage.h"
#include "third_party/libaddressinput/src/cpp/test/testdata_source.h"
namespace autofill {
namespace {
NullStorage;
Source;
Storage;
TestdataSource;
class ChromiumTestdataSource : public TestdataSource { … };
class TestAddressNormalizer : public AddressNormalizerImpl { … };
}
class AddressNormalizerTest : public testing::Test { … };
TEST_F(AddressNormalizerTest, AreRulesLoadedForRegion_Loaded) { … }
TEST_F(AddressNormalizerTest, AreRulesLoadedForRegion_NotAvailable) { … }
TEST_F(AddressNormalizerTest, NormalizeAddressAsync_RulesLoaded) { … }
TEST_F(AddressNormalizerTest,
NormalizeAddressAsync_RulesNotLoaded_WillNotLoad) { … }
TEST_F(AddressNormalizerTest, NormalizeAddressAsync_RulesNotAvailable) { … }
TEST_F(AddressNormalizerTest, NormalizeAddressAsync_RulesNotLoaded_WillLoad) { … }
TEST_F(AddressNormalizerTest, FormatPhone_AddressNormalizedAsync) { … }
TEST_F(AddressNormalizerTest, FormatInvalidPhone_AddressNormalizedAsync) { … }
TEST_F(AddressNormalizerTest, FormatPhone_AddressNotNormalizedAsync) { … }
TEST_F(AddressNormalizerTest, NormalizeAddressSync_RulesNotLoaded) { … }
TEST_F(AddressNormalizerTest, NormalizeAddressSync_RulesLoaded) { … }
TEST_F(AddressNormalizerTest, NormalizeAddressSync_UninitializedValidator) { … }
TEST_F(AddressNormalizerTest, NormalizeAddressAsync_UninitializedValidator) { … }
}