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/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 namespace base { | 38 namespace base { |
39 namespace win { | 39 namespace win { |
40 class ScopedCOMInitializer; | 40 class ScopedCOMInitializer; |
41 } | 41 } |
42 } | 42 } |
43 #endif | 43 #endif |
44 | 44 |
45 namespace content { | 45 namespace content { |
46 | 46 |
47 class AudioInputRendererHost; | 47 class AudioInputRendererHost; |
| 48 class AudioMirroringManager; |
48 class AudioRendererHost; | 49 class AudioRendererHost; |
49 class ContentRendererClient; | 50 class ContentRendererClient; |
50 class MediaStreamManager; | 51 class MediaStreamManager; |
51 class MockResourceContext; | 52 class MockResourceContext; |
52 class RenderThreadImpl; | 53 class RenderThreadImpl; |
53 class ResourceContext; | 54 class ResourceContext; |
54 class TestBrowserThread; | 55 class TestBrowserThread; |
55 class WebRTCMockRenderProcess; | 56 class WebRTCMockRenderProcess; |
56 | 57 |
57 // Scoped class for WebRTC interfaces. Fetches the wrapped interface | 58 // Scoped class for WebRTC interfaces. Fetches the wrapped interface |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 std::string GetTestDataPath(const FilePath::StringType& file_name); | 163 std::string GetTestDataPath(const FilePath::StringType& file_name); |
163 | 164 |
164 scoped_ptr<ReplaceContentClientRenderer> saved_content_renderer_; | 165 scoped_ptr<ReplaceContentClientRenderer> saved_content_renderer_; |
165 MessageLoopForUI message_loop_; | 166 MessageLoopForUI message_loop_; |
166 ContentRendererClient content_renderer_client_; | 167 ContentRendererClient content_renderer_client_; |
167 RenderThreadImpl* render_thread_; // Owned by mock_process_. | 168 RenderThreadImpl* render_thread_; // Owned by mock_process_. |
168 scoped_ptr<WebRTCMockRenderProcess> mock_process_; | 169 scoped_ptr<WebRTCMockRenderProcess> mock_process_; |
169 scoped_ptr<MockMediaObserver> media_observer_; | 170 scoped_ptr<MockMediaObserver> media_observer_; |
170 scoped_ptr<MediaStreamManager> media_stream_manager_; | 171 scoped_ptr<MediaStreamManager> media_stream_manager_; |
171 scoped_ptr<media::AudioManager> audio_manager_; | 172 scoped_ptr<media::AudioManager> audio_manager_; |
| 173 scoped_ptr<AudioMirroringManager> mirroring_manager_; |
172 scoped_ptr<net::URLRequestContext> test_request_context_; | 174 scoped_ptr<net::URLRequestContext> test_request_context_; |
173 scoped_ptr<ResourceContext> resource_context_; | 175 scoped_ptr<ResourceContext> resource_context_; |
174 scoped_ptr<IPC::Channel> channel_; | 176 scoped_ptr<IPC::Channel> channel_; |
175 scoped_refptr<AudioRendererHost> audio_render_host_; | 177 scoped_refptr<AudioRendererHost> audio_render_host_; |
176 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; | 178 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; |
177 | 179 |
178 AudioUtilInterface* audio_util_callback_; // Weak reference. | 180 AudioUtilInterface* audio_util_callback_; // Weak reference. |
179 | 181 |
180 // 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. |
181 scoped_ptr<TestBrowserThread> ui_thread_; | 183 scoped_ptr<TestBrowserThread> ui_thread_; |
(...skipping 25 matching lines...) Expand all Loading... |
207 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; | 209 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; |
208 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; | 210 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; |
209 | 211 |
210 private: | 212 private: |
211 webrtc::VoENetwork* network_; | 213 webrtc::VoENetwork* network_; |
212 }; | 214 }; |
213 | 215 |
214 } // namespace content | 216 } // namespace content |
215 | 217 |
216 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ | 218 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ |
OLD | NEW |