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

Side by Side Diff: components/payments/core/test_address_normalizer.cc

Issue 2860563002: [Payments] Make AutofillPaymentInstrumentTest use test objects (Closed)
Patch Set: Addressed comment Created 3 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698