| Index: third_party/WebKit/Source/core/testing/CallbackFunctionTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/CallbackFunctionTest.cpp b/third_party/WebKit/Source/core/testing/CallbackFunctionTest.cpp
|
| index 546692b35fc4abfd181efb322954e10723ddcb19..f82032e9c842e1504a20dbc257b7360653fe12bc 100644
|
| --- a/third_party/WebKit/Source/core/testing/CallbackFunctionTest.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/CallbackFunctionTest.cpp
|
| @@ -7,6 +7,7 @@
|
| #include "bindings/core/v8/ScriptState.h"
|
| #include "bindings/core/v8/V8Binding.h"
|
| #include "bindings/core/v8/V8TestCallback.h"
|
| +#include "bindings/core/v8/V8TestSequenceCallback.h"
|
|
|
| namespace blink {
|
|
|
| @@ -19,10 +20,19 @@ String CallbackFunctionTest::testCallback(ScriptState* scriptState, V8TestCallba
|
| ScriptWrappable* scriptWrappable;
|
| String returnValue;
|
|
|
| - if (callback->call(scriptState, scriptWrappable = nullptr, message1, message2, returnValue)) {
|
| + if (callback->call(scriptState, scriptWrappable = nullptr, exceptionState, message1, message2, returnValue)) {
|
| return String("SUCCESS: ") + returnValue;
|
| }
|
| return String("Error!");
|
| }
|
|
|
| +Vector<String> CallbackFunctionTest::testSequenceCallback(ScriptState* scriptState, V8TestSequenceCallback* callback, const Vector<int>& numbers, ExceptionState& exceptionState)
|
| +{
|
| + Vector<String> returnValue;
|
| + if (callback->call(scriptState, nullptr, exceptionState, numbers, returnValue)) {
|
| + return returnValue;
|
| + }
|
| + return Vector<String>();
|
| +}
|
| +
|
| } // namespace blink
|
|
|