1// Copyright (C) 2012 The Libphonenumber Authors 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15#ifndef I18N_PHONENUMBERS_GEOCODING_TEST_DATA 16#define I18N_PHONENUMBERS_GEOCODING_TEST_DATA 17 18#include "phonenumbers/base/basictypes.h" 19#include "phonenumbers/geocoding/geocoding_data.h" 20 21namespace i18n { 22namespace phonenumbers { 23 24// Returns a sorted array of country calling codes. 25const int* get_test_country_calling_codes(); 26 27// Returns the number of country calling codes in 28// get_test_country_calling_codes() array. 29int get_test_country_calling_codes_size(); 30 31// Returns the CountryLanguages record for country at index, index 32// being in [0, get_test_country_calling_codes_size()). 33const CountryLanguages* get_test_country_languages(int index); 34 35// Returns a sorted array of prefix language code pairs like 36// "1_de" or "82_ko". 37const char** get_test_prefix_language_code_pairs(); 38 39// Returns the number of elements in 40// get_prefix_language_code_pairs() 41int get_test_prefix_language_code_pairs_size(); 42 43// Returns the PrefixDescriptions for language/code pair at index, 44// index being in [0, get_prefix_language_code_pairs_size()). 45const PrefixDescriptions* get_test_prefix_descriptions(int index); 46 47} // namespace phonenumbers 48} // namespace i18n 49 50#endif // I18N_PHONENUMBERS_GEOCODING_TEST_DATA 51