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" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "third_party/WebKit/public/web/WebKit.h" | 29 #include "third_party/WebKit/public/web/WebKit.h" |
30 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 30 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
31 #include "third_party/WebKit/public/web/WebScriptController.h" | 31 #include "third_party/WebKit/public/web/WebScriptController.h" |
32 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" | 32 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" |
33 #include "third_party/WebKit/public/web/WebStorageEventDispatcher.h" | 33 #include "third_party/WebKit/public/web/WebStorageEventDispatcher.h" |
34 #include "v8/include/v8.h" | 34 #include "v8/include/v8.h" |
35 #include "webkit/browser/database/vfs_backend.h" | 35 #include "webkit/browser/database/vfs_backend.h" |
36 #include "webkit/child/webkitplatformsupport_impl.h" | 36 #include "webkit/child/webkitplatformsupport_impl.h" |
37 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" | 37 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" |
38 | 38 |
39 #if defined(OS_WIN) | 39 #if defined(OS_MACOSX) |
40 #include "third_party/WebKit/public/platform/win/WebThemeEngine.h" | |
41 #elif defined(OS_MACOSX) | |
42 #include "base/mac/mac_util.h" | 40 #include "base/mac/mac_util.h" |
43 #endif | 41 #endif |
44 | 42 |
45 using blink::WebScriptController; | 43 using blink::WebScriptController; |
46 using webkit::WebLayerTreeViewImplForTesting; | 44 using webkit::WebLayerTreeViewImplForTesting; |
47 | 45 |
48 namespace content { | 46 namespace content { |
49 | 47 |
50 TestWebKitPlatformSupport::TestWebKitPlatformSupport() { | 48 TestWebKitPlatformSupport::TestWebKitPlatformSupport() { |
51 url_loader_factory_.reset(new WebURLLoaderMockFactory()); | 49 url_loader_factory_.reset(new WebURLLoaderMockFactory()); |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 const blink::WebString& path) { | 315 const blink::WebString& path) { |
318 base::FilePath file_path = base::FilePath::FromUTF16Unsafe(path); | 316 base::FilePath file_path = base::FilePath::FromUTF16Unsafe(path); |
319 | 317 |
320 std::string buffer; | 318 std::string buffer; |
321 base::ReadFileToString(file_path, &buffer); | 319 base::ReadFileToString(file_path, &buffer); |
322 | 320 |
323 return blink::WebData(buffer.data(), buffer.size()); | 321 return blink::WebData(buffer.data(), buffer.size()); |
324 } | 322 } |
325 | 323 |
326 } // namespace content | 324 } // namespace content |
OLD | NEW |