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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEventTest.cpp

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unintended exception message change Created 4 years, 5 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: third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEventTest.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEventTest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEventTest.cpp
index 3e72fe9d2d4fd4dd10b65bee278ada227f9e9647..4597221d17a7c865f82bef6b01e4536aa74eb932 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEventTest.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEventTest.cpp
@@ -37,7 +37,7 @@ TEST(PaymentRequestUpdateEventTest, OnUpdatePaymentDetailsCalled)
PaymentRequestUpdateEvent* event = PaymentRequestUpdateEvent::create();
MockPaymentUpdater* updater = new MockPaymentUpdater;
event->setPaymentDetailsUpdater(updater);
- event->setEventPhase(Event::CAPTURING_PHASE);
+ event->setEventPhase(Event::kCapturingPhase);
ScriptPromiseResolver* paymentDetails = ScriptPromiseResolver::create(scope.getScriptState());
event->updateWith(scope.getScriptState(), paymentDetails->promise(), scope.getExceptionState());
EXPECT_FALSE(scope.getExceptionState().hadException());
@@ -54,7 +54,7 @@ TEST(PaymentRequestUpdateEventTest, OnUpdatePaymentDetailsFailureCalled)
PaymentRequestUpdateEvent* event = PaymentRequestUpdateEvent::create(EventTypeNames::shippingaddresschange);
MockPaymentUpdater* updater = new MockPaymentUpdater;
event->setPaymentDetailsUpdater(updater);
- event->setEventPhase(Event::CAPTURING_PHASE);
+ event->setEventPhase(Event::kCapturingPhase);
ScriptPromiseResolver* paymentDetails = ScriptPromiseResolver::create(scope.getScriptState());
event->updateWith(scope.getScriptState(), paymentDetails->promise(), scope.getExceptionState());
EXPECT_FALSE(scope.getExceptionState().hadException());
@@ -82,7 +82,7 @@ TEST(PaymentRequestUpdateEventTest, CannotUpdateTwice)
PaymentRequestUpdateEvent* event = PaymentRequestUpdateEvent::create(EventTypeNames::shippingaddresschange);
MockPaymentUpdater* updater = new MockPaymentUpdater;
event->setPaymentDetailsUpdater(updater);
- event->setEventPhase(Event::CAPTURING_PHASE);
+ event->setEventPhase(Event::kCapturingPhase);
event->updateWith(scope.getScriptState(), ScriptPromiseResolver::create(scope.getScriptState())->promise(), scope.getExceptionState());
EXPECT_FALSE(scope.getExceptionState().hadException());

Powered by Google App Engine
This is Rietveld 408576698