OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/support/test_webkit_platform_support.h" | 5 #include "webkit/support/test_webkit_platform_support.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/metrics/stats_counters.h" | 10 #include "base/metrics/stats_counters.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 bool TestWebKitPlatformSupport::isLinkVisited(unsigned long long linkHash) { | 186 bool TestWebKitPlatformSupport::isLinkVisited(unsigned long long linkHash) { |
187 return false; | 187 return false; |
188 } | 188 } |
189 | 189 |
190 WebKit::WebMessagePortChannel* | 190 WebKit::WebMessagePortChannel* |
191 TestWebKitPlatformSupport::createMessagePortChannel() { | 191 TestWebKitPlatformSupport::createMessagePortChannel() { |
192 return new TestWebMessagePortChannel(); | 192 return new TestWebMessagePortChannel(); |
193 } | 193 } |
194 | 194 |
195 void TestWebKitPlatformSupport::prefetchHostName(const WebKit::WebString&) { | |
196 } | |
197 | |
198 WebKit::WebURLLoader* TestWebKitPlatformSupport::createURLLoader() { | 195 WebKit::WebURLLoader* TestWebKitPlatformSupport::createURLLoader() { |
199 return url_loader_factory_.CreateURLLoader( | 196 return url_loader_factory_.CreateURLLoader( |
200 webkit_glue::WebKitPlatformSupportImpl::createURLLoader()); | 197 webkit_glue::WebKitPlatformSupportImpl::createURLLoader()); |
201 } | 198 } |
202 | 199 |
203 WebKit::WebData TestWebKitPlatformSupport::loadResource(const char* name) { | 200 WebKit::WebData TestWebKitPlatformSupport::loadResource(const char* name) { |
204 if (!strcmp(name, "deleteButton")) { | 201 if (!strcmp(name, "deleteButton")) { |
205 // Create a red 30x30 square. | 202 // Create a red 30x30 square. |
206 const char red_square[] = | 203 const char red_square[] = |
207 "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52" | 204 "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52" |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 return view.release(); | 442 return view.release(); |
446 } | 443 } |
447 | 444 |
448 WebKit::WebLayerTreeView* | 445 WebKit::WebLayerTreeView* |
449 TestWebKitPlatformSupport::createLayerTreeViewForTesting( | 446 TestWebKitPlatformSupport::createLayerTreeViewForTesting( |
450 TestViewType type) { | 447 TestViewType type) { |
451 DCHECK_EQ(TestViewTypeUnitTest, type); | 448 DCHECK_EQ(TestViewTypeUnitTest, type); |
452 return createLayerTreeViewForTesting(); | 449 return createLayerTreeViewForTesting(); |
453 } | 450 } |
454 | 451 |
OLD | NEW |