chromium/third_party/libaddressinput/chromium/addressinput_util.cc

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

#include "third_party/libaddressinput/chromium/addressinput_util.h"

#include <stddef.h>

#include <algorithm>

#include "base/check.h"
#include "base/stl_util.h"
#include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_data.h"
#include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_metadata.h"

namespace autofill {
namespace addressinput {

namespace {

AddressData;
AddressField;
AddressProblem;
IsFieldRequired;

MISSING_REQUIRED_FIELD;

// Returns true if the |problem| should be reported for the |field| because
// the |filter| is either null, empty or contains it.
bool FilterContains(const std::multimap<AddressField, AddressProblem>* filter,
                    AddressField field,
                    AddressProblem problem) {}

// Returns true if the |problem| should not be reported for the |field| because
// the |filter| is not null or empty and contains it.
bool FilterExcludes(const std::multimap<AddressField, AddressProblem>* filter,
                    AddressField field,
                    AddressProblem problem) {}

static const AddressField kFields[] =;

}  // namespace

bool HasAllRequiredFields(const AddressData& address_to_check) {}

void ValidateRequiredFields(
    const AddressData& address_to_check,
    const std::multimap<AddressField, AddressProblem>* inclusion_filter,
    std::multimap<AddressField, AddressProblem>* problems) {}

void ValidateRequiredFieldsExceptFilteredOut(
    const AddressData& address_to_check,
    const std::multimap<AddressField, AddressProblem>* exclusion_filter,
    std::multimap<AddressField, AddressProblem>* problems) {}

}  // namespace addressinput
}  // namespace autofill