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

Side by Side Diff: webkit/glue/dom_serializer_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/dom_serializer.cc ('k') | webkit/glue/form_field_values.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 #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 11 matching lines...) Expand all
22 #include "SubstituteData.h" 22 #include "SubstituteData.h"
23 MSVC_POP_WARNING(); 23 MSVC_POP_WARNING();
24 #undef LOG 24 #undef LOG
25 25
26 #include "base/file_path.h" 26 #include "base/file_path.h"
27 #include "base/file_util.h" 27 #include "base/file_util.h"
28 #include "base/hash_tables.h" 28 #include "base/hash_tables.h"
29 #include "base/string_util.h" 29 #include "base/string_util.h"
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 "third_party/WebKit/WebKit/chromium/public/WebData.h"
33 #include "webkit/api/public/WebURL.h" 33 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h"
34 #include "webkit/api/public/WebView.h" 34 #include "third_party/WebKit/WebKit/chromium/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/api/src/WebFrameImpl.h" 40 #include "third_party/WebKit/WebKit/chromium/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; 44 using WebKit::WebFrameImpl;
45 45
46 namespace { 46 namespace {
47 47
48 class DomSerializerTests : public TestShellTest, 48 class DomSerializerTests : public TestShellTest,
49 public webkit_glue::DomSerializerDelegate { 49 public webkit_glue::DomSerializerDelegate {
50 public: 50 public:
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 // "hello world" 811 // "hello world"
812 WebCore::HTMLElement* body_ele = doc->body(); 812 WebCore::HTMLElement* body_ele = doc->body();
813 ASSERT_TRUE(body_ele != NULL); 813 ASSERT_TRUE(body_ele != NULL);
814 WebCore::Node* text_node = body_ele->firstChild(); 814 WebCore::Node* text_node = body_ele->firstChild();
815 ASSERT_TRUE(text_node->isTextNode()); 815 ASSERT_TRUE(text_node->isTextNode());
816 const WebCore::String& text_node_contents = text_node->nodeValue(); 816 const WebCore::String& text_node_contents = text_node->nodeValue();
817 ASSERT_TRUE(text_node_contents == WebCore::String("hello world")); 817 ASSERT_TRUE(text_node_contents == WebCore::String("hello world"));
818 } 818 }
819 819
820 } // namespace 820 } // namespace
OLDNEW
« no previous file with comments | « webkit/glue/dom_serializer.cc ('k') | webkit/glue/form_field_values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698