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

Unified Diff: content/shell/renderer/test_runner/WebTestInterfaces.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/WebTestInterfaces.h
diff --git a/content/shell/renderer/test_runner/WebTestInterfaces.h b/content/shell/renderer/test_runner/WebTestInterfaces.h
new file mode 100644
index 0000000000000000000000000000000000000000..cd59fd0933200ec84c4a6b736504955a892c03aa
--- /dev/null
+++ b/content/shell/renderer/test_runner/WebTestInterfaces.h
@@ -0,0 +1,61 @@
+// 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 WebTestInterfaces_h
+#define WebTestInterfaces_h
+
+#include "content/shell/renderer/test_runner/WebScopedPtr.h"
+
+namespace blink {
+class WebAudioDevice;
+class WebFrame;
+class WebMediaStreamCenter;
+class WebMediaStreamCenterClient;
+class WebMIDIAccessor;
+class WebMIDIAccessorClient;
+class WebRTCPeerConnectionHandler;
+class WebRTCPeerConnectionHandlerClient;
+class WebThemeEngine;
+class WebURL;
+class WebView;
+}
+
+namespace WebTestRunner {
+
+class TestInterfaces;
+class WebTestDelegate;
+class WebTestProxyBase;
+class WebTestRunner;
+
+class WebTestInterfaces {
+public:
+ WebTestInterfaces();
+ ~WebTestInterfaces();
+
+ void setWebView(blink::WebView*, WebTestProxyBase*);
+ void setDelegate(WebTestDelegate*);
+ void bindTo(blink::WebFrame*);
+ void resetAll();
+ void setTestIsRunning(bool);
+ void configureForTestWithURL(const blink::WebURL&, bool generatePixels);
+
+ WebTestRunner* testRunner();
+ blink::WebThemeEngine* themeEngine();
+
+ blink::WebMediaStreamCenter* createMediaStreamCenter(blink::WebMediaStreamCenterClient*);
+ blink::WebRTCPeerConnectionHandler* createWebRTCPeerConnectionHandler(blink::WebRTCPeerConnectionHandlerClient*);
+
+ blink::WebMIDIAccessor* createMIDIAccessor(blink::WebMIDIAccessorClient*);
+
+ blink::WebAudioDevice* createAudioDevice(double sampleRate);
+
+ TestInterfaces* testInterfaces();
+
+private:
+ WebScopedPtr<TestInterfaces> m_interfaces;
+};
+
+}
+
+#endif // WebTestInterfaces_h
« no previous file with comments | « content/shell/renderer/test_runner/WebTestDelegate.h ('k') | content/shell/renderer/test_runner/WebTestInterfaces.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698