diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-02-13 16:23:34 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2019-02-14 10:37:21 +0000 |
commit | 38a9a29f4f9436cace7f0e7abf9c586057df8a4e (patch) | |
tree | c4e8c458dc595bc0ddb435708fa2229edfd00bd4 /chromium/third_party/blink/renderer/modules/payments/payment_request_update_event_test.cc | |
parent | e684a3455bcc29a6e3e66a004e352dea4e1141e7 (diff) | |
download | qtwebengine-chromium-38a9a29f4f9436cace7f0e7abf9c586057df8a4e.tar.gz |
BASELINE: Update Chromium to 73.0.3683.37
Change-Id: I08c9af2948b645f671e5d933aca1f7a90ea372f2
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/payments/payment_request_update_event_test.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/payments/payment_request_update_event_test.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/modules/payments/payment_request_update_event_test.cc b/chromium/third_party/blink/renderer/modules/payments/payment_request_update_event_test.cc index 4e2148cba1d..6e44d1abef5 100644 --- a/chromium/third_party/blink/renderer/modules/payments/payment_request_update_event_test.cc +++ b/chromium/third_party/blink/renderer/modules/payments/payment_request_update_event_test.cc @@ -40,7 +40,7 @@ TEST(PaymentRequestUpdateEventTest, OnUpdatePaymentDetailsCalled) { V8TestingScope scope; PaymentRequestUpdateEvent* event = PaymentRequestUpdateEvent::Create( scope.GetExecutionContext(), event_type_names::kShippingaddresschange); - MockPaymentUpdater* updater = new MockPaymentUpdater; + MockPaymentUpdater* updater = MakeGarbageCollected<MockPaymentUpdater>(); event->SetTrusted(true); event->SetPaymentDetailsUpdater(updater); event->SetEventPhase(Event::kCapturingPhase); @@ -62,7 +62,7 @@ TEST(PaymentRequestUpdateEventTest, OnUpdatePaymentDetailsFailureCalled) { V8TestingScope scope; PaymentRequestUpdateEvent* event = PaymentRequestUpdateEvent::Create( scope.GetExecutionContext(), event_type_names::kShippingaddresschange); - MockPaymentUpdater* updater = new MockPaymentUpdater; + MockPaymentUpdater* updater = MakeGarbageCollected<MockPaymentUpdater>(); event->SetTrusted(true); event->SetPaymentDetailsUpdater(updater); event->SetEventPhase(Event::kCapturingPhase); @@ -85,7 +85,7 @@ TEST(PaymentRequestUpdateEventTest, CannotUpdateWithoutDispatching) { V8TestingScope scope; PaymentRequestUpdateEvent* event = PaymentRequestUpdateEvent::Create( scope.GetExecutionContext(), event_type_names::kShippingaddresschange); - event->SetPaymentDetailsUpdater(new MockPaymentUpdater); + event->SetPaymentDetailsUpdater((MakeGarbageCollected<MockPaymentUpdater>())); event->updateWith( scope.GetScriptState(), @@ -99,7 +99,7 @@ TEST(PaymentRequestUpdateEventTest, CannotUpdateTwice) { V8TestingScope scope; PaymentRequestUpdateEvent* event = PaymentRequestUpdateEvent::Create( scope.GetExecutionContext(), event_type_names::kShippingaddresschange); - MockPaymentUpdater* updater = new MockPaymentUpdater; + MockPaymentUpdater* updater = MakeGarbageCollected<MockPaymentUpdater>(); event->SetTrusted(true); event->SetPaymentDetailsUpdater(updater); event->SetEventPhase(Event::kCapturingPhase); |