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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 class WebRTCMockRenderProcess; | 25 class WebRTCMockRenderProcess; |
26 | 26 |
27 namespace base { | 27 namespace base { |
28 namespace win { | 28 namespace win { |
29 class ScopedCOMInitializer; | 29 class ScopedCOMInitializer; |
30 } | 30 } |
31 } | 31 } |
32 | 32 |
33 namespace content { | 33 namespace content { |
34 class ContentRendererClient; | 34 class ContentRendererClient; |
| 35 class MockResourceContext; |
35 class ResourceContext; | 36 class ResourceContext; |
36 class TestBrowserThread; | 37 class TestBrowserThread; |
37 } | 38 } |
38 | 39 |
39 namespace media_stream { | 40 namespace media_stream { |
40 class MediaStreamManager; | 41 class MediaStreamManager; |
41 } | 42 } |
42 | 43 |
43 namespace net { | 44 namespace net { |
44 class URLRequestContext; | 45 class URLRequestContext; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 std::string GetTestDataPath(const FilePath::StringType& file_name); | 157 std::string GetTestDataPath(const FilePath::StringType& file_name); |
157 | 158 |
158 scoped_ptr<ReplaceContentClientRenderer> saved_content_renderer_; | 159 scoped_ptr<ReplaceContentClientRenderer> saved_content_renderer_; |
159 MessageLoopForUI message_loop_; | 160 MessageLoopForUI message_loop_; |
160 content::MockContentRendererClient mock_content_renderer_client_; | 161 content::MockContentRendererClient mock_content_renderer_client_; |
161 RenderThreadImpl* render_thread_; // Owned by mock_process_. | 162 RenderThreadImpl* render_thread_; // Owned by mock_process_. |
162 scoped_ptr<WebRTCMockRenderProcess> mock_process_; | 163 scoped_ptr<WebRTCMockRenderProcess> mock_process_; |
163 scoped_ptr<MockMediaObserver> media_observer_; | 164 scoped_ptr<MockMediaObserver> media_observer_; |
164 scoped_ptr<media_stream::MediaStreamManager> media_stream_manager_; | 165 scoped_ptr<media_stream::MediaStreamManager> media_stream_manager_; |
165 scoped_refptr<AudioManager> audio_manager_; | 166 scoped_refptr<AudioManager> audio_manager_; |
166 scoped_ptr<content::ResourceContext> resource_context_; | 167 scoped_ptr<content::MockResourceContext> resource_context_; |
167 scoped_refptr<net::URLRequestContext> test_request_context_; | 168 scoped_refptr<net::URLRequestContext> test_request_context_; |
168 scoped_ptr<IPC::Channel> channel_; | 169 scoped_ptr<IPC::Channel> channel_; |
169 scoped_refptr<AudioRendererHost> audio_render_host_; | 170 scoped_refptr<AudioRendererHost> audio_render_host_; |
170 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; | 171 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; |
171 | 172 |
172 AudioUtilInterface* audio_util_callback_; // Weak reference. | 173 AudioUtilInterface* audio_util_callback_; // Weak reference. |
173 | 174 |
174 // Initialized on the main test thread that we mark as the UI thread. | 175 // Initialized on the main test thread that we mark as the UI thread. |
175 scoped_ptr<content::TestBrowserThread> ui_thread_; | 176 scoped_ptr<content::TestBrowserThread> ui_thread_; |
176 // Initialized on our IO thread to satisfy BrowserThread::IO checks. | 177 // Initialized on our IO thread to satisfy BrowserThread::IO checks. |
(...skipping 11 matching lines...) Expand all Loading... |
188 virtual ~WebRTCTransportImpl(); | 189 virtual ~WebRTCTransportImpl(); |
189 | 190 |
190 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; | 191 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; |
191 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; | 192 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; |
192 | 193 |
193 private: | 194 private: |
194 webrtc::VoENetwork* network_; | 195 webrtc::VoENetwork* network_; |
195 }; | 196 }; |
196 | 197 |
197 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ | 198 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ |
OLD | NEW |