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..383d1fb65a8fcdc500e21607ea6b662bf80fae20 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 creidt cards. |
lpromero
2017/06/06 09:43:54
*credit
Moe
2017/06/07 02:12:51
Done.
|
+ 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; |