Index: third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp |
diff --git a/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp b/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp |
index 5677cb40a10bd0a6b2cfb1f8577eceeab730e328..2624193a73ba6cbe9dd34746f775425ed9b57881 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp |
@@ -30,7 +30,7 @@ public: |
~MockPaymentCompleter() override {} |
- MOCK_METHOD2(complete, ScriptPromise(ScriptState*, bool success)); |
+ MOCK_METHOD2(complete, ScriptPromise(ScriptState*, const PaymentComplete result)); |
DEFINE_INLINE_TRACE() {} |
@@ -86,9 +86,9 @@ TEST_F(PaymentResponseTest, CompleteCalledWithSuccess) |
MockPaymentCompleter* completeCallback = new MockPaymentCompleter; |
PaymentResponse output(std::move(input), completeCallback); |
- EXPECT_CALL(*completeCallback, complete(getScriptState(), true)); |
+ EXPECT_CALL(*completeCallback, complete(getScriptState(), Success)); |
- output.complete(getScriptState(), true); |
+ output.complete(getScriptState(), "success"); |
} |
TEST_F(PaymentResponseTest, CompleteCalledWithFailure) |
@@ -99,9 +99,9 @@ TEST_F(PaymentResponseTest, CompleteCalledWithFailure) |
MockPaymentCompleter* completeCallback = new MockPaymentCompleter; |
PaymentResponse output(std::move(input), completeCallback); |
- EXPECT_CALL(*completeCallback, complete(getScriptState(), false)); |
+ EXPECT_CALL(*completeCallback, complete(getScriptState(), Fail)); |
- output.complete(getScriptState(), false); |
+ output.complete(getScriptState(), "fail"); |
} |
} // namespace |