// 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: Philippe Liard #include <string> #include <ostream> #include <vector> #include "phonenumbers/phonenumber.h" namespace i18n { namespace phonenumbers { string; ostream; vector; class PhoneNumber; // Provides PhoneNumber comparison operators to support the use of EXPECT_EQ and // EXPECT_NE in the unittests. inline bool operator==(const PhoneNumber& number1, const PhoneNumber& number2) { … } inline bool operator!=(const PhoneNumber& number1, const PhoneNumber& number2) { … } // Needed by Google Test to display errors. ostream& operator<<(ostream& os, const PhoneNumber& number); ostream& operator<<(ostream& os, const vector<PhoneNumber>& numbers); // Class containing string constants of region codes for easier testing. Note // that another private RegionCode class is defined in // cpp/src/phonenumbers/region_code.h. This one contains more constants. class RegionCode { … }; } // namespace phonenumbers } // namespace i18n