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

Side by Side Diff: third_party/WebKit/Source/core/testing/CallbackFunctionTest.cpp

Issue 2834053003: Split V8Binding (Closed)
Patch Set: Rebase Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698