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

Unified Diff: components/payments/core/test_payment_request_delegate.h

Issue 2860563002: [Payments] Make AutofillPaymentInstrumentTest use test objects (Closed)
Patch Set: Addressed comment Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/payments/core/test_payment_request_delegate.h
diff --git a/components/payments/core/test_payment_request_delegate.h b/components/payments/core/test_payment_request_delegate.h
index a38a6067051a354a3051430c67a22135d336c699..94f1744350ff48bbf7454120d0fe2f9c56e4a88a 100644
--- a/components/payments/core/test_payment_request_delegate.h
+++ b/components/payments/core/test_payment_request_delegate.h
@@ -32,7 +32,9 @@ class TestPaymentRequestDelegate : public PaymentRequestDelegate {
AddressNormalizer* GetAddressNormalizer() override;
autofill::RegionDataLoader* GetRegionDataLoader() override;
- TestAddressNormalizer* GetTestAddressNormalizer();
+ TestAddressNormalizer* test_address_normalizer();
+ void DelayFullCardRequestCompletion();
+ void CompleteFullCardRequest();
private:
autofill::PersonalDataManager* personal_data_manager_;
@@ -43,6 +45,8 @@ class TestPaymentRequestDelegate : public PaymentRequestDelegate {
autofill::CreditCard full_card_request_card_;
base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
full_card_result_delegate_;
+
+ bool instantaneous_full_card_request_result_ = true;
DISALLOW_COPY_AND_ASSIGN(TestPaymentRequestDelegate);
};
« no previous file with comments | « components/payments/core/test_address_normalizer.cc ('k') | components/payments/core/test_payment_request_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698