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
;
25 class WebTestProxyBase
;
28 namespace WebTestRunner
{
31 class WebTestDelegate
;
34 class WebTestInterfaces
{
39 void setWebView(blink::WebView
*, content::WebTestProxyBase
*);
40 void setDelegate(WebTestDelegate
*);
41 void bindTo(blink::WebFrame
*);
43 void setTestIsRunning(bool);
44 void configureForTestWithURL(const blink::WebURL
&, bool generatePixels
);
46 WebTestRunner
* testRunner();
47 blink::WebThemeEngine
* themeEngine();
49 blink::WebMediaStreamCenter
* createMediaStreamCenter(blink::WebMediaStreamCenterClient
*);
50 blink::WebRTCPeerConnectionHandler
* createWebRTCPeerConnectionHandler(blink::WebRTCPeerConnectionHandlerClient
*);
52 blink::WebMIDIAccessor
* createMIDIAccessor(blink::WebMIDIAccessorClient
*);
54 blink::WebAudioDevice
* createAudioDevice(double sampleRate
);
56 TestInterfaces
* testInterfaces();
59 scoped_ptr
<TestInterfaces
> m_interfaces
;
64 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_