| Index: ios/chrome/browser/payments/test_payment_request.h
|
| diff --git a/ios/chrome/browser/payments/test_payment_request.h b/ios/chrome/browser/payments/test_payment_request.h
|
| index 025d38eba03594010d818f7dbf68c541a1a5a848..1d6eda99b6b5c50e64449fbb2c8e698856329b52 100644
|
| --- a/ios/chrome/browser/payments/test_payment_request.h
|
| +++ b/ios/chrome/browser/payments/test_payment_request.h
|
| @@ -15,6 +15,7 @@ class RegionDataLoader;
|
|
|
| namespace web {
|
| class PaymentRequest;
|
| +class PaymentShippingOption;
|
| } // namespace web
|
|
|
| // PaymentRequest for use in tests.
|
| @@ -31,6 +32,24 @@ class TestPaymentRequest : public PaymentRequest {
|
| region_data_loader_ = region_data_loader;
|
| }
|
|
|
| + // Returns the web::PaymentRequest instance that was used to build this
|
| + // object.
|
| + web::PaymentRequest& web_payment_request() { return web_payment_request_; }
|
| +
|
| + // Removes all the shipping profiles.
|
| + void ClearShippingProfiles();
|
| +
|
| + // Removes all the contact profiles.
|
| + void ClearContactProfiles();
|
| +
|
| + // Removes all the credit cards.
|
| + void ClearCreditCards();
|
| +
|
| + // Sets the currently selected shipping option for this PaymentRequest flow.
|
| + void set_selected_shipping_option(web::PaymentShippingOption* option) {
|
| + selected_shipping_option_ = option;
|
| + }
|
| +
|
| // PaymentRequest
|
| autofill::RegionDataLoader* GetRegionDataLoader() override;
|
|
|
|
|