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

Side by Side Diff: content/renderer/cpp_bound_class_unittest.cc

Issue 25378002: Move the rest of source files from webkit/renderer to content/renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
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 "content/renderer/cpp_bound_class.h"
10
9 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
10 #include "content/public/common/url_constants.h" 12 #include "content/public/common/url_constants.h"
11 #include "content/public/renderer/render_view_observer.h" 13 #include "content/public/renderer/render_view_observer.h"
12 #include "content/public/test/render_view_test.h" 14 #include "content/public/test/render_view_test.h"
13 #include "content/test/cpp_binding_example.h" 15 #include "content/test/cpp_binding_example.h"
14 #include "third_party/WebKit/public/platform/WebURLRequest.h" 16 #include "third_party/WebKit/public/platform/WebURLRequest.h"
15 #include "third_party/WebKit/public/web/WebDocument.h" 17 #include "third_party/WebKit/public/web/WebDocument.h"
16 #include "third_party/WebKit/public/web/WebElement.h" 18 #include "third_party/WebKit/public/web/WebElement.h"
17 19
18 using webkit_glue::CppArgumentList;
19 using webkit_glue::CppVariant;
20
21 namespace content { 20 namespace content {
22 21
23 namespace { 22 namespace {
24 23
25 class CppBindingExampleSubObject : public CppBindingExample { 24 class CppBindingExampleSubObject : public CppBindingExample {
26 public: 25 public:
27 CppBindingExampleSubObject() { 26 CppBindingExampleSubObject() {
28 sub_value_.Set("sub!"); 27 sub_value_.Set("sub!");
29 BindProperty("sub_value", &sub_value_); 28 BindProperty("sub_value", &sub_value_);
30 } 29 }
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 231 }
233 232
234 // Ensures existent methods can be invoked successfully when the fallback method 233 // Ensures existent methods can be invoked successfully when the fallback method
235 // is used 234 // is used
236 TEST_F(CppBoundClassWithFallbackMethodTest, 235 TEST_F(CppBoundClassWithFallbackMethodTest,
237 InvokeExistentMethodsWithFallback) { 236 InvokeExistentMethodsWithFallback) {
238 CheckTrue("example.echoValue(34) == 34"); 237 CheckTrue("example.echoValue(34) == 34");
239 } 238 }
240 239
241 } // namespace content 240 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698