| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ | 5 #ifndef CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ |
| 6 #define CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ | 6 #define CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #if defined(OS_WIN) | 38 #if defined(OS_WIN) |
| 39 namespace base { | 39 namespace base { |
| 40 namespace win { | 40 namespace win { |
| 41 class ScopedCOMInitializer; | 41 class ScopedCOMInitializer; |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 #endif | 44 #endif |
| 45 | 45 |
| 46 namespace content { | 46 namespace content { |
| 47 | 47 |
| 48 class AudioInputRendererHost; | |
| 49 class AudioMirroringManager; | 48 class AudioMirroringManager; |
| 50 class AudioRendererHost; | |
| 51 class ContentRendererClient; | 49 class ContentRendererClient; |
| 52 class MediaStreamManager; | 50 class MediaStreamManager; |
| 53 class RenderThreadImpl; | 51 class RenderThreadImpl; |
| 54 class ResourceContext; | 52 class ResourceContext; |
| 53 class TestAudioInputRendererHost; |
| 54 class TestAudioRendererHost; |
| 55 class TestBrowserThread; | 55 class TestBrowserThread; |
| 56 class WebRtcAudioRenderer; | 56 class WebRtcAudioRenderer; |
| 57 class WebRTCMockRenderProcess; | 57 class WebRTCMockRenderProcess; |
| 58 | 58 |
| 59 // Scoped class for WebRTC interfaces. Fetches the wrapped interface | 59 // Scoped class for WebRTC interfaces. Fetches the wrapped interface |
| 60 // in the constructor via WebRTC's GetInterface mechanism and then releases | 60 // in the constructor via WebRTC's GetInterface mechanism and then releases |
| 61 // the reference in the destructor. | 61 // the reference in the destructor. |
| 62 template<typename T> | 62 template<typename T> |
| 63 class ScopedWebRTCPtr { | 63 class ScopedWebRTCPtr { |
| 64 public: | 64 public: |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 ContentRendererClient content_renderer_client_; | 167 ContentRendererClient content_renderer_client_; |
| 168 RenderThreadImpl* render_thread_; // Owned by mock_process_. | 168 RenderThreadImpl* render_thread_; // Owned by mock_process_. |
| 169 scoped_ptr<WebRTCMockRenderProcess> mock_process_; | 169 scoped_ptr<WebRTCMockRenderProcess> mock_process_; |
| 170 scoped_ptr<MockMediaInternals> media_internals_; | 170 scoped_ptr<MockMediaInternals> media_internals_; |
| 171 scoped_ptr<MediaStreamManager> media_stream_manager_; | 171 scoped_ptr<MediaStreamManager> media_stream_manager_; |
| 172 scoped_ptr<media::AudioManager> audio_manager_; | 172 scoped_ptr<media::AudioManager> audio_manager_; |
| 173 scoped_ptr<AudioMirroringManager> mirroring_manager_; | 173 scoped_ptr<AudioMirroringManager> mirroring_manager_; |
| 174 scoped_ptr<net::URLRequestContext> test_request_context_; | 174 scoped_ptr<net::URLRequestContext> test_request_context_; |
| 175 scoped_ptr<ResourceContext> resource_context_; | 175 scoped_ptr<ResourceContext> resource_context_; |
| 176 scoped_ptr<IPC::Channel> channel_; | 176 scoped_ptr<IPC::Channel> channel_; |
| 177 scoped_refptr<AudioRendererHost> audio_render_host_; | 177 scoped_refptr<TestAudioRendererHost> audio_render_host_; |
| 178 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; | 178 scoped_refptr<TestAudioInputRendererHost> audio_input_renderer_host_; |
| 179 | 179 |
| 180 media::AudioHardwareConfig* audio_hardware_config_; // Weak reference. | 180 media::AudioHardwareConfig* audio_hardware_config_; // Weak reference. |
| 181 | 181 |
| 182 // Initialized on the main test thread that we mark as the UI thread. | 182 // Initialized on the main test thread that we mark as the UI thread. |
| 183 scoped_ptr<TestBrowserThread> ui_thread_; | 183 scoped_ptr<TestBrowserThread> ui_thread_; |
| 184 // Initialized on our IO thread to satisfy BrowserThread::IO checks. | 184 // Initialized on our IO thread to satisfy BrowserThread::IO checks. |
| 185 scoped_ptr<TestBrowserThread> io_thread_; | 185 scoped_ptr<TestBrowserThread> io_thread_; |
| 186 | 186 |
| 187 #if defined(OS_WIN) | 187 #if defined(OS_WIN) |
| 188 // COM initialization on the IO thread. | 188 // COM initialization on the IO thread. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 209 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; | 209 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; |
| 210 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; | 210 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; |
| 211 | 211 |
| 212 private: | 212 private: |
| 213 webrtc::VoENetwork* network_; | 213 webrtc::VoENetwork* network_; |
| 214 }; | 214 }; |
| 215 | 215 |
| 216 } // namespace content | 216 } // namespace content |
| 217 | 217 |
| 218 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ | 218 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ |
| OLD | NEW |