OLD | NEW |
---|---|
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 |
OLD | NEW |