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

Unified Diff: webkit/support/test_webkit_platform_support.h

Issue 23526028: Move source files from webkit/support to content/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/support/mock_webclipboard_impl.cc ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/test_webkit_platform_support.h
diff --git a/webkit/support/test_webkit_platform_support.h b/webkit/support/test_webkit_platform_support.h
deleted file mode 100644
index 0a4e4cb43b560eb4a21628f7db2550c1474e61c6..0000000000000000000000000000000000000000
--- a/webkit/support/test_webkit_platform_support.h
+++ /dev/null
@@ -1,111 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
-#define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
-
-#include "base/compiler_specific.h"
-#include "base/files/scoped_temp_dir.h"
-#include "third_party/WebKit/public/platform/WebUnitTestSupport.h"
-#include "webkit/child/webkitplatformsupport_child_impl.h"
-#include "webkit/glue/simple_webmimeregistry_impl.h"
-#include "webkit/glue/webfileutilities_impl.h"
-#include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h"
-#include "webkit/support/mock_webclipboard_impl.h"
-#include "webkit/support/weburl_loader_mock_factory.h"
-
-namespace WebKit {
-class WebLayerTreeView;
-}
-
-// An implementation of WebKitPlatformSupport for tests.
-class TestWebKitPlatformSupport :
- public WebKit::WebUnitTestSupport,
- public webkit_glue::WebKitPlatformSupportChildImpl {
- public:
- TestWebKitPlatformSupport();
- virtual ~TestWebKitPlatformSupport();
-
- virtual WebKit::WebMimeRegistry* mimeRegistry();
- virtual WebKit::WebClipboard* clipboard();
- virtual WebKit::WebFileUtilities* fileUtilities();
- virtual WebKit::WebIDBFactory* idbFactory();
-
- virtual WebKit::WebURLLoader* createURLLoader();
- virtual WebKit::WebData loadResource(const char* name);
- virtual WebKit::WebString queryLocalizedString(
- WebKit::WebLocalizedString::Name name);
- virtual WebKit::WebString queryLocalizedString(
- WebKit::WebLocalizedString::Name name,
- const WebKit::WebString& value);
- virtual WebKit::WebString queryLocalizedString(
- WebKit::WebLocalizedString::Name name,
- const WebKit::WebString& value1,
- const WebKit::WebString& value2);
- virtual WebKit::WebString defaultLocale();
-
-#if defined(OS_WIN) || defined(OS_MACOSX)
- void SetThemeEngine(WebKit::WebThemeEngine* engine);
- virtual WebKit::WebThemeEngine *themeEngine();
-#endif
-
- virtual WebKit::WebCompositorSupport* compositorSupport();
-
- WebURLLoaderMockFactory* url_loader_factory() {
- return &url_loader_factory_;
- }
-
- const base::FilePath& file_system_root() const {
- return file_system_root_.path();
- }
-
- virtual base::string16 GetLocalizedString(int message_id) OVERRIDE;
- virtual base::StringPiece GetDataResource(
- int resource_id,
- ui::ScaleFactor scale_factor) OVERRIDE;
- virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader(
- const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
- OVERRIDE;
- virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge(
- WebKit::WebSocketStreamHandle* handle,
- webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE;
-
- virtual WebKit::WebGestureCurve* createFlingAnimationCurve(
- int device_source,
- const WebKit::WebFloatPoint& velocity,
- const WebKit::WebSize& cumulative_scroll);
-
- virtual WebKit::WebUnitTestSupport* unitTestSupport();
-
- // WebUnitTestSupport implementation
- virtual void registerMockedURL(const WebKit::WebURL& url,
- const WebKit::WebURLResponse& response,
- const WebKit::WebString& filePath);
- virtual void registerMockedErrorURL(const WebKit::WebURL& url,
- const WebKit::WebURLResponse& response,
- const WebKit::WebURLError& error);
- virtual void unregisterMockedURL(const WebKit::WebURL& url);
- virtual void unregisterAllMockedURLs();
- virtual void serveAsynchronousMockedRequests();
- virtual WebKit::WebString webKitRootDir();
- virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting();
- virtual WebKit::WebLayerTreeView* createLayerTreeViewForTesting(
- TestViewType type);
- virtual WebKit::WebData readFromFile(const WebKit::WebString& path);
-
- private:
- webkit_glue::SimpleWebMimeRegistryImpl mime_registry_;
- MockWebClipboardImpl mock_clipboard_;
- webkit_glue::WebFileUtilitiesImpl file_utilities_;
- base::ScopedTempDir file_system_root_;
- WebURLLoaderMockFactory url_loader_factory_;
- webkit::WebCompositorSupportImpl compositor_support_;
-
-#if defined(OS_WIN) || defined(OS_MACOSX)
- WebKit::WebThemeEngine* active_theme_engine_;
-#endif
- DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
-};
-
-#endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
« no previous file with comments | « webkit/support/mock_webclipboard_impl.cc ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698