OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 class WebAudioDevice; | 11 class WebAudioDevice; |
12 class WebFrame; | 12 class WebFrame; |
13 class WebMediaStreamCenter; | 13 class WebMediaStreamCenter; |
14 class WebMediaStreamCenterClient; | 14 class WebMediaStreamCenterClient; |
15 class WebMIDIAccessor; | 15 class WebMIDIAccessor; |
16 class WebMIDIAccessorClient; | 16 class WebMIDIAccessorClient; |
17 class WebRTCPeerConnectionHandler; | 17 class WebRTCPeerConnectionHandler; |
18 class WebRTCPeerConnectionHandlerClient; | 18 class WebRTCPeerConnectionHandlerClient; |
19 class WebThemeEngine; | 19 class WebThemeEngine; |
20 class WebURL; | 20 class WebURL; |
21 class WebView; | 21 class WebView; |
22 } | 22 } |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 class WebTestProxyBase; | |
26 } | |
27 | |
28 namespace WebTestRunner { | |
29 | 25 |
30 class TestInterfaces; | 26 class TestInterfaces; |
31 class WebTestDelegate; | 27 class WebTestDelegate; |
| 28 class WebTestProxyBase; |
32 class WebTestRunner; | 29 class WebTestRunner; |
33 | 30 |
34 class WebTestInterfaces { | 31 class WebTestInterfaces { |
35 public: | 32 public: |
36 WebTestInterfaces(); | 33 WebTestInterfaces(); |
37 ~WebTestInterfaces(); | 34 ~WebTestInterfaces(); |
38 | 35 |
39 void setWebView(blink::WebView*, content::WebTestProxyBase*); | 36 void setWebView(blink::WebView*, WebTestProxyBase*); |
40 void setDelegate(WebTestDelegate*); | 37 void setDelegate(WebTestDelegate*); |
41 void bindTo(blink::WebFrame*); | 38 void bindTo(blink::WebFrame*); |
42 void resetAll(); | 39 void resetAll(); |
43 void setTestIsRunning(bool); | 40 void setTestIsRunning(bool); |
44 void configureForTestWithURL(const blink::WebURL&, bool generatePixels); | 41 void configureForTestWithURL(const blink::WebURL&, bool generatePixels); |
45 | 42 |
46 WebTestRunner* testRunner(); | 43 WebTestRunner* testRunner(); |
47 blink::WebThemeEngine* themeEngine(); | 44 blink::WebThemeEngine* themeEngine(); |
48 | 45 |
49 blink::WebMediaStreamCenter* createMediaStreamCenter(blink::WebMediaStreamCe
nterClient*); | 46 blink::WebMediaStreamCenter* createMediaStreamCenter(blink::WebMediaStreamCe
nterClient*); |
50 blink::WebRTCPeerConnectionHandler* createWebRTCPeerConnectionHandler(blink:
:WebRTCPeerConnectionHandlerClient*); | 47 blink::WebRTCPeerConnectionHandler* createWebRTCPeerConnectionHandler(blink:
:WebRTCPeerConnectionHandlerClient*); |
51 | 48 |
52 blink::WebMIDIAccessor* createMIDIAccessor(blink::WebMIDIAccessorClient*); | 49 blink::WebMIDIAccessor* createMIDIAccessor(blink::WebMIDIAccessorClient*); |
53 | 50 |
54 blink::WebAudioDevice* createAudioDevice(double sampleRate); | 51 blink::WebAudioDevice* createAudioDevice(double sampleRate); |
55 | 52 |
56 TestInterfaces* testInterfaces(); | 53 TestInterfaces* testInterfaces(); |
57 | 54 |
58 private: | 55 private: |
59 scoped_ptr<TestInterfaces> m_interfaces; | 56 scoped_ptr<TestInterfaces> m_interfaces; |
60 }; | 57 }; |
61 | 58 |
62 } | 59 } // namespace content |
63 | 60 |
64 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_ | 61 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTINTERFACES_H_ |
OLD | NEW |