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

Side by Side Diff: chrome/browser/ui/autofill/mock_address_validator.cc

Issue 298863012: Use upstream libaddressinput in Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review. Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/autofill/mock_address_validator.h" 5 #include "chrome/browser/ui/autofill/mock_address_validator.h"
6 6
7 namespace autofill { 7 namespace autofill {
8 8
9 MockAddressValidator::MockAddressValidator() { 9 MockAddressValidator::MockAddressValidator() {
10 using testing::_; 10 using testing::_;
11 using testing::Return; 11 using testing::Return;
12 ON_CALL(*this, ValidateAddress(_, _, _)).WillByDefault(Return(SUCCESS)); 12 ON_CALL(*this, LoadRules(_, _)).WillByDefault(Return());
please use gerrit instead 2014/06/05 22:22:48 To reduce reviewer burden: Single parameter.
please use gerrit instead 2014/06/09 23:28:16 Done.
13 ON_CALL(*this, Validate(_, _, _)).WillByDefault(Return(SUCCESS));
please use gerrit instead 2014/06/05 22:22:48 To reduce reviewer burden: ValidateAddress.
please use gerrit instead 2014/06/09 23:28:16 Done.
13 ON_CALL(*this, GetSuggestions(_, _, _, _)).WillByDefault(Return(SUCCESS)); 14 ON_CALL(*this, GetSuggestions(_, _, _, _)).WillByDefault(Return(SUCCESS));
14 ON_CALL(*this, CanonicalizeAdministrativeArea(_)).WillByDefault(Return(true)); 15 ON_CALL(*this, CanonicalizeAdministrativeArea(_)).WillByDefault(Return(true));
15 } 16 }
16 17
17 MockAddressValidator::~MockAddressValidator() {} 18 MockAddressValidator::~MockAddressValidator() {}
18 19
19 } // namespace autofill 20 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698