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

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

Issue 341030: Moves webview_impl.cc, webframe_impl.cc and webframeloaderclient_impl.cc into... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/dom_serializer.cc ('k') | webkit/glue/image_resource_fetcher.h » ('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 #include "config.h" 5 #include "config.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 8
9 MSVC_PUSH_WARNING_LEVEL(0); 9 MSVC_PUSH_WARNING_LEVEL(0);
10 #include "Document.h" 10 #include "Document.h"
(...skipping 19 matching lines...) Expand all
30 #include "net/base/net_util.h" 30 #include "net/base/net_util.h"
31 #include "net/url_request/url_request_context.h" 31 #include "net/url_request/url_request_context.h"
32 #include "webkit/api/public/WebData.h" 32 #include "webkit/api/public/WebData.h"
33 #include "webkit/api/public/WebURL.h" 33 #include "webkit/api/public/WebURL.h"
34 #include "webkit/api/public/WebView.h" 34 #include "webkit/api/public/WebView.h"
35 #include "webkit/glue/dom_operations.h" 35 #include "webkit/glue/dom_operations.h"
36 #include "webkit/glue/dom_operations_private.h" 36 #include "webkit/glue/dom_operations_private.h"
37 #include "webkit/glue/dom_serializer.h" 37 #include "webkit/glue/dom_serializer.h"
38 #include "webkit/glue/dom_serializer_delegate.h" 38 #include "webkit/glue/dom_serializer_delegate.h"
39 #include "webkit/glue/glue_util.h" 39 #include "webkit/glue/glue_util.h"
40 #include "webkit/glue/webframe_impl.h" 40 #include "webkit/api/src/WebFrameImpl.h"
41 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" 41 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
42 #include "webkit/tools/test_shell/test_shell_test.h" 42 #include "webkit/tools/test_shell/test_shell_test.h"
43 43
44 using WebKit::WebFrameImpl;
45
44 namespace { 46 namespace {
45 47
46 class DomSerializerTests : public TestShellTest, 48 class DomSerializerTests : public TestShellTest,
47 public webkit_glue::DomSerializerDelegate { 49 public webkit_glue::DomSerializerDelegate {
48 public: 50 public:
49 DomSerializerTests() 51 DomSerializerTests()
50 : local_directory_name_(FILE_PATH_LITERAL("./dummy_files/")) { } 52 : local_directory_name_(FILE_PATH_LITERAL("./dummy_files/")) { }
51 53
52 // DomSerializerDelegate. 54 // DomSerializerDelegate.
53 void DidSerializeDataForFrame(const GURL& frame_url, 55 void DidSerializeDataForFrame(const GURL& frame_url,
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 // "hello world" 811 // "hello world"
810 WebCore::HTMLElement* body_ele = doc->body(); 812 WebCore::HTMLElement* body_ele = doc->body();
811 ASSERT_TRUE(body_ele != NULL); 813 ASSERT_TRUE(body_ele != NULL);
812 WebCore::Node* text_node = body_ele->firstChild(); 814 WebCore::Node* text_node = body_ele->firstChild();
813 ASSERT_TRUE(text_node->isTextNode()); 815 ASSERT_TRUE(text_node->isTextNode());
814 const WebCore::String& text_node_contents = text_node->nodeValue(); 816 const WebCore::String& text_node_contents = text_node->nodeValue();
815 ASSERT_TRUE(text_node_contents == WebCore::String("hello world")); 817 ASSERT_TRUE(text_node_contents == WebCore::String("hello world"));
816 } 818 }
817 819
818 } // namespace 820 } // namespace
OLDNEW
« no previous file with comments | « webkit/glue/dom_serializer.cc ('k') | webkit/glue/image_resource_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698