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

Unified Diff: content/shell/renderer/test_runner/TestInterfaces.h

Issue 110533009: Import TestRunner library into chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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
Index: content/shell/renderer/test_runner/TestInterfaces.h
diff --git a/content/shell/renderer/test_runner/TestInterfaces.h b/content/shell/renderer/test_runner/TestInterfaces.h
new file mode 100644
index 0000000000000000000000000000000000000000..fccdc1cc00979a143287aeb8c5d7801876df8e6a
--- /dev/null
+++ b/content/shell/renderer/test_runner/TestInterfaces.h
@@ -0,0 +1,83 @@
+// Copyright 2013 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 TestInterfaces_h
+#define TestInterfaces_h
+
+#include <vector>
+
+#include "content/shell/renderer/test_runner/WebScopedPtr.h"
+#include "third_party/WebKit/public/platform/WebNonCopyable.h"
+
+#if defined(USE_DEFAULT_RENDER_THEME)
+#include "content/shell/renderer/test_runner/WebTestThemeEngineMock.h"
+#elif defined(WIN32)
+#include "content/shell/renderer/test_runner/WebTestThemeEngineWin.h"
+#elif defined(__APPLE__)
+#include "content/shell/renderer/test_runner/WebTestThemeEngineMac.h"
+#endif
+
+namespace blink {
+class WebFrame;
+class WebThemeEngine;
+class WebURL;
+class WebView;
+}
+
+namespace WebTestRunner {
+
+class AccessibilityController;
+class EventSender;
+class GamepadController;
+class TestRunner;
+class TextInputController;
+class WebTestDelegate;
+class WebTestProxyBase;
+
+class TestInterfaces : public blink::WebNonCopyable {
+public:
+ TestInterfaces();
+ ~TestInterfaces();
+
+ void setWebView(blink::WebView*, WebTestProxyBase*);
+ void setDelegate(WebTestDelegate*);
+ void bindTo(blink::WebFrame*);
+ void resetTestHelperControllers();
+ void resetAll();
+ void setTestIsRunning(bool);
+ void configureForTestWithURL(const blink::WebURL&, bool generatePixels);
+
+ void windowOpened(WebTestProxyBase*);
+ void windowClosed(WebTestProxyBase*);
+
+ AccessibilityController* accessibilityController();
+ EventSender* eventSender();
+ TestRunner* testRunner();
+ WebTestDelegate* delegate();
+ WebTestProxyBase* proxy();
+ const std::vector<WebTestProxyBase*>& windowList();
+ blink::WebThemeEngine* themeEngine();
+
+private:
+ WebScopedPtr<AccessibilityController> m_accessibilityController;
+ WebScopedPtr<EventSender> m_eventSender;
+ WebScopedPtr<GamepadController> m_gamepadController;
+ WebScopedPtr<TextInputController> m_textInputController;
+ WebScopedPtr<TestRunner> m_testRunner;
+ WebTestDelegate* m_delegate;
+ WebTestProxyBase* m_proxy;
+
+ std::vector<WebTestProxyBase*> m_windowList;
+#if defined(USE_DEFAULT_RENDER_THEME)
+ WebScopedPtr<WebTestThemeEngineMock> m_themeEngine;
+#elif defined(WIN32)
+ WebScopedPtr<WebTestThemeEngineWin> m_themeEngine;
+#elif defined(__APPLE__)
+ WebScopedPtr<WebTestThemeEngineMac> m_themeEngine;
+#endif
+};
+
+}
+
+#endif // TestInterfaces_h
« no previous file with comments | « content/shell/renderer/test_runner/TestCommon.cpp ('k') | content/shell/renderer/test_runner/TestInterfaces.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698