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

Side by Side Diff: webkit/glue/cpp_bound_class_unittest.cc

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « webkit/glue/cpp_bound_class.cc ('k') | webkit/glue/cpp_variant.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <vector> 9 #include <vector>
10 10
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "webkit/api/public/WebData.h" 12 #include "third_party/WebKit/WebKit/chromium/public/WebData.h"
13 #include "webkit/api/public/WebFrame.h" 13 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h"
14 #include "webkit/api/public/WebURL.h" 14 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h"
15 #include "webkit/api/public/WebView.h" 15 #include "third_party/WebKit/WebKit/chromium/public/WebView.h"
16 #include "webkit/glue/cpp_binding_example.h" 16 #include "webkit/glue/cpp_binding_example.h"
17 #include "webkit/glue/webkit_glue.h" 17 #include "webkit/glue/webkit_glue.h"
18 #include "webkit/tools/test_shell/test_shell_test.h" 18 #include "webkit/tools/test_shell/test_shell_test.h"
19 19
20 using WebKit::WebFrame; 20 using WebKit::WebFrame;
21 21
22 namespace { 22 namespace {
23 23
24 class CppBindingExampleSubObject : public CppBindingExample { 24 class CppBindingExampleSubObject : public CppBindingExample {
25 public: 25 public:
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 279
280 // Ensures existent methods can be invoked successfully when the fallback method 280 // Ensures existent methods can be invoked successfully when the fallback method
281 // is used 281 // is used
282 TEST_F(CppBoundClassWithFallbackMethodTest, 282 TEST_F(CppBoundClassWithFallbackMethodTest,
283 InvokeExistentMethodsWithFallback) { 283 InvokeExistentMethodsWithFallback) {
284 std::string js = BuildJSCondition("example.echoValue(34)", "34"); 284 std::string js = BuildJSCondition("example.echoValue(34)", "34");
285 CheckJavaScriptSuccess(js); 285 CheckJavaScriptSuccess(js);
286 } 286 }
287 287
288 } // namespace 288 } // namespace
OLDNEW
« no previous file with comments | « webkit/glue/cpp_bound_class.cc ('k') | webkit/glue/cpp_variant.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698