chromium/third_party/libphonenumber/dist/cpp/test/phonenumbers/asyoutypeformatter_test.cc

// Copyright (C) 2011 The Libphonenumber Authors
//
// 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.

// Unit tests for asyoutypeformatter.cc, ported from AsYouTypeFormatterTest.java
//
// Note that these tests use the test metadata, not the normal metadata file,
// so should not be used for regression test purposes - these tests are
// illustrative only and test functionality.

#include "phonenumbers/asyoutypeformatter.h"

#include <gtest/gtest.h>

#include "phonenumbers/base/logging.h"
#include "phonenumbers/base/memory/scoped_ptr.h"
#include "phonenumbers/default_logger.h"
#include "phonenumbers/phonenumberutil.h"
#include "phonenumbers/test_util.h"

namespace i18n {
namespace phonenumbers {

class PhoneMetadata;

class AsYouTypeFormatterTest : public testing::Test {};

TEST_F(AsYouTypeFormatterTest, ConvertUnicodeStringPosition) {}

TEST_F(AsYouTypeFormatterTest, Constructor) {}

TEST_F(AsYouTypeFormatterTest, InvalidPlusSign) {}

TEST_F(AsYouTypeFormatterTest, TooLongNumberMatchingMultipleLeadingDigits) {}

TEST_F(AsYouTypeFormatterTest, CountryWithSpaceInNationalPrefixFormattingRule) {}

TEST_F(AsYouTypeFormatterTest,
       CountryWithSpaceInNationalPrefixFormattingRuleAndLongNdd) {}

TEST_F(AsYouTypeFormatterTest, AYTF_US) {}

TEST_F(AsYouTypeFormatterTest, AYTF_USFullWidthCharacters) {}

TEST_F(AsYouTypeFormatterTest, AYTF_USMobileShortCode) {}

TEST_F(AsYouTypeFormatterTest, AYTF_USVanityNumber) {}

TEST_F(AsYouTypeFormatterTest, AYTFAndRememberPositionUS) {}

TEST_F(AsYouTypeFormatterTest, AYTF_GBFixedLine) {}

TEST_F(AsYouTypeFormatterTest, AYTF_GBTollFree) {}

TEST_F(AsYouTypeFormatterTest, AYTF_GBPremiumRate) {}

TEST_F(AsYouTypeFormatterTest, AYTF_NZMobile) {}

TEST_F(AsYouTypeFormatterTest, AYTF_DE) {}

TEST_F(AsYouTypeFormatterTest, AYTF_AR) {}

TEST_F(AsYouTypeFormatterTest, AYTF_ARMobile) {}

TEST_F(AsYouTypeFormatterTest, AYTF_KR) {}

TEST_F(AsYouTypeFormatterTest, AYTF_MX) {}

TEST_F(AsYouTypeFormatterTest, AYTF_International_Toll_Free) {}

TEST_F(AsYouTypeFormatterTest, AYTF_MultipleLeadingDigitPatterns) {}

TEST_F(AsYouTypeFormatterTest, AYTF_LongIDD_AU) {}

TEST_F(AsYouTypeFormatterTest, AYTF_LongIDD_KR) {}

TEST_F(AsYouTypeFormatterTest, AYTF_LongNDD_KR) {}

TEST_F(AsYouTypeFormatterTest, AYTF_LongNDD_SG) {}

TEST_F(AsYouTypeFormatterTest, AYTF_ShortNumberFormattingFix_AU) {}

TEST_F(AsYouTypeFormatterTest, AYTF_ShortNumberFormattingFix_KR) {}

TEST_F(AsYouTypeFormatterTest, AYTF_ShortNumberFormattingFix_MX) {}

TEST_F(AsYouTypeFormatterTest, AYTF_NoNationalPrefix) {}

TEST_F(AsYouTypeFormatterTest, AYTF_NoNationalPrefixFormattingRule) {}

TEST_F(AsYouTypeFormatterTest, AYTF_ShortNumberFormattingFix_US) {}

TEST_F(AsYouTypeFormatterTest, AYTF_ClearNDDAfterIDDExtraction) {}

TEST_F(AsYouTypeFormatterTest,
       NumberPatternsBecomingInvalidShouldNotResultInDigitLoss) {}

}  // namespace phonenumbers
}  // namespace i18n