chromium/components/autofill/core/browser/data_model/autofill_structured_address_utils_unittest.cc

// Copyright 2020 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/data_model/autofill_structured_address_utils.h"

#include <stddef.h>
#include <map>
#include <string>
#include <vector>

#include "base/i18n/char_iterator.h"
#include "base/i18n/unicodestring.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/gtest_util.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace autofill {

// Element-wise comparison operator.
bool operator==(const AddressToken& lhs, const AddressToken& rhs) {}

// Regular expression with named capture groups for parsing US-style names.
char kFirstMiddleLastRe[] =;

// Test the successful parsing of a value by a regular expression.
TEST(AutofillStructuredAddressUtils, TestParseValueByRegularExpression) {}

TEST(AutofillStructuredAddressUtils,
     TestParseValueByRegularExpression_OnlyPartialMatch) {}

TEST(AutofillStructuredAddressUtils,
     TestParseValueByRegularExpression_InvalidRegEx) {}

// Test the matching of a value against a regular expression.
TEST(AutofillStructuredAddressUtils, TestIsPartialMatch) {}

// Test the matching of a value against an invalid regular expression.
TEST(AutofillStructuredAddressUtils, TestIsPartialMatch_InvalidRegEx) {}

// Test the caching of regular expressions.
TEST(AutofillStructuredAddressUtils, TestRegExCaching) {}

TEST(AutofillStructuredAddressUtils, TestGetAllPartialMatches) {}

TEST(AutofillStructuredAddressUtils, TestGetAllPartialMatches_InvalidPattern) {}

TEST(AutofillStructuredAddressUtils,
     TestExtractAllPlaceholders_Isolated_Placeholder) {}

TEST(AutofillStructuredAddressUtils,
     TestExtractAllPlaceholders_Placeholder_In_Text) {}

TEST(AutofillStructuredAddressUtils,
     TestExtractAllPlaceholders_Multiple_Placeholders_In_Text) {}

TEST(AutofillStructuredAddressUtils, TestExtractAllPlaceholders_Broken_Syntax) {}

TEST(AutofillStructuredAddressUtils,
     TestExtractAllPlaceholders_Nested_Placeholders) {}

TEST(AutofillStructuredAddressUtils, TestGetPlaceholderToken) {}

TEST(AutofillStructuredAddressUtils, CaptureTypeWithPattern) {}

TEST(AutofillStructuredAddressUtils, NoCaptureTypeWithPattern) {}

TEST(AutofillStructuredAddressUtils, TokenizeValue) {}

TEST(AutofillStructuredAddressUtils, NormalizeValue) {}

TEST(AutofillStructuredAddressUtils, TestGetRewriter) {}

TEST(AutofillStructuredAddressUtils, AreStringTokenCompatible) {}

}  // namespace autofill