OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |