1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_
8 #include "base/memory/scoped_ptr.h"
13 class WebMediaStreamCenter;
14 class WebMediaStreamCenterClient;
15 class WebMIDIAccessor;
16 class WebMIDIAccessorClient;
17 class WebRTCPeerConnectionHandler;
18 class WebRTCPeerConnectionHandlerClient;
27 class WebTestDelegate;
28 class WebTestProxyBase;
31 class WebTestInterfaces {
36 void setWebView(blink::WebView*, WebTestProxyBase*);
37 void setDelegate(WebTestDelegate*);
38 void bindTo(blink::WebFrame*);
40 void setTestIsRunning(bool);
41 void configureForTestWithURL(const blink::WebURL&, bool generatePixels);
43 WebTestRunner* testRunner();
44 blink::WebThemeEngine* themeEngine();
46 blink::WebMediaStreamCenter* createMediaStreamCenter(blink::WebMediaStreamCenterClient*);
47 blink::WebRTCPeerConnectionHandler* createWebRTCPeerConnectionHandler(blink::WebRTCPeerConnectionHandlerClient*);
49 blink::WebMIDIAccessor* createMIDIAccessor(blink::WebMIDIAccessorClient*);
51 blink::WebAudioDevice* createAudioDevice(double sampleRate);
53 TestInterfaces* testInterfaces();
56 scoped_ptr<TestInterfaces> m_interfaces;
59 } // namespace content
61 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_