| 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/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "components/test_runner/test_runner_export.h" | 10 #include "components/test_runner/test_runner_export.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 class WebAppBannerClient; | 13 class WebAppBannerClient; |
| 14 class WebAudioDevice; | 14 class WebAudioDevice; |
| 15 class WebFrame; | 15 class WebFrame; |
| 16 class WebFrameClient; |
| 16 class WebMediaStreamCenter; | 17 class WebMediaStreamCenter; |
| 17 class WebMediaStreamCenterClient; | 18 class WebMediaStreamCenterClient; |
| 18 class WebMIDIAccessor; | 19 class WebMIDIAccessor; |
| 19 class WebMIDIAccessorClient; | 20 class WebMIDIAccessorClient; |
| 20 class WebRTCPeerConnectionHandler; | 21 class WebRTCPeerConnectionHandler; |
| 21 class WebRTCPeerConnectionHandlerClient; | 22 class WebRTCPeerConnectionHandlerClient; |
| 22 class WebThemeEngine; | 23 class WebThemeEngine; |
| 23 class WebURL; | 24 class WebURL; |
| 24 class WebView; | 25 class WebView; |
| 25 } | 26 } |
| 26 | 27 |
| 27 namespace test_runner { | 28 namespace test_runner { |
| 28 | 29 |
| 29 class AppBannerClient; | 30 class AppBannerClient; |
| 30 class TestInterfaces; | 31 class TestInterfaces; |
| 32 class WebFrameTestClient; |
| 31 class WebTestDelegate; | 33 class WebTestDelegate; |
| 32 class WebTestProxyBase; | 34 class WebTestProxyBase; |
| 33 class WebTestRunner; | 35 class WebTestRunner; |
| 34 | 36 |
| 35 class TEST_RUNNER_EXPORT WebTestInterfaces { | 37 class TEST_RUNNER_EXPORT WebTestInterfaces { |
| 36 public: | 38 public: |
| 37 WebTestInterfaces(); | 39 WebTestInterfaces(); |
| 38 ~WebTestInterfaces(); | 40 ~WebTestInterfaces(); |
| 39 | 41 |
| 40 void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy); | 42 void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 57 blink::WebMIDIAccessor* CreateMIDIAccessor( | 59 blink::WebMIDIAccessor* CreateMIDIAccessor( |
| 58 blink::WebMIDIAccessorClient* client); | 60 blink::WebMIDIAccessorClient* client); |
| 59 | 61 |
| 60 blink::WebAudioDevice* CreateAudioDevice(double sample_rate); | 62 blink::WebAudioDevice* CreateAudioDevice(double sample_rate); |
| 61 | 63 |
| 62 scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient(); | 64 scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient(); |
| 63 AppBannerClient* GetAppBannerClient(); | 65 AppBannerClient* GetAppBannerClient(); |
| 64 | 66 |
| 65 TestInterfaces* GetTestInterfaces(); | 67 TestInterfaces* GetTestInterfaces(); |
| 66 | 68 |
| 69 // Gets a borrowed pointer to a WebFrameClient implementation providing |
| 70 // test behavior (i.e. forwarding javascript console output to the test |
| 71 // harness). The caller should guarantee that the returned pointer |
| 72 // won't be used beyond the lifetime of WebTestInterfaces. |
| 73 blink::WebFrameClient* GetWebFrameTestClient(); |
| 74 |
| 67 private: | 75 private: |
| 68 scoped_ptr<TestInterfaces> interfaces_; | 76 scoped_ptr<TestInterfaces> interfaces_; |
| 77 scoped_ptr<WebFrameTestClient> web_frame_test_client_; |
| 69 | 78 |
| 70 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces); | 79 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces); |
| 71 }; | 80 }; |
| 72 | 81 |
| 73 } // namespace test_runner | 82 } // namespace test_runner |
| 74 | 83 |
| 75 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ | 84 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ |
| OLD | NEW |