Lines Matching refs:returnedCountry
29 const char *returnedCountry;
51 returnedCountry = GeoIP_country_code_by_addr(gi, NULL);
52 if (returnedCountry != NULL) {
58 returnedCountry = GeoIP_country_code_by_name(gi, NULL);
59 if (returnedCountry != NULL) {
69 returnedCountry = GeoIP_country_code_by_addr(gi, ipAddress);
70 if (returnedCountry == NULL
71 || strcmp(returnedCountry, expectedCountry) != 0) {
74 test_num, ipAddress, returnedCountry, expectedCountry);
77 returnedCountry = GeoIP_country_code_by_name(gi, ipAddress);
78 if (returnedCountry == NULL
79 || strcmp(returnedCountry, expectedCountry) != 0) {
82 test_num, ipAddress, returnedCountry, expectedCountry);
85 returnedCountry = GeoIP_country_code3_by_addr(gi, ipAddress);
86 if (returnedCountry == NULL
87 || strcmp(returnedCountry, expectedCountry3) != 0) {
90 test_num, ipAddress, returnedCountry, expectedCountry);
93 returnedCountry = GeoIP_country_code3_by_name(gi, ipAddress);
94 if (returnedCountry == NULL
95 || strcmp(returnedCountry, expectedCountry3) != 0) {
98 test_num, ipAddress, returnedCountry, expectedCountry);
107 returnedCountry = GeoIP_country_code_by_addr(gi, ipAddress);
108 if (returnedCountry == NULL
109 || strcmp(returnedCountry, expectedCountry) != 0) {
111 test_num, ipAddress, returnedCountry, expectedCountry);
120 returnedCountry = GeoIP_country_code_by_name(gi, ipAddress);
121 if (returnedCountry == NULL
122 || strcmp(returnedCountry, expectedCountry) != 0) {
124 test_num, ipAddress, returnedCountry, expectedCountry);