OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/autofill/android/mock_address_validator.h" |
| 6 |
| 7 namespace autofill { |
| 8 |
| 9 MockAddressValidator::MockAddressValidator( |
| 10 LoadRulesListener* load_rules_listener, |
| 11 bool load_rules_response) |
| 12 : load_rules_response_(load_rules_response), |
| 13 load_rules_listener_(load_rules_listener) {} |
| 14 |
| 15 void MockAddressValidator::LoadRules(const std::string& region_code) { |
| 16 load_rules_listener_->OnAddressValidationRulesLoaded(region_code, |
| 17 load_rules_response_); |
| 18 } |
| 19 } |
OLD | NEW |