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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_i18n_input_unittest.cc

Issue 298863012: Use upstream libaddressinput in Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial. Created 6 years, 7 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: chrome/browser/ui/autofill/autofill_dialog_i18n_input_unittest.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_i18n_input_unittest.cc b/chrome/browser/ui/autofill/autofill_dialog_i18n_input_unittest.cc
index bfab9eaeaaec83429b97ae4dda2a01c3d9a14690..1a6345bc60e3ceba50cd55358b77a26a9681715e 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_i18n_input_unittest.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_i18n_input_unittest.cc
@@ -6,7 +6,7 @@
#include "components/autofill/core/browser/field_types.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_ui.h"
+#include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_ui.h"
namespace autofill {
namespace i18ninput {
@@ -31,7 +31,9 @@ TEST(AutofillDialogI18nInput, USShippingAddress) {
TEST(AutofillDialogI18nInput, USBillingAddress) {
DetailInputs inputs;
- BuildAddressInputs(common::ADDRESS_TYPE_BILLING, "US", &inputs, NULL);
+ std::string language_code;
+ BuildAddressInputs(common::ADDRESS_TYPE_BILLING, "US", &inputs,
+ &language_code);
ASSERT_EQ(kNumberOfAddressLinesUS, inputs.size());
EXPECT_EQ(NAME_BILLING_FULL, inputs[0].type);
@@ -40,7 +42,9 @@ TEST(AutofillDialogI18nInput, USBillingAddress) {
TEST(AutofillDialogI18nInput, USCityStateAndZipCodeShareInputRow) {
DetailInputs inputs;
- BuildAddressInputs(common::ADDRESS_TYPE_SHIPPING, "US", &inputs, NULL);
+ std::string language_code;
+ BuildAddressInputs(common::ADDRESS_TYPE_SHIPPING, "US", &inputs,
+ &language_code);
ASSERT_EQ(kNumberOfAddressLinesUS, inputs.size());
int input_index = 2;

Powered by Google App Engine
This is Rietveld 408576698