| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "core/testing/CallbackFunctionTest.h" |
| 6 |
| 7 #include "bindings/core/v8/ScriptState.h" |
| 8 #include "bindings/core/v8/ScriptValue.h" |
| 9 #include "bindings/core/v8/V8Binding.h" |
| 10 #include "bindings/core/v8/V8TestCallback.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 DEFINE_TRACE(CallbackFunctionTest) |
| 15 { |
| 16 } |
| 17 |
| 18 String CallbackFunctionTest::testDOMString(ScriptState* state, V8TestCallback* c
allback, ExceptionState& exceptionState) |
| 19 { |
| 20 String msg1 = "hello"; |
| 21 String msg2 = "world"; |
| 22 ScriptValue scriptValue; |
| 23 |
| 24 if (callback->call(scriptValue, msg1, msg2)) { |
| 25 return String("SUCCESS: ") + callback->getValue(); } |
| 26 else { return String("Error!"); } |
| 27 } |
| 28 |
| 29 } // namespace blink |
| OLD | NEW |