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

Side by Side Diff: content/test/test_webkit_platform_support.h

Issue 25705004: content: Move MockWebClipboardImpl into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | « content/test/mock_webclipboard_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/test/mock_webclipboard_impl.h" 10 #include "content/test/mock_webclipboard_impl.h"
11 #include "content/test/weburl_loader_mock_factory.h" 11 #include "content/test/weburl_loader_mock_factory.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/renderer/compositor_bindings/web_compositor_support_impl.h" 16 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h"
17 17
18 namespace WebKit { 18 namespace WebKit {
19 class WebLayerTreeView; 19 class WebLayerTreeView;
20 } 20 }
21 21
22 // An implementation of WebKitPlatformSupport for tests. 22 // An implementation of WebKitPlatformSupport for tests.
23 class TestWebKitPlatformSupport : 23 class TestWebKitPlatformSupport
jam 2013/10/03 17:04:18 nit: this file should be in content namespace as w
tfarina 2013/10/04 23:29:47 Done.
24 public WebKit::WebUnitTestSupport, 24 : public WebKit::WebUnitTestSupport,
25 public webkit_glue::WebKitPlatformSupportChildImpl { 25 public webkit_glue::WebKitPlatformSupportChildImpl {
26 public: 26 public:
27 TestWebKitPlatformSupport(); 27 TestWebKitPlatformSupport();
28 virtual ~TestWebKitPlatformSupport(); 28 virtual ~TestWebKitPlatformSupport();
29 29
30 virtual WebKit::WebMimeRegistry* mimeRegistry(); 30 virtual WebKit::WebMimeRegistry* mimeRegistry();
31 virtual WebKit::WebClipboard* clipboard(); 31 virtual WebKit::WebClipboard* clipboard();
32 virtual WebKit::WebFileUtilities* fileUtilities(); 32 virtual WebKit::WebFileUtilities* fileUtilities();
33 virtual WebKit::WebIDBFactory* idbFactory(); 33 virtual WebKit::WebIDBFactory* idbFactory();
34 34
35 virtual WebKit::WebURLLoader* createURLLoader(); 35 virtual WebKit::WebURLLoader* createURLLoader();
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual void unregisterAllMockedURLs(); 89 virtual void unregisterAllMockedURLs();
90 virtual void serveAsynchronousMockedRequests(); 90 virtual void serveAsynchronousMockedRequests();
91 virtual WebKit::WebString webKitRootDir(); 91 virtual WebKit::WebString webKitRootDir();
92 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting(); 92 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting();
93 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting( 93 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting(
94 TestViewType type); 94 TestViewType type);
95 virtual WebKit::WebData readFromFile(const WebKit::WebString& path); 95 virtual WebKit::WebData readFromFile(const WebKit::WebString& path);
96 96
97 private: 97 private:
98 webkit_glue::SimpleWebMimeRegistryImpl mime_registry_; 98 webkit_glue::SimpleWebMimeRegistryImpl mime_registry_;
99 MockWebClipboardImpl mock_clipboard_; 99 content::MockWebClipboardImpl mock_clipboard_;
100 webkit_glue::WebFileUtilitiesImpl file_utilities_; 100 webkit_glue::WebFileUtilitiesImpl file_utilities_;
101 base::ScopedTempDir file_system_root_; 101 base::ScopedTempDir file_system_root_;
102 WebURLLoaderMockFactory url_loader_factory_; 102 WebURLLoaderMockFactory url_loader_factory_;
103 webkit::WebCompositorSupportImpl compositor_support_; 103 webkit::WebCompositorSupportImpl compositor_support_;
104 104
105 #if defined(OS_WIN) || defined(OS_MACOSX) 105 #if defined(OS_WIN) || defined(OS_MACOSX)
106 WebKit::WebThemeEngine* active_theme_engine_; 106 WebKit::WebThemeEngine* active_theme_engine_;
107 #endif 107 #endif
108 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 108 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
109 }; 109 };
110 110
111 #endif // CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 111 #endif // CONTENT_TEST_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/test/mock_webclipboard_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698