OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Tests for CppBoundClass, in conjunction with CppBindingExample. Binds | 5 // Tests for CppBoundClass, in conjunction with CppBindingExample. Binds |
6 // a CppBindingExample class into JavaScript in a custom test shell and tests | 6 // a CppBindingExample class into JavaScript in a custom test shell and tests |
7 // the binding from the outside by loading JS into the shell. | 7 // the binding from the outside by loading JS into the shell. |
8 | 8 |
9 #include "base/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "content/public/renderer/render_view_observer.h" | 10 #include "content/public/renderer/render_view_observer.h" |
11 #include "content/public/test/render_view_test.h" | 11 #include "content/public/test/render_view_test.h" |
12 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 12 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
15 #include "webkit/renderer/cpp_binding_example.h" | 15 #include "webkit/renderer/cpp_binding_example.h" |
16 | 16 |
17 using webkit_glue::CppArgumentList; | 17 using webkit_glue::CppArgumentList; |
18 using webkit_glue::CppBindingExample; | 18 using webkit_glue::CppBindingExample; |
19 using webkit_glue::CppVariant; | 19 using webkit_glue::CppVariant; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 } | 223 } |
224 | 224 |
225 // Ensures existent methods can be invoked successfully when the fallback method | 225 // Ensures existent methods can be invoked successfully when the fallback method |
226 // is used | 226 // is used |
227 TEST_F(CppBoundClassWithFallbackMethodTest, | 227 TEST_F(CppBoundClassWithFallbackMethodTest, |
228 InvokeExistentMethodsWithFallback) { | 228 InvokeExistentMethodsWithFallback) { |
229 CheckTrue("example.echoValue(34) == 34"); | 229 CheckTrue("example.echoValue(34) == 34"); |
230 } | 230 } |
231 | 231 |
232 } // namespace content | 232 } // namespace content |
OLD | NEW |