| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "components/payments/core/test_address_normalizer.h" | 5 #include "components/payments/core/test_address_normalizer.h" |
| 6 | 6 |
| 7 namespace payments { | 7 namespace payments { |
| 8 | 8 |
| 9 bool TestAddressNormalizer::AreRulesLoadedForRegion( | 9 bool TestAddressNormalizer::AreRulesLoadedForRegion( |
| 10 const std::string& region_code) { | 10 const std::string& region_code) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // Setup the necessary variables for the delayed normalization. | 24 // Setup the necessary variables for the delayed normalization. |
| 25 profile_ = profile; | 25 profile_ = profile; |
| 26 requester_ = requester; | 26 requester_ = requester; |
| 27 } | 27 } |
| 28 | 28 |
| 29 void TestAddressNormalizer::DelayNormalization() { | 29 void TestAddressNormalizer::DelayNormalization() { |
| 30 instantaneous_normalization_ = false; | 30 instantaneous_normalization_ = false; |
| 31 } | 31 } |
| 32 | 32 |
| 33 void TestAddressNormalizer::CompleteAddressNormalization() { | 33 void TestAddressNormalizer::CompleteAddressNormalization() { |
| 34 DCHECK(instantaneous_normalization_ == false); |
| 34 requester_->OnAddressNormalized(profile_); | 35 requester_->OnAddressNormalized(profile_); |
| 35 } | 36 } |
| 36 | 37 |
| 37 } // namespace payments | 38 } // namespace payments |
| OLD | NEW |