Home
last modified time | relevance | path

Searched refs:COUNTRY_CODE (Results 1 – 9 of 9) sorted by relevance

/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/metadata/source/
DCompositeMetadataContainerTest.java26 private static final Integer COUNTRY_CODE = 1; field in CompositeMetadataContainerTest
28 PhoneMetadata.newBuilder().setId(REGION_CODE).setCountryCode(COUNTRY_CODE);
32 .setCountryCode(COUNTRY_CODE);
52 assertNull(metadataContainer.getMetadataBy(COUNTRY_CODE)); in test_getMetadataBy_shouldReturnNullForNonExistingCountryCode()
58 assertSame(PHONE_METADATA_WITH_COUNTRY_CODE, metadataContainer.getMetadataBy(COUNTRY_CODE)); in test_getMetadataBy_shouldReturnMetadataForExistingCountryCode()
64 assertNull(metadataContainer.getMetadataBy(COUNTRY_CODE)); in test_getMetadataBy_shouldReturnNullForExistingCountryCodeOfGeoRegion()
DMapBackedMetadataContainerTest.java25 private static final Integer COUNTRY_CODE = 41; field in MapBackedMetadataContainerTest
27 PhoneMetadata.newBuilder().setId(REGION_CODE).setCountryCode(COUNTRY_CODE);
51 assertNull(MapBackedMetadataContainer.byCountryCallingCode().getMetadataBy(COUNTRY_CODE)); in test_getMetadataBy_shouldReturnNullForNonExistingCountryCode()
60 assertSame(PHONE_METADATA, metadataContainer.getMetadataBy(COUNTRY_CODE)); in test_getMetadataBy_shouldReturnMetadataForExistingCountryCode()
/third_party/libphonenumber/migrator/src/test/java/com/google/phonenumbers/migrator/
DMigrationJobTest.java46 private static final String COUNTRY_CODE = "44"; field in MigrationJobTest
54 .createCustomRecipeMigration(Paths.get(numbersPath), COUNTRY_CODE, MigrationFactory in customRecipesMigration_expectMigrations()
77 .createCustomRecipeMigration(Paths.get(numbersPath), COUNTRY_CODE, MigrationFactory in customRecipes_singleMigration_unsupportedRecipeKey_expectException()
97 .createCustomRecipeMigration(Paths.get(numbersPath), COUNTRY_CODE, MigrationFactory in customRecipes_singleMigration_validKey_expectMigration()
111 .createCustomRecipeMigration("13321", COUNTRY_CODE, MigrationFactory in customRecipes_invalidOldFormatValue_expectException()
131 .createCustomRecipeMigration(staleNumber, COUNTRY_CODE, MigrationFactory in customRecipe_multipleMigration_nextRecipeNotFound_expectException()
153 .createCustomRecipeMigration(staleNumber, COUNTRY_CODE, MigrationFactory in customRecipe_multipleMigration_expectMigration()
171 MigrationJob job = MigrationFactory.createMigration(invalidNumber, COUNTRY_CODE); in standardMigration_invalidNumberNoRecipe_expectNoMigration()
205 MigrationJob job = createMockJobFromTestRecipes(migratingNumber, DigitSequence.of(COUNTRY_CODE), in standardMigration_invalidMigration_expectInvalidMigration()
220 MigrationJob job = createMockJobFromTestRecipes(migratingNumber, DigitSequence.of(COUNTRY_CODE), in invalidMigration_strictExport_expectFileWithOriginalNumber()
[all …]
DMigrationUtilsTest.java45 private static final String COUNTRY_CODE = "44"; field in MigrationUtilsTest
51 …MigrationJob job = MigrationFactory.createCustomRecipeMigration(invalidTestNumber, COUNTRY_CODE, M… in getCountryMigratableNumbers_expectNoMatches()
64 .createCustomRecipeMigration(Paths.get(numbersPath), COUNTRY_CODE, MigrationFactory in getCountryMigratableNumbers_expectMatches()
80 …MigrationJob job = MigrationFactory.createCustomRecipeMigration(VALID_TEST_NUMBER, COUNTRY_CODE, M… in getMigratableNumbers_invalidKey_expectException()
97 …MigrationJob job = MigrationFactory.createCustomRecipeMigration(VALID_TEST_NUMBER, COUNTRY_CODE, M… in getMigratableNumbers_validKey_expectNoExceptionAndNoMatches()
108 …MigrationJob job = MigrationFactory.createCustomRecipeMigration(VALID_TEST_NUMBER, COUNTRY_CODE, M… in findMatchingRecipe_expectNoMatchingRecipe()
119 …MigrationJob job = MigrationFactory.createCustomRecipeMigration(VALID_TEST_NUMBER, COUNTRY_CODE, M… in findMatchingRecipe_expectMatchingRecipe()
/third_party/libphonenumber/migrator/src/main/java/com/google/phonenumbers/migrator/
DRecipesTableSchema.java70 public static final Column<DigitSequence> COUNTRY_CODE = field in RecipesTableSchema
108 .add(COUNTRY_CODE)
121 .add(COUNTRY_CODE)
DMigrationUtils.java63 .getRanges(RecipesTableSchema.COUNTRY_CODE, countryCode); in getMigratableRangeByCountry()
82 .get(RecipesTableSchema.COUNTRY_CODE).equals(countryCode)) { in findMatchingRecipe()
DMigrationJob.java124 if (!recipeRow.get(RecipesTableSchema.COUNTRY_CODE).equals(countryCode)) { in getMigrationReportForRecipe()
/third_party/libphonenumber/tools/java/common/test/com/google/i18n/phonenumbers/
DMetadataFilterTest.java32 private static final int COUNTRY_CODE = 374; field in MetadataFilterTest
866 assertEquals(metadata.getCountryCode(), COUNTRY_CODE); in testFilterMetadata_liteBuild() local
895 assertEquals(metadata.getCountryCode(), COUNTRY_CODE); in testFilterMetadata_specialBuild() local
931 assertEquals(metadata.getCountryCode(), COUNTRY_CODE); in testFilterMetadata_emptyFilter() local
974 metadata.setCountryCode(COUNTRY_CODE); in getFakeArmeniaPhoneMetadata()
/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/
DBuildMetadataFromXml.java53 private static final String COUNTRY_CODE = "countryCode"; field in BuildMetadataFromXml
201 if (element.hasAttribute(COUNTRY_CODE)) { in loadTerritoryTagMetadata()
202 metadata.setCountryCode(Integer.parseInt(element.getAttribute(COUNTRY_CODE))); in loadTerritoryTagMetadata()