| 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" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 blink::WebMediaStreamCenterClient* client); | 56 blink::WebMediaStreamCenterClient* client); |
| 57 blink::WebRTCPeerConnectionHandler* CreateWebRTCPeerConnectionHandler( | 57 blink::WebRTCPeerConnectionHandler* CreateWebRTCPeerConnectionHandler( |
| 58 blink::WebRTCPeerConnectionHandlerClient* client); | 58 blink::WebRTCPeerConnectionHandlerClient* client); |
| 59 | 59 |
| 60 blink::WebMIDIAccessor* CreateMIDIAccessor( | 60 blink::WebMIDIAccessor* CreateMIDIAccessor( |
| 61 blink::WebMIDIAccessorClient* client); | 61 blink::WebMIDIAccessorClient* client); |
| 62 | 62 |
| 63 blink::WebAudioDevice* CreateAudioDevice(double sample_rate); | 63 blink::WebAudioDevice* CreateAudioDevice(double sample_rate); |
| 64 | 64 |
| 65 scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient(); | 65 scoped_ptr<blink::WebAppBannerClient> CreateAppBannerClient(); |
| 66 AppBannerClient* GetAppBannerClient(); | |
| 67 | 66 |
| 68 TestInterfaces* GetTestInterfaces(); | 67 TestInterfaces* GetTestInterfaces(); |
| 69 | 68 |
| 70 // Creates a WebFrameClient implementation providing test behavior (i.e. | 69 // Creates a WebFrameClient implementation providing test behavior (i.e. |
| 71 // forwarding javascript console output to the test harness). The caller | 70 // forwarding javascript console output to the test harness). The caller |
| 72 // should guarantee that the returned object won't be used beyond the lifetime | 71 // should guarantee that the returned object won't be used beyond the lifetime |
| 73 // of WebTestInterfaces. | 72 // of WebTestInterfaces. |
| 74 scoped_ptr<WebFrameTestClient> CreateWebFrameTestClient(); | 73 scoped_ptr<WebFrameTestClient> CreateWebFrameTestClient(); |
| 75 | 74 |
| 76 // Creates a WebViewClient implementation providing test behavior (i.e. | 75 // Creates a WebViewClient implementation providing test behavior (i.e. |
| 77 // providing a mocked speech recognizer). The caller should guarantee that | 76 // providing a mocked speech recognizer). The caller should guarantee that |
| 78 // the returned pointer won't be used beyond the lifetime of WebTestInterfaces | 77 // the returned pointer won't be used beyond the lifetime of WebTestInterfaces |
| 79 // and/or the lifetime of |web_test_proxy_base|. | 78 // and/or the lifetime of |web_test_proxy_base|. |
| 80 scoped_ptr<WebViewTestClient> CreateWebViewTestClient( | 79 scoped_ptr<WebViewTestClient> CreateWebViewTestClient( |
| 81 WebTestProxyBase* web_test_proxy_base); | 80 WebTestProxyBase* web_test_proxy_base); |
| 82 | 81 |
| 83 private: | 82 private: |
| 84 scoped_ptr<TestInterfaces> interfaces_; | 83 scoped_ptr<TestInterfaces> interfaces_; |
| 85 | 84 |
| 86 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces); | 85 DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces); |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 } // namespace test_runner | 88 } // namespace test_runner |
| 90 | 89 |
| 91 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ | 90 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_INTERFACES_H_ |
| OLD | NEW |