| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/testing/CallbackFunctionTest.h" | 5 #include "core/testing/CallbackFunctionTest.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/TestCallback.h" | 7 #include "bindings/core/v8/TestCallback.h" |
| 8 #include "bindings/core/v8/TestInterfaceCallback.h" | 8 #include "bindings/core/v8/TestInterfaceCallback.h" |
| 9 #include "bindings/core/v8/TestReceiverObjectCallback.h" | 9 #include "bindings/core/v8/TestReceiverObjectCallback.h" |
| 10 #include "bindings/core/v8/TestSequenceCallback.h" | 10 #include "bindings/core/v8/TestSequenceCallback.h" |
| 11 #include "bindings/core/v8/V8Binding.h" | 11 #include "bindings/core/v8/V8BindingForCore.h" |
| 12 #include "core/html/HTMLDivElement.h" | 12 #include "core/html/HTMLDivElement.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 DEFINE_TRACE(CallbackFunctionTest) {} | 16 DEFINE_TRACE(CallbackFunctionTest) {} |
| 17 | 17 |
| 18 String CallbackFunctionTest::testCallback(TestCallback* callback, | 18 String CallbackFunctionTest::testCallback(TestCallback* callback, |
| 19 const String& message1, | 19 const String& message1, |
| 20 const String& message2, | 20 const String& message2, |
| 21 ExceptionState& exception_state) { | 21 ExceptionState& exception_state) { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 const Vector<int>& numbers, | 61 const Vector<int>& numbers, |
| 62 ExceptionState& exception_state) { | 62 ExceptionState& exception_state) { |
| 63 Vector<String> return_value; | 63 Vector<String> return_value; |
| 64 if (callback->call(nullptr, numbers, return_value)) { | 64 if (callback->call(nullptr, numbers, return_value)) { |
| 65 return return_value; | 65 return return_value; |
| 66 } | 66 } |
| 67 return Vector<String>(); | 67 return Vector<String>(); |
| 68 } | 68 } |
| 69 | 69 |
| 70 } // namespace blink | 70 } // namespace blink |
| OLD | NEW |