chromium/third_party/libphonenumber/dist/cpp/test/phonenumbers/regexp_adapter_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.

// Author: George Yakovlev
//         Philippe Liard

#include "phonenumbers/regexp_adapter.h"

#include <string>
#include <vector>

#include <gtest/gtest.h>

#include "phonenumbers/base/memory/scoped_ptr.h"
#include "phonenumbers/stl_util.h"
#include "phonenumbers/stringutil.h"

#ifdef I18N_PHONENUMBERS_USE_RE2
#include "phonenumbers/regexp_adapter_re2.h"
#else
#include "phonenumbers/regexp_adapter_icu.h"
#endif  // I18N_PHONENUMBERS_USE_RE2

namespace i18n {
namespace phonenumbers {

vector;

// Structure that contains the attributes used to test an implementation of the
// regexp adapter.
struct RegExpTestContext {};

class RegExpAdapterTest : public testing::Test {};

TEST_F(RegExpAdapterTest, TestConsumeNoMatch) {}


TEST_F(RegExpAdapterTest, TestConsumeWithNull) {}

TEST_F(RegExpAdapterTest, TestConsumeRetainsMatches) {}

TEST_F(RegExpAdapterTest, TestFindAndConsume) {}

TEST_F(RegExpAdapterTest, TestPartialMatch) {}

TEST_F(RegExpAdapterTest, TestFullMatch) {}

TEST_F(RegExpAdapterTest, TestReplace) {}

TEST_F(RegExpAdapterTest, TestReplaceWithGroup) {}

TEST_F(RegExpAdapterTest, TestReplaceWithDollarSign) {}

TEST_F(RegExpAdapterTest, TestGlobalReplace) {}

TEST_F(RegExpAdapterTest, TestUtf8) {}

}  // namespace phonenumbers
}  // namespace i18n