chromium/third_party/libaddressinput/src/cpp/test/validation_task_test.cc

// Copyright (C) 2014 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "validation_task.h"

#include <libaddressinput/address_data.h>
#include <libaddressinput/address_field.h>
#include <libaddressinput/address_problem.h>
#include <libaddressinput/address_validator.h>
#include <libaddressinput/callback.h>
#include <libaddressinput/supplier.h>

#include <cstddef>
#include <memory>

#include <gtest/gtest.h>

#include "lookup_key.h"
#include "rule.h"
#include "util/size.h"

namespace i18n {
namespace addressinput {

class ValidationTaskTest : public testing::Test {};

namespace {

TEST_F(ValidationTaskTest, FailureCountryRuleNull) {}

TEST_F(ValidationTaskTest, FailureCountryRuleEmpty) {}

TEST_F(ValidationTaskTest, SuccessCountryRuleNullNameEmpty) {}

TEST_F(ValidationTaskTest, SuccessCountryRuleNullNameNotEmpty) {}

TEST_F(ValidationTaskTest, SuccessCountryRuleEmptyNameEmpty) {}

TEST_F(ValidationTaskTest, SuccessCountryRuleEmptyNameNotEmpty) {}

TEST_F(ValidationTaskTest, MissingRequiredFieldsUS) {}

TEST_F(ValidationTaskTest, MissingNoRequiredFieldsUS) {}

TEST_F(ValidationTaskTest, UnexpectedFieldUS) {}

TEST_F(ValidationTaskTest, MissingRequiredFieldRequireName) {}

TEST_F(ValidationTaskTest, UnknownValueRuleNull) {}

TEST_F(ValidationTaskTest, NoUnknownValueRuleNotNull) {}

TEST_F(ValidationTaskTest, PostalCodeUnrecognizedFormatTooShort) {}

TEST_F(ValidationTaskTest, PostalCodeUnrecognizedFormatTooLong) {}

TEST_F(ValidationTaskTest, PostalCodeRecognizedFormat) {}

TEST_F(ValidationTaskTest, PostalCodeMismatchingValue1) {}

TEST_F(ValidationTaskTest, PostalCodeMismatchingValue2) {}

TEST_F(ValidationTaskTest, PostalCodeMismatchingValue3) {}

TEST_F(ValidationTaskTest, PostalCodeMatchingValue) {}

TEST_F(ValidationTaskTest, PostalCodePrefixMismatchingValue) {}

TEST_F(ValidationTaskTest, PostalCodeFilterIgnoresMismatching) {}

TEST_F(ValidationTaskTest, UsesPoBoxLanguageUnd) {}

TEST_F(ValidationTaskTest, UsesPoBoxLanguageDa) {}

TEST_F(ValidationTaskTest, UsesPoBoxLanguageDaNotMatchDe) {}

TEST_F(ValidationTaskTest, UsesPoBoxAllowPostal) {}

}  // namespace
}  // namespace addressinput
}  // namespace i18n