| 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 "cc/blink/web_compositor_support_impl.h" | 10 #include "cc/blink/web_compositor_support_impl.h" |
| 11 #include "content/child/blink_platform_impl.h" | 11 #include "content/child/blink_platform_impl.h" |
| 12 #include "content/child/simple_webmimeregistry_impl.h" | 12 #include "content/child/simple_webmimeregistry_impl.h" |
| 13 #include "content/child/webfileutilities_impl.h" | 13 #include "content/child/webfileutilities_impl.h" |
| 14 #include "content/test/mock_webblob_registry_impl.h" | 14 #include "content/test/mock_webblob_registry_impl.h" |
| 15 #include "content/test/mock_webclipboard_impl.h" | 15 #include "content/test/mock_webclipboard_impl.h" |
| 16 #include "content/test/weburl_loader_mock_factory.h" | 16 #include "content/test/weburl_loader_mock_factory.h" |
| 17 #include "third_party/WebKit/public/platform/WebUnitTestSupport.h" | 17 #include "third_party/WebKit/public/platform/WebUnitTestSupport.h" |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 class StatsTable; | 20 class StatsTable; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace blink { | 23 namespace blink { |
| 24 class WebLayerTreeView; | 24 class WebLayerTreeView; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace content { | 27 namespace content { |
| 28 class WebFileSystemImpl; |
| 29 } |
| 30 |
| 31 namespace content { |
| 28 | 32 |
| 29 // An implementation of WebKitPlatformSupport for tests. | 33 // An implementation of WebKitPlatformSupport for tests. |
| 30 class TestWebKitPlatformSupport | 34 class TestWebKitPlatformSupport |
| 31 : public blink::WebUnitTestSupport, | 35 : public blink::WebUnitTestSupport, |
| 32 public BlinkPlatformImpl { | 36 public BlinkPlatformImpl { |
| 33 public: | 37 public: |
| 34 TestWebKitPlatformSupport(); | 38 TestWebKitPlatformSupport(); |
| 35 virtual ~TestWebKitPlatformSupport(); | 39 virtual ~TestWebKitPlatformSupport(); |
| 36 | 40 |
| 37 virtual blink::WebBlobRegistry* blobRegistry(); | 41 virtual blink::WebBlobRegistry* blobRegistry(); |
| 38 virtual blink::WebClipboard* clipboard(); | 42 virtual blink::WebClipboard* clipboard(); |
| 43 virtual blink::WebFileSystem* fileSystem(); |
| 39 virtual blink::WebFileUtilities* fileUtilities(); | 44 virtual blink::WebFileUtilities* fileUtilities(); |
| 40 virtual blink::WebIDBFactory* idbFactory(); | 45 virtual blink::WebIDBFactory* idbFactory(); |
| 41 virtual blink::WebMimeRegistry* mimeRegistry(); | 46 virtual blink::WebMimeRegistry* mimeRegistry(); |
| 42 | 47 |
| 43 virtual blink::WebURLLoader* createURLLoader(); | 48 virtual blink::WebURLLoader* createURLLoader(); |
| 44 virtual blink::WebString userAgent() OVERRIDE; | 49 virtual blink::WebString userAgent() OVERRIDE; |
| 45 virtual blink::WebData loadResource(const char* name); | 50 virtual blink::WebData loadResource(const char* name); |
| 46 virtual blink::WebString queryLocalizedString( | 51 virtual blink::WebString queryLocalizedString( |
| 47 blink::WebLocalizedString::Name name); | 52 blink::WebLocalizedString::Name name); |
| 48 virtual blink::WebString queryLocalizedString( | 53 virtual blink::WebString queryLocalizedString( |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 107 |
| 103 #if defined(OS_WIN) || defined(OS_MACOSX) | 108 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 104 blink::WebThemeEngine* active_theme_engine_; | 109 blink::WebThemeEngine* active_theme_engine_; |
| 105 #endif | 110 #endif |
| 106 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); | 111 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); |
| 107 }; | 112 }; |
| 108 | 113 |
| 109 } // namespace content | 114 } // namespace content |
| 110 | 115 |
| 111 #endif // CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 116 #endif // CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
| OLD | NEW |