| 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 #ifndef CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 5 #ifndef CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
| 6 #define CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 6 #define CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "content/child/webkitplatformsupport_child_impl.h" |
| 10 #include "content/test/mock_webclipboard_impl.h" | 11 #include "content/test/mock_webclipboard_impl.h" |
| 11 #include "content/test/weburl_loader_mock_factory.h" | 12 #include "content/test/weburl_loader_mock_factory.h" |
| 12 #include "third_party/WebKit/public/platform/WebUnitTestSupport.h" | 13 #include "third_party/WebKit/public/platform/WebUnitTestSupport.h" |
| 13 #include "webkit/child/webkitplatformsupport_child_impl.h" | |
| 14 #include "webkit/glue/simple_webmimeregistry_impl.h" | 14 #include "webkit/glue/simple_webmimeregistry_impl.h" |
| 15 #include "webkit/glue/webfileutilities_impl.h" | 15 #include "webkit/glue/webfileutilities_impl.h" |
| 16 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" | 16 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 class WebLayerTreeView; | 19 class WebLayerTreeView; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace content { | 22 namespace content { |
| 23 | 23 |
| 24 // An implementation of WebKitPlatformSupport for tests. | 24 // An implementation of WebKitPlatformSupport for tests. |
| 25 class TestWebKitPlatformSupport | 25 class TestWebKitPlatformSupport |
| 26 : public blink::WebUnitTestSupport, | 26 : public blink::WebUnitTestSupport, |
| 27 public webkit_glue::WebKitPlatformSupportChildImpl { | 27 public content::WebKitPlatformSupportChildImpl { |
| 28 public: | 28 public: |
| 29 TestWebKitPlatformSupport(); | 29 TestWebKitPlatformSupport(); |
| 30 virtual ~TestWebKitPlatformSupport(); | 30 virtual ~TestWebKitPlatformSupport(); |
| 31 | 31 |
| 32 virtual blink::WebMimeRegistry* mimeRegistry(); | 32 virtual blink::WebMimeRegistry* mimeRegistry(); |
| 33 virtual blink::WebClipboard* clipboard(); | 33 virtual blink::WebClipboard* clipboard(); |
| 34 virtual blink::WebFileUtilities* fileUtilities(); | 34 virtual blink::WebFileUtilities* fileUtilities(); |
| 35 virtual blink::WebIDBFactory* idbFactory(); | 35 virtual blink::WebIDBFactory* idbFactory(); |
| 36 | 36 |
| 37 virtual blink::WebURLLoader* createURLLoader(); | 37 virtual blink::WebURLLoader* createURLLoader(); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 #if defined(OS_WIN) || defined(OS_MACOSX) | 107 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 108 blink::WebThemeEngine* active_theme_engine_; | 108 blink::WebThemeEngine* active_theme_engine_; |
| 109 #endif | 109 #endif |
| 110 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); | 110 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 } // namespace content | 113 } // namespace content |
| 114 | 114 |
| 115 #endif // CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 115 #endif // CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
| OLD | NEW |