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

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

Issue 2851893002: [Payments] Record CanMakePayment metrics on Desktop. (Closed)
Patch Set: 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..92b0a00fe5accc71352018f6057bc1e1a4f79de0 100644
--- a/components/payments/core/test_payment_request_delegate.h
+++ b/components/payments/core/test_payment_request_delegate.h
@@ -31,8 +31,11 @@ class TestPaymentRequestDelegate : public PaymentRequestDelegate {
result_delegate) override;
AddressNormalizer* GetAddressNormalizer() override;
autofill::RegionDataLoader* GetRegionDataLoader() override;
+ ukm::UkmService* GetUkmService() override;
TestAddressNormalizer* GetTestAddressNormalizer();
+ void DelayFullCardRequestCompletion();
+ void CompleteFullCardRequest();
private:
autofill::PersonalDataManager* personal_data_manager_;
@@ -43,6 +46,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);
};

Powered by Google App Engine
This is Rietveld 408576698