OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/test/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/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
| 15 #include "content/renderer/compositor_bindings/web_compositor_support_impl.h" |
15 #include "content/test/mock_webclipboard_impl.h" | 16 #include "content/test/mock_webclipboard_impl.h" |
16 #include "content/test/web_gesture_curve_mock.h" | 17 #include "content/test/web_gesture_curve_mock.h" |
17 #include "content/test/web_layer_tree_view_impl_for_testing.h" | 18 #include "content/test/web_layer_tree_view_impl_for_testing.h" |
18 #include "content/test/weburl_loader_mock_factory.h" | 19 #include "content/test/weburl_loader_mock_factory.h" |
19 #include "media/base/media.h" | 20 #include "media/base/media.h" |
20 #include "net/cookies/cookie_monster.h" | 21 #include "net/cookies/cookie_monster.h" |
21 #include "net/test/spawned_test_server/spawned_test_server.h" | 22 #include "net/test/spawned_test_server/spawned_test_server.h" |
22 #include "third_party/WebKit/public/platform/WebData.h" | 23 #include "third_party/WebKit/public/platform/WebData.h" |
23 #include "third_party/WebKit/public/platform/WebFileSystem.h" | 24 #include "third_party/WebKit/public/platform/WebFileSystem.h" |
24 #include "third_party/WebKit/public/platform/WebStorageArea.h" | 25 #include "third_party/WebKit/public/platform/WebStorageArea.h" |
25 #include "third_party/WebKit/public/platform/WebStorageNamespace.h" | 26 #include "third_party/WebKit/public/platform/WebStorageNamespace.h" |
26 #include "third_party/WebKit/public/platform/WebString.h" | 27 #include "third_party/WebKit/public/platform/WebString.h" |
27 #include "third_party/WebKit/public/platform/WebURL.h" | 28 #include "third_party/WebKit/public/platform/WebURL.h" |
28 #include "third_party/WebKit/public/web/WebDatabase.h" | 29 #include "third_party/WebKit/public/web/WebDatabase.h" |
29 #include "third_party/WebKit/public/web/WebKit.h" | 30 #include "third_party/WebKit/public/web/WebKit.h" |
30 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 31 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
31 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" | 32 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" |
32 #include "third_party/WebKit/public/web/WebStorageEventDispatcher.h" | 33 #include "third_party/WebKit/public/web/WebStorageEventDispatcher.h" |
33 #include "v8/include/v8.h" | 34 #include "v8/include/v8.h" |
34 #include "webkit/browser/database/vfs_backend.h" | 35 #include "webkit/browser/database/vfs_backend.h" |
35 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" | |
36 | 36 |
37 #if defined(OS_MACOSX) | 37 #if defined(OS_MACOSX) |
38 #include "base/mac/mac_util.h" | 38 #include "base/mac/mac_util.h" |
39 #endif | 39 #endif |
40 | 40 |
41 namespace content { | 41 namespace content { |
42 | 42 |
43 TestWebKitPlatformSupport::TestWebKitPlatformSupport() { | 43 TestWebKitPlatformSupport::TestWebKitPlatformSupport() { |
44 url_loader_factory_.reset(new WebURLLoaderMockFactory()); | 44 url_loader_factory_.reset(new WebURLLoaderMockFactory()); |
45 mock_clipboard_.reset(new MockWebClipboardImpl()); | 45 mock_clipboard_.reset(new MockWebClipboardImpl()); |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 const blink::WebString& path) { | 283 const blink::WebString& path) { |
284 base::FilePath file_path = base::FilePath::FromUTF16Unsafe(path); | 284 base::FilePath file_path = base::FilePath::FromUTF16Unsafe(path); |
285 | 285 |
286 std::string buffer; | 286 std::string buffer; |
287 base::ReadFileToString(file_path, &buffer); | 287 base::ReadFileToString(file_path, &buffer); |
288 | 288 |
289 return blink::WebData(buffer.data(), buffer.size()); | 289 return blink::WebData(buffer.data(), buffer.size()); |
290 } | 290 } |
291 | 291 |
292 } // namespace content | 292 } // namespace content |
OLD | NEW |