chromium/components/autofill/core/browser/autofill_address_util_unittest.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/autofill/core/browser/autofill_address_util.h"

#include "base/memory/raw_ptr.h"
#include "base/test/scoped_feature_list.h"
#include "base/uuid.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/geo/address_i18n.h"
#include "components/autofill/core/common/autofill_features.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/resource/resource_bundle.h"

namespace autofill {

ElementsAre;

class AddressFormattingTest : public ::testing::Test {};

// This is a regression test from crbug.com/1259928. Address formats of
// some countries consist of lines with literals only, which, in case
// |include_literals| is false, appear empty and should be skipped.
TEST_F(AddressFormattingTest, GetAddressComponentsSkipsEmptyLines) {}

// Tests that address field extensions are applied to `GetAddressComponents()`,
// by checking that Great Britain's address format is extended by a state field.
TEST_F(AddressFormattingTest, GetAddressComponentsWithExtensions) {}

TEST_F(AddressFormattingTest, GetEnvelopeStyleAddressSanity) {}

TEST_F(AddressFormattingTest, GetEnvelopeStyleAddressWhenEmptyFullname) {}

// Tests that when the company is empty, the envelope style address doesn't
// contain empty lines.
TEST_F(AddressFormattingTest,
       GetEnvelopeStyleAddressWhenEmptyCompanyShouldHaveNoEmptyLines) {}

// Tests that when the state is empty, the envelope style address doesn't
// contains consecutive white spaces.
TEST_F(
    AddressFormattingTest,
    GetEnvelopeStyleAddressWhenEmptyStateShouldHaveNoConsecutiveWhitespaces) {}

// Tests that address field extensions are applied to
// `GetEnvelopeStyleAddress()`, by checking that Great Britain's address format
// is extended by a state field.
TEST_F(AddressFormattingTest, GetEnvelopeStyleAddressWithExtensions) {}

TEST_F(AddressFormattingTest,
       GetEnvelopeStyleAddressHasNoDifferencesBetweenIdenticalProfiles) {}

TEST_F(AddressFormattingTest,
       GetEnvelopeStyleAddressHasDiffereceInUiWhenFullnameDiffers) {}

TEST_F(AddressFormattingTest,
       GetEnvelopeStyleAddressHasDiffereceInUiWhenZipcodeDiffers) {}

TEST(GetProfileDescription, NameAndAddress) {}

TEST(GetProfileDescription, EmptyName) {}

TEST(GetProfileDescription, NotIncludeAddressAndContacts) {}

TEST(GetProfileDescription, ProfileDescriptionForMigration) {}

}  // namespace autofill