Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: third_party/libaddressinput/chromium/cpp/test/countryinfo_example_addresses_test.cc

Issue 368243007: Reland of "Use address_data.h from upstream libaddressinput". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update BUILD.gn, fix a test. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/libaddressinput/chromium/cpp/test/countryinfo_example_addresses_test.cc
diff --git a/third_party/libaddressinput/chromium/cpp/test/countryinfo_example_addresses_test.cc b/third_party/libaddressinput/chromium/cpp/test/countryinfo_example_addresses_test.cc
index de0caab3ebcd2e58bf327bc7eeb0d32d98477314..4f083c3094f60b395ca4d0fbf465a3d1fa0e0df9 100644
--- a/third_party/libaddressinput/chromium/cpp/test/countryinfo_example_addresses_test.cc
+++ b/third_party/libaddressinput/chromium/cpp/test/countryinfo_example_addresses_test.cc
@@ -102,9 +102,9 @@ class ExampleAddressValidatorTest
if (!fields_json->GetStringValueForKey(street_key, &street_field))
break;
- address.address_lines.push_back(street_field);
+ address.address_line.push_back(street_field);
}
- address.country_code = country;
+ address.region_code = country;
fields_json->GetStringValueForKey("state", &address.administrative_area);
fields_json->GetStringValueForKey("city", &address.locality);
fields_json->GetStringValueForKey("locality", &address.dependent_locality);
@@ -181,7 +181,7 @@ class ExampleAddressValidatorTest
virtual void OnAddressValidationRulesLoaded(const std::string& country_code,
bool success) {
AddressData address_data;
- address_data.country_code = country_code;
+ address_data.region_code = country_code;
AddressValidator::Status status =
validator_->ValidateAddress(address_data, AddressProblemFilter(), NULL);
EXPECT_TRUE(success);

Powered by Google App Engine
This is Rietveld 408576698