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

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

Issue 22738002: Implement UnitTestSupport::readFromFile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | 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/WebGraphicsContext3D.h" 10 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual void registerMockedErrorURL(const WebKit::WebURL& url, 99 virtual void registerMockedErrorURL(const WebKit::WebURL& url,
100 const WebKit::WebURLResponse& response, 100 const WebKit::WebURLResponse& response,
101 const WebKit::WebURLError& error); 101 const WebKit::WebURLError& error);
102 virtual void unregisterMockedURL(const WebKit::WebURL& url); 102 virtual void unregisterMockedURL(const WebKit::WebURL& url);
103 virtual void unregisterAllMockedURLs(); 103 virtual void unregisterAllMockedURLs();
104 virtual void serveAsynchronousMockedRequests(); 104 virtual void serveAsynchronousMockedRequests();
105 virtual WebKit::WebString webKitRootDir(); 105 virtual WebKit::WebString webKitRootDir();
106 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting(); 106 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting();
107 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting( 107 virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting(
108 TestViewType type); 108 TestViewType type);
109 virtual WebKit::WebData readFromFile(const WebKit::WebString& path);
109 110
110 private: 111 private:
111 webkit_glue::SimpleWebMimeRegistryImpl mime_registry_; 112 webkit_glue::SimpleWebMimeRegistryImpl mime_registry_;
112 MockWebClipboardImpl mock_clipboard_; 113 MockWebClipboardImpl mock_clipboard_;
113 webkit_glue::WebFileUtilitiesImpl file_utilities_; 114 webkit_glue::WebFileUtilitiesImpl file_utilities_;
114 base::ScopedTempDir file_system_root_; 115 base::ScopedTempDir file_system_root_;
115 WebURLLoaderMockFactory url_loader_factory_; 116 WebURLLoaderMockFactory url_loader_factory_;
116 webkit::WebCompositorSupportImpl compositor_support_; 117 webkit::WebCompositorSupportImpl compositor_support_;
117 118
118 scoped_refptr<cc::ContextProvider> main_thread_contexts_; 119 scoped_refptr<cc::ContextProvider> main_thread_contexts_;
119 120
120 #if defined(OS_WIN) || defined(OS_MACOSX) 121 #if defined(OS_WIN) || defined(OS_MACOSX)
121 WebKit::WebThemeEngine* active_theme_engine_; 122 WebKit::WebThemeEngine* active_theme_engine_;
122 #endif 123 #endif
123 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 124 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
124 }; 125 };
125 126
126 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 127 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698