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