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

Unified Diff: ios/chrome/browser/payments/test_payment_request.h

Issue 2924663003: [Payment Request] Moves PaymentRequestViewController to :payments_ui (Closed)
Patch Set: Created 3 years, 6 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: 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;

Powered by Google App Engine
This is Rietveld 408576698