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

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

Issue 12211110: Implement WebKit::WebUnitTestSupport::createLayerTreeViewForTesting() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add enum, fix NON_EXPORTED_BASE Created 7 years, 10 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
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 "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
11 #include "webkit/glue/webfileutilities_impl.h" 11 #include "webkit/glue/webfileutilities_impl.h"
12 #include "webkit/glue/webkitplatformsupport_impl.h" 12 #include "webkit/glue/webkitplatformsupport_impl.h"
13 #include "webkit/support/simple_database_system.h" 13 #include "webkit/support/simple_database_system.h"
14 #include "webkit/support/weburl_loader_mock_factory.h" 14 #include "webkit/support/weburl_loader_mock_factory.h"
15 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" 15 #include "webkit/tools/test_shell/mock_webclipboard_impl.h"
16 #include "webkit/tools/test_shell/simple_appcache_system.h" 16 #include "webkit/tools/test_shell/simple_appcache_system.h"
17 #include "webkit/tools/test_shell/simple_dom_storage_system.h" 17 #include "webkit/tools/test_shell/simple_dom_storage_system.h"
18 #include "webkit/tools/test_shell/simple_file_system.h" 18 #include "webkit/tools/test_shell/simple_file_system.h"
19 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" 19 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h"
20 #include "webkit/tools/test_shell/test_shell_webmimeregistry_impl.h" 20 #include "webkit/tools/test_shell/test_shell_webmimeregistry_impl.h"
21 21
22 #if HAVE_WEBUNITTESTSUPPORT 22 #if HAVE_WEBUNITTESTSUPPORT
23 #include "third_party/WebKit/Source/Platform/chromium/public/WebUnitTestSupport. h" 23 #include "third_party/WebKit/Source/Platform/chromium/public/WebUnitTestSupport. h"
24 #endif 24 #endif
25 25
26 class TestShellWebBlobRegistryImpl; 26 class TestShellWebBlobRegistryImpl;
27 27
28 namespace WebKit { 28 namespace WebKit {
29 class WebAudioDevice; 29 class WebAudioDevice;
30 class WebLayerTreeView;
30 } 31 }
31 32
32 typedef struct _HyphenDict HyphenDict; 33 typedef struct _HyphenDict HyphenDict;
33 34
34 // An implementation of WebKitPlatformSupport for tests. 35 // An implementation of WebKitPlatformSupport for tests.
35 class TestWebKitPlatformSupport : 36 class TestWebKitPlatformSupport :
36 #if HAVE_WEBUNITTESTSUPPORT 37 #if HAVE_WEBUNITTESTSUPPORT
37 public NON_EXPORTED_BASE(WebKit::WebUnitTestSupport), 38 public NON_EXPORTED_BASE(WebKit::WebUnitTestSupport),
38 #endif 39 #endif
39 public webkit_glue::WebKitPlatformSupportImpl { 40 public webkit_glue::WebKitPlatformSupportImpl {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 virtual void registerMockedURL(const WebKit::WebURL& url, 150 virtual void registerMockedURL(const WebKit::WebURL& url,
150 const WebKit::WebURLResponse& response, 151 const WebKit::WebURLResponse& response,
151 const WebKit::WebString& filePath); 152 const WebKit::WebString& filePath);
152 virtual void registerMockedErrorURL(const WebKit::WebURL& url, 153 virtual void registerMockedErrorURL(const WebKit::WebURL& url,
153 const WebKit::WebURLResponse& response, 154 const WebKit::WebURLResponse& response,
154 const WebKit::WebURLError& error); 155 const WebKit::WebURLError& error);
155 virtual void unregisterMockedURL(const WebKit::WebURL& url); 156 virtual void unregisterMockedURL(const WebKit::WebURL& url);
156 virtual void unregisterAllMockedURLs(); 157 virtual void unregisterAllMockedURLs();
157 virtual void serveAsynchronousMockedRequests(); 158 virtual void serveAsynchronousMockedRequests();
158 virtual WebKit::WebString webKitRootDir(); 159 virtual WebKit::WebString webKitRootDir();
160 #if HAVE_CREATELAYERTREEVIEWFORTESTING
161 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting(
162 TestViewType type);
163 #endif
159 164
160 private: 165 private:
161 TestShellWebMimeRegistryImpl mime_registry_; 166 TestShellWebMimeRegistryImpl mime_registry_;
162 MockWebClipboardImpl mock_clipboard_; 167 MockWebClipboardImpl mock_clipboard_;
163 webkit_glue::WebFileUtilitiesImpl file_utilities_; 168 webkit_glue::WebFileUtilitiesImpl file_utilities_;
164 base::ScopedTempDir appcache_dir_; 169 base::ScopedTempDir appcache_dir_;
165 SimpleAppCacheSystem appcache_system_; 170 SimpleAppCacheSystem appcache_system_;
166 SimpleDatabaseSystem database_system_; 171 SimpleDatabaseSystem database_system_;
167 SimpleDomStorageSystem dom_storage_system_; 172 SimpleDomStorageSystem dom_storage_system_;
168 SimpleWebCookieJarImpl cookie_jar_; 173 SimpleWebCookieJarImpl cookie_jar_;
169 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; 174 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_;
170 SimpleFileSystem file_system_; 175 SimpleFileSystem file_system_;
171 base::ScopedTempDir file_system_root_; 176 base::ScopedTempDir file_system_root_;
172 WebURLLoaderMockFactory url_loader_factory_; 177 WebURLLoaderMockFactory url_loader_factory_;
173 bool unit_test_mode_; 178 bool unit_test_mode_;
174 WebKit::WebGamepads gamepad_data_; 179 WebKit::WebGamepads gamepad_data_;
175 WebKit::Platform* shadow_platform_delegate_; 180 WebKit::Platform* shadow_platform_delegate_;
176 HyphenDict* hyphen_dictionary_; 181 HyphenDict* hyphen_dictionary_;
177 182
178 #if defined(OS_WIN) || defined(OS_MACOSX) 183 #if defined(OS_WIN) || defined(OS_MACOSX)
179 WebKit::WebThemeEngine* active_theme_engine_; 184 WebKit::WebThemeEngine* active_theme_engine_;
180 #endif 185 #endif
181 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 186 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
182 }; 187 };
183 188
184 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 189 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_layer_tree_view_impl_for_testing.cc ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698