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 "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/api/public/WebView.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebView.h" |
11 #include "webkit/glue/dom_operations.h" | 11 #include "webkit/glue/dom_operations.h" |
12 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" | 12 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
13 #include "webkit/tools/test_shell/test_shell_test.h" | 13 #include "webkit/tools/test_shell/test_shell_test.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 class DomOperationsTests : public TestShellTest { | 17 class DomOperationsTests : public TestShellTest { |
18 public: | 18 public: |
19 // Test function GetAllSavableResourceLinksForCurrentPage with a web page. | 19 // Test function GetAllSavableResourceLinksForCurrentPage with a web page. |
20 // We expect result of GetAllSavableResourceLinksForCurrentPage exactly | 20 // We expect result of GetAllSavableResourceLinksForCurrentPage exactly |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 175 } |
176 if (sizes.size() > 1) { | 176 if (sizes.size() > 1) { |
177 ASSERT_EQ(data[i].width2, sizes[1].width()); | 177 ASSERT_EQ(data[i].width2, sizes[1].width()); |
178 ASSERT_EQ(data[i].height2, sizes[1].height()); | 178 ASSERT_EQ(data[i].height2, sizes[1].height()); |
179 } | 179 } |
180 } | 180 } |
181 } | 181 } |
182 } | 182 } |
183 | 183 |
184 } // namespace | 184 } // namespace |
OLD | NEW |