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

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

Issue 595943002: WebTestInterfaces class to chromium c++ style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolved comments Created 6 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
Index: content/shell/renderer/test_runner/web_test_interfaces.h
diff --git a/content/shell/renderer/test_runner/web_test_interfaces.h b/content/shell/renderer/test_runner/web_test_interfaces.h
new file mode 100644
index 0000000000000000000000000000000000000000..75cbc7a47e96dfbbeeb71404db19ca077acc5961
--- /dev/null
+++ b/content/shell/renderer/test_runner/web_test_interfaces.h
@@ -0,0 +1,67 @@
+// 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_INTERFACES_H_
+#define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_INTERFACES_H_
+
+#include "base/memory/scoped_ptr.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 content {
+
+class TestInterfaces;
+class WebTestDelegate;
+class WebTestProxyBase;
+class WebTestRunner;
+
+class WebTestInterfaces {
+ public:
+ WebTestInterfaces();
+ ~WebTestInterfaces();
+
+ void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy);
+ void SetDelegate(WebTestDelegate* delegate);
+ void BindTo(blink::WebFrame* frame);
+ void ResetAll();
+ void SetTestIsRunning(bool running);
+ void ConfigureForTestWithURL(const blink::WebURL& test_url,
+ bool generate_pixels);
+
+ WebTestRunner* TestRunner();
+ blink::WebThemeEngine* ThemeEngine();
+
+ blink::WebMediaStreamCenter* CreateMediaStreamCenter(
+ blink::WebMediaStreamCenterClient* client);
+ blink::WebRTCPeerConnectionHandler* CreateWebRTCPeerConnectionHandler(
+ blink::WebRTCPeerConnectionHandlerClient* client);
+
+ blink::WebMIDIAccessor* CreateMIDIAccessor(
+ blink::WebMIDIAccessorClient* client);
+
+ blink::WebAudioDevice* CreateAudioDevice(double sample_rate);
+
+ TestInterfaces* GetTestInterfaces();
+
+ private:
+ scoped_ptr<TestInterfaces> interfaces_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces);
+};
+
+} // namespace content
+
+#endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_INTERFACES_H_
« no previous file with comments | « content/shell/renderer/test_runner/WebTestInterfaces.cpp ('k') | content/shell/renderer/test_runner/web_test_interfaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698