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 COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ |
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "components/test_runner/test_runner_export.h" |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 class WebAppBannerClient; | 12 class WebAppBannerClient; |
12 class WebAudioDevice; | 13 class WebAudioDevice; |
13 class WebFrame; | 14 class WebFrame; |
14 class WebMediaStreamCenter; | 15 class WebMediaStreamCenter; |
15 class WebMediaStreamCenterClient; | 16 class WebMediaStreamCenterClient; |
16 class WebMIDIAccessor; | 17 class WebMIDIAccessor; |
17 class WebMIDIAccessorClient; | 18 class WebMIDIAccessorClient; |
18 class WebRTCPeerConnectionHandler; | 19 class WebRTCPeerConnectionHandler; |
19 class WebRTCPeerConnectionHandlerClient; | 20 class WebRTCPeerConnectionHandlerClient; |
20 class WebThemeEngine; | 21 class WebThemeEngine; |
21 class WebURL; | 22 class WebURL; |
22 class WebView; | 23 class WebView; |
23 } | 24 } |
24 | 25 |
25 namespace test_runner { | 26 namespace test_runner { |
26 | 27 |
| 28 class AppBannerClient; |
27 class TestInterfaces; | 29 class TestInterfaces; |
28 class WebTestDelegate; | 30 class WebTestDelegate; |
29 class WebTestProxyBase; | 31 class WebTestProxyBase; |
30 class WebTestRunner; | 32 class WebTestRunner; |
31 | 33 |
32 class WebTestInterfaces { | 34 class TEST_RUNNER_EXPORT WebTestInterfaces { |
33 public: | 35 public: |
34 WebTestInterfaces(); | 36 WebTestInterfaces(); |
35 ~WebTestInterfaces(); | 37 ~WebTestInterfaces(); |
36 | 38 |
37 void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy); | 39 void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy); |
38 void SetDelegate(WebTestDelegate* delegate); | 40 void SetDelegate(WebTestDelegate* delegate); |
39 void BindTo(blink::WebFrame* frame); | 41 void BindTo(blink::WebFrame* frame); |
40 void ResetAll(); | 42 void ResetAll(); |
41 void SetTestIsRunning(bool running); | 43 void SetTestIsRunning(bool running); |
42 void ConfigureForTestWithURL(const blink::WebURL& test_url, | 44 void ConfigureForTestWithURL(const blink::WebURL& test_url, |
43 bool generate_pixels); | 45 bool generate_pixels); |
44 | 46 |
45 WebTestRunner* TestRunner(); | 47 WebTestRunner* TestRunner(); |
46 blink::WebThemeEngine* ThemeEngine(); | 48 blink::WebThemeEngine* ThemeEngine(); |
47 | 49 |
48 blink::WebMediaStreamCenter* CreateMediaStreamCenter( | 50 blink::WebMediaStreamCenter* CreateMediaStreamCenter( |
49 blink::WebMediaStreamCenterClient* client); | 51 blink::WebMediaStreamCenterClient* client); |
50 blink::WebRTCPeerConnectionHandler* CreateWebRTCPeerConnectionHandler( | 52 blink::WebRTCPeerConnectionHandler* CreateWebRTCPeerConnectionHandler( |
51 blink::WebRTCPeerConnectionHandlerClient* client); | 53 blink::WebRTCPeerConnectionHandlerClient* client); |
52 | 54 |
53 blink::WebMIDIAccessor* CreateMIDIAccessor( | 55 blink::WebMIDIAccessor* CreateMIDIAccessor( |
54 blink::WebMIDIAccessorClient* client); | 56 blink::WebMIDIAccessorClient* client); |
55 | 57 |
56 blink::WebAudioDevice* CreateAudioDevice(double sample_rate); | 58 blink::WebAudioDevice* CreateAudioDevice(double sample_rate); |
57 | 59 |
58 scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient(); | 60 scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient(); |
| 61 AppBannerClient* GetAppBannerClient(); |
59 | 62 |
60 TestInterfaces* GetTestInterfaces(); | 63 TestInterfaces* GetTestInterfaces(); |
61 | 64 |
62 private: | 65 private: |
63 scoped_ptr<TestInterfaces> interfaces_; | 66 scoped_ptr<TestInterfaces> interfaces_; |
64 | 67 |
65 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces); | 68 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces); |
66 }; | 69 }; |
67 | 70 |
68 } // namespace test_runner | 71 } // namespace test_runner |
69 | 72 |
70 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ | 73 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ |
OLD | NEW |