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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.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_controller_browsertest.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc
index 1ebd14e42d519207cc9e2369bd7e43fa1161ec47..2f6b343d55fd6ea74e26d8abfc1913c057f0cbbb 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc
@@ -81,7 +81,6 @@ namespace {
using testing::Return;
using testing::_;
-using ::i18n::addressinput::AddressValidator;
void MockCallback(AutofillManagerDelegate::RequestAutocompleteResult,
const base::string16& message,
@@ -230,7 +229,7 @@ class TestAutofillDialogController : public AutofillDialogControllerImpl {
return &const_cast<TestAutofillDialogController*>(this)->test_manager_;
}
- virtual AddressValidator* GetValidator() OVERRIDE {
+ virtual PreloadAddressValidator* GetValidator() OVERRIDE {
return &mock_validator_;
}
@@ -1716,7 +1715,7 @@ IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, RulesLoaded) {
EXPECT_CALL(*controller()->GetMockValidator(),
ValidateAddress(CountryCodeMatcher("DE"), _, _)).Times(2).
- WillOnce(Return(AddressValidator::RULES_NOT_READY));
+ WillOnce(Return(PreloadAddressValidator::RULES_NOT_READY));
// Validation should occur on country change and see the rules haven't loaded.
scoped_ptr<AutofillDialogViewTester> view = GetViewTester();

Powered by Google App Engine
This is Rietveld 408576698