OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/compiler_specific.h" | 5 #include "base/compiler_specific.h" |
6 #include "base/file_path.h" | 6 #include "base/file_path.h" |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "net/base/net_util.h" | 11 #include "net/base/net_util.h" |
12 #include "net/url_request/url_request_context.h" | 12 #include "net/url_request/url_request_context.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeCollection.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeCollection.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializer.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializer.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie
nt.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie
nt.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
27 #include "webkit/glue/dom_operations.h" | 27 #include "webkit/glue/dom_operations.h" |
28 #include "webkit/glue/webkit_glue.h" | 28 #include "webkit/glue/webkit_glue.h" |
29 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" | 29 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
30 #include "webkit/tools/test_shell/test_shell_test.h" | 30 #include "webkit/tools/test_shell/test_shell_test.h" |
31 | 31 |
32 using WebKit::WebCString; | 32 using WebKit::WebCString; |
33 using WebKit::WebData; | 33 using WebKit::WebData; |
34 using WebKit::WebDocument; | 34 using WebKit::WebDocument; |
35 using WebKit::WebElement; | 35 using WebKit::WebElement; |
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 page_file_path = page_file_path.AppendASCII("iframe-src-is-exe.htm"); | 847 page_file_path = page_file_path.AppendASCII("iframe-src-is-exe.htm"); |
848 GURL file_url = net::FilePathToFileURL(page_file_path); | 848 GURL file_url = net::FilePathToFileURL(page_file_path); |
849 ASSERT_TRUE(file_url.SchemeIsFile()); | 849 ASSERT_TRUE(file_url.SchemeIsFile()); |
850 // Load the test file. | 850 // Load the test file. |
851 LoadPageFromURL(file_url); | 851 LoadPageFromURL(file_url); |
852 // Do a recursive serialization. We pass if we don't crash. | 852 // Do a recursive serialization. We pass if we don't crash. |
853 SerializeDomForURL(file_url, true); | 853 SerializeDomForURL(file_url, true); |
854 } | 854 } |
855 | 855 |
856 } // namespace | 856 } // namespace |
OLD | NEW |