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

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

Issue 2929673003: [Payment Request] Invalidates cached autofill profile after it is updated. (Closed)
Patch Set: Addressed comment 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
« no previous file with comments | « ios/chrome/browser/payments/payment_request.mm ('k') | ios/chrome/browser/payments/test_payment_request.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1d6eda99b6b5c50e64449fbb2c8e698856329b52..421c317efc82d31ea896e7b87b9c46e73cfee9c1 100644
--- a/ios/chrome/browser/payments/test_payment_request.h
+++ b/ios/chrome/browser/payments/test_payment_request.h
@@ -13,6 +13,10 @@ class PersonalDataManager;
class RegionDataLoader;
} // namespace autofill
+namespace payments {
+class PaymentsProfileComparator;
+} // namespace payments
+
namespace web {
class PaymentRequest;
class PaymentShippingOption;
@@ -32,6 +36,11 @@ class TestPaymentRequest : public PaymentRequest {
region_data_loader_ = region_data_loader;
}
+ void SetProfileComparator(
+ payments::PaymentsProfileComparator* profile_comparator) {
+ profile_comparator_ = profile_comparator;
+ }
+
// Returns the web::PaymentRequest instance that was used to build this
// object.
web::PaymentRequest& web_payment_request() { return web_payment_request_; }
@@ -52,11 +61,15 @@ class TestPaymentRequest : public PaymentRequest {
// PaymentRequest
autofill::RegionDataLoader* GetRegionDataLoader() override;
+ payments::PaymentsProfileComparator* profile_comparator() override;
private:
// Not owned and must outlive this object.
autofill::RegionDataLoader* region_data_loader_;
+ // Not owned and must outlive this object.
+ payments::PaymentsProfileComparator* profile_comparator_;
+
DISALLOW_COPY_AND_ASSIGN(TestPaymentRequest);
};
« no previous file with comments | « ios/chrome/browser/payments/payment_request.mm ('k') | ios/chrome/browser/payments/test_payment_request.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698