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