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

Side by Side Diff: content/test/test_webkit_platform_support.cc

Issue 23526028: Move source files from webkit/support to content/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 3 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 | « content/test/test_webkit_platform_support.h ('k') | content/test/web_gesture_curve_mock.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) 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 "content/test/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/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
11 #include "base/metrics/stats_counters.h" 11 #include "base/metrics/stats_counters.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "content/test/mock_webclipboard_impl.h"
15 #include "content/test/web_gesture_curve_mock.h"
16 #include "content/test/web_layer_tree_view_impl_for_testing.h"
17 #include "content/test/weburl_loader_mock_factory.h"
14 #include "media/base/media.h" 18 #include "media/base/media.h"
15 #include "net/cookies/cookie_monster.h" 19 #include "net/cookies/cookie_monster.h"
16 #include "net/test/spawned_test_server/spawned_test_server.h" 20 #include "net/test/spawned_test_server/spawned_test_server.h"
17 #include "third_party/WebKit/public/platform/WebData.h" 21 #include "third_party/WebKit/public/platform/WebData.h"
18 #include "third_party/WebKit/public/platform/WebFileSystem.h" 22 #include "third_party/WebKit/public/platform/WebFileSystem.h"
19 #include "third_party/WebKit/public/platform/WebStorageArea.h" 23 #include "third_party/WebKit/public/platform/WebStorageArea.h"
20 #include "third_party/WebKit/public/platform/WebStorageNamespace.h" 24 #include "third_party/WebKit/public/platform/WebStorageNamespace.h"
21 #include "third_party/WebKit/public/platform/WebString.h" 25 #include "third_party/WebKit/public/platform/WebString.h"
22 #include "third_party/WebKit/public/platform/WebURL.h" 26 #include "third_party/WebKit/public/platform/WebURL.h"
23 #include "third_party/WebKit/public/web/WebDatabase.h" 27 #include "third_party/WebKit/public/web/WebDatabase.h"
24 #include "third_party/WebKit/public/web/WebKit.h" 28 #include "third_party/WebKit/public/web/WebKit.h"
25 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" 29 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
26 #include "third_party/WebKit/public/web/WebScriptController.h" 30 #include "third_party/WebKit/public/web/WebScriptController.h"
27 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" 31 #include "third_party/WebKit/public/web/WebSecurityPolicy.h"
28 #include "third_party/WebKit/public/web/WebStorageEventDispatcher.h" 32 #include "third_party/WebKit/public/web/WebStorageEventDispatcher.h"
29 #include "v8/include/v8.h" 33 #include "v8/include/v8.h"
30 #include "webkit/browser/database/vfs_backend.h" 34 #include "webkit/browser/database/vfs_backend.h"
31 #include "webkit/child/webkitplatformsupport_impl.h" 35 #include "webkit/child/webkitplatformsupport_impl.h"
32 #include "webkit/glue/simple_webmimeregistry_impl.h" 36 #include "webkit/glue/simple_webmimeregistry_impl.h"
33 #include "webkit/glue/webkit_glue.h" 37 #include "webkit/glue/webkit_glue.h"
34 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" 38 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h"
35 #include "webkit/support/mock_webclipboard_impl.h"
36 #include "webkit/support/web_gesture_curve_mock.h"
37 #include "webkit/support/web_layer_tree_view_impl_for_testing.h"
38 #include "webkit/support/weburl_loader_mock_factory.h"
39 39
40 #if defined(OS_WIN) 40 #if defined(OS_WIN)
41 #include "third_party/WebKit/public/platform/win/WebThemeEngine.h" 41 #include "third_party/WebKit/public/platform/win/WebThemeEngine.h"
42 #elif defined(OS_MACOSX) 42 #elif defined(OS_MACOSX)
43 #include "base/mac/mac_util.h" 43 #include "base/mac/mac_util.h"
44 #endif 44 #endif
45 45
46 using WebKit::WebScriptController; 46 using WebKit::WebScriptController;
47 using webkit::WebLayerTreeViewImplForTesting; 47 using webkit::WebLayerTreeViewImplForTesting;
48 48
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 311
312 WebKit::WebData TestWebKitPlatformSupport::readFromFile( 312 WebKit::WebData TestWebKitPlatformSupport::readFromFile(
313 const WebKit::WebString& path) { 313 const WebKit::WebString& path) {
314 base::FilePath file_path = base::FilePath::FromUTF16Unsafe(path); 314 base::FilePath file_path = base::FilePath::FromUTF16Unsafe(path);
315 315
316 std::string buffer; 316 std::string buffer;
317 base::ReadFileToString(file_path, &buffer); 317 base::ReadFileToString(file_path, &buffer);
318 318
319 return WebKit::WebData(buffer.data(), buffer.size()); 319 return WebKit::WebData(buffer.data(), buffer.size());
320 } 320 }
OLDNEW
« no previous file with comments | « content/test/test_webkit_platform_support.h ('k') | content/test/web_gesture_curve_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698