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

Side by Side Diff: webkit/support/test_webkit_platform_support.h

Issue 20860003: Remove hyphenation code from Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 | « webkit/mocks/mock_webhyphenator.cc ('k') | webkit/support/test_webkit_platform_support.cc » ('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 #ifndef WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 5 #ifndef WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 6 #define WEBKIT_SUPPORT_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 "third_party/WebKit/public/platform/WebGamepads.h" 10 #include "third_party/WebKit/public/platform/WebGamepads.h"
11 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 11 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
12 #include "third_party/WebKit/public/platform/WebUnitTestSupport.h" 12 #include "third_party/WebKit/public/platform/WebUnitTestSupport.h"
13 #include "webkit/child/webkitplatformsupport_child_impl.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/mocks/mock_webhyphenator.h"
17 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" 16 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h"
18 #include "webkit/support/mock_webclipboard_impl.h" 17 #include "webkit/support/mock_webclipboard_impl.h"
19 #include "webkit/support/weburl_loader_mock_factory.h" 18 #include "webkit/support/weburl_loader_mock_factory.h"
20 19
21 class TestShellWebBlobRegistryImpl; 20 class TestShellWebBlobRegistryImpl;
22 21
23 namespace cc { 22 namespace cc {
24 class ContextProvider; 23 class ContextProvider;
25 } 24 }
26 25
27 namespace WebKit { 26 namespace WebKit {
28 class WebAudioDevice; 27 class WebAudioDevice;
29 class WebGraphicsContext3DProvider; 28 class WebGraphicsContext3DProvider;
30 class WebLayerTreeView; 29 class WebLayerTreeView;
31 } 30 }
32 31
33 // An implementation of WebKitPlatformSupport for tests. 32 // An implementation of WebKitPlatformSupport for tests.
34 class TestWebKitPlatformSupport : 33 class TestWebKitPlatformSupport :
35 public WebKit::WebUnitTestSupport, 34 public WebKit::WebUnitTestSupport,
36 public webkit_glue::WebKitPlatformSupportChildImpl { 35 public webkit_glue::WebKitPlatformSupportChildImpl {
37 public: 36 public:
38 TestWebKitPlatformSupport(); 37 TestWebKitPlatformSupport();
39 virtual ~TestWebKitPlatformSupport(); 38 virtual ~TestWebKitPlatformSupport();
40 39
41 virtual WebKit::WebMimeRegistry* mimeRegistry(); 40 virtual WebKit::WebMimeRegistry* mimeRegistry();
42 virtual WebKit::WebClipboard* clipboard(); 41 virtual WebKit::WebClipboard* clipboard();
43 virtual WebKit::WebFileUtilities* fileUtilities(); 42 virtual WebKit::WebFileUtilities* fileUtilities();
44 virtual WebKit::WebSandboxSupport* sandboxSupport(); 43 virtual WebKit::WebSandboxSupport* sandboxSupport();
45 virtual WebKit::WebBlobRegistry* blobRegistry(); 44 virtual WebKit::WebBlobRegistry* blobRegistry();
46 virtual WebKit::WebHyphenator* hyphenator();
47 virtual WebKit::WebIDBFactory* idbFactory(); 45 virtual WebKit::WebIDBFactory* idbFactory();
48 46
49 virtual bool sandboxEnabled(); 47 virtual bool sandboxEnabled();
50 virtual unsigned long long visitedLinkHash(const char* canonicalURL, 48 virtual unsigned long long visitedLinkHash(const char* canonicalURL,
51 size_t length); 49 size_t length);
52 virtual bool isLinkVisited(unsigned long long linkHash); 50 virtual bool isLinkVisited(unsigned long long linkHash);
53 virtual WebKit::WebMessagePortChannel* createMessagePortChannel(); 51 virtual WebKit::WebMessagePortChannel* createMessagePortChannel();
54 virtual void prefetchHostName(const WebKit::WebString&); 52 virtual void prefetchHostName(const WebKit::WebString&);
55 virtual WebKit::WebURLLoader* createURLLoader(); 53 virtual WebKit::WebURLLoader* createURLLoader();
56 virtual WebKit::WebData loadResource(const char* name); 54 virtual WebKit::WebData loadResource(const char* name);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting( 140 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting(
143 TestViewType type); 141 TestViewType type);
144 142
145 private: 143 private:
146 webkit_glue::SimpleWebMimeRegistryImpl mime_registry_; 144 webkit_glue::SimpleWebMimeRegistryImpl mime_registry_;
147 MockWebClipboardImpl mock_clipboard_; 145 MockWebClipboardImpl mock_clipboard_;
148 webkit_glue::WebFileUtilitiesImpl file_utilities_; 146 webkit_glue::WebFileUtilitiesImpl file_utilities_;
149 base::ScopedTempDir appcache_dir_; 147 base::ScopedTempDir appcache_dir_;
150 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; 148 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_;
151 base::ScopedTempDir file_system_root_; 149 base::ScopedTempDir file_system_root_;
152 webkit_glue::MockWebHyphenator hyphenator_;
153 WebURLLoaderMockFactory url_loader_factory_; 150 WebURLLoaderMockFactory url_loader_factory_;
154 WebKit::WebGamepads gamepad_data_; 151 WebKit::WebGamepads gamepad_data_;
155 webkit::WebCompositorSupportImpl compositor_support_; 152 webkit::WebCompositorSupportImpl compositor_support_;
156 153
157 scoped_refptr<cc::ContextProvider> main_thread_contexts_; 154 scoped_refptr<cc::ContextProvider> main_thread_contexts_;
158 155
159 #if defined(OS_WIN) || defined(OS_MACOSX) 156 #if defined(OS_WIN) || defined(OS_MACOSX)
160 WebKit::WebThemeEngine* active_theme_engine_; 157 WebKit::WebThemeEngine* active_theme_engine_;
161 #endif 158 #endif
162 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 159 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
163 }; 160 };
164 161
165 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 162 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW
« no previous file with comments | « webkit/mocks/mock_webhyphenator.cc ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698