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

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

Issue 164225: Switch to WebFrame from the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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
« no previous file with comments | « webkit/glue/dom_operations.cc ('k') | webkit/glue/dom_serializer.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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "net/base/net_util.h" 8 #include "net/base/net_util.h"
9 #include "net/url_request/url_request_context.h" 9 #include "net/url_request/url_request_context.h"
10 #include "webkit/glue/dom_operations.h" 10 #include "webkit/glue/dom_operations.h"
11 #include "webkit/glue/webview.h" 11 #include "webkit/glue/webview.h"
12 #include "webkit/glue/webframe.h"
13 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" 12 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
14 #include "webkit/tools/test_shell/test_shell_test.h" 13 #include "webkit/tools/test_shell/test_shell_test.h"
15 14
16 namespace { 15 namespace {
17 16
18 class DomOperationsTests : public TestShellTest { 17 class DomOperationsTests : public TestShellTest {
19 public: 18 public:
20 // Test function GetAllSavableResourceLinksForCurrentPage with a web page. 19 // Test function GetAllSavableResourceLinksForCurrentPage with a web page.
21 // We expect result of GetAllSavableResourceLinksForCurrentPage exactly 20 // We expect result of GetAllSavableResourceLinksForCurrentPage exactly
22 // matches expected_resources_set. 21 // matches expected_resources_set.
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 170 }
172 if (sizes.size() > 1) { 171 if (sizes.size() > 1) {
173 ASSERT_EQ(data[i].width2, sizes[1].width()); 172 ASSERT_EQ(data[i].width2, sizes[1].width());
174 ASSERT_EQ(data[i].height2, sizes[1].height()); 173 ASSERT_EQ(data[i].height2, sizes[1].height());
175 } 174 }
176 } 175 }
177 } 176 }
178 } 177 }
179 178
180 } // namespace 179 } // namespace
OLDNEW
« no previous file with comments | « webkit/glue/dom_operations.cc ('k') | webkit/glue/dom_serializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698