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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 152 |
153 // Convenience getter for gmock. | 153 // Convenience getter for gmock. |
154 MockMediaObserver& media_observer() const { | 154 MockMediaObserver& media_observer() const { |
155 return *media_observer_.get(); | 155 return *media_observer_.get(); |
156 } | 156 } |
157 | 157 |
158 std::string GetTestDataPath(const FilePath::StringType& file_name); | 158 std::string GetTestDataPath(const FilePath::StringType& file_name); |
159 | 159 |
160 scoped_ptr<ReplaceContentClientRenderer> saved_content_renderer_; | 160 scoped_ptr<ReplaceContentClientRenderer> saved_content_renderer_; |
161 MessageLoopForUI message_loop_; | 161 MessageLoopForUI message_loop_; |
162 content::ContentRendererClient content_renderer_client_; | 162 ContentRendererClient content_renderer_client_; |
163 RenderThreadImpl* render_thread_; // Owned by mock_process_. | 163 RenderThreadImpl* render_thread_; // Owned by mock_process_. |
164 scoped_ptr<WebRTCMockRenderProcess> mock_process_; | 164 scoped_ptr<WebRTCMockRenderProcess> mock_process_; |
165 scoped_ptr<MockMediaObserver> media_observer_; | 165 scoped_ptr<MockMediaObserver> media_observer_; |
166 scoped_ptr<MediaStreamManager> media_stream_manager_; | 166 scoped_ptr<MediaStreamManager> media_stream_manager_; |
167 scoped_ptr<media::AudioManager> audio_manager_; | 167 scoped_ptr<media::AudioManager> audio_manager_; |
168 scoped_ptr<net::URLRequestContext> test_request_context_; | 168 scoped_ptr<net::URLRequestContext> test_request_context_; |
169 scoped_ptr<content::ResourceContext> resource_context_; | 169 scoped_ptr<ResourceContext> resource_context_; |
170 scoped_ptr<IPC::Channel> channel_; | 170 scoped_ptr<IPC::Channel> channel_; |
171 scoped_refptr<AudioRendererHost> audio_render_host_; | 171 scoped_refptr<AudioRendererHost> audio_render_host_; |
172 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; | 172 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; |
173 | 173 |
174 AudioUtilInterface* audio_util_callback_; // Weak reference. | 174 AudioUtilInterface* audio_util_callback_; // Weak reference. |
175 | 175 |
176 // Initialized on the main test thread that we mark as the UI thread. | 176 // Initialized on the main test thread that we mark as the UI thread. |
177 scoped_ptr<content::TestBrowserThread> ui_thread_; | 177 scoped_ptr<TestBrowserThread> ui_thread_; |
178 // Initialized on our IO thread to satisfy BrowserThread::IO checks. | 178 // Initialized on our IO thread to satisfy BrowserThread::IO checks. |
179 scoped_ptr<content::TestBrowserThread> io_thread_; | 179 scoped_ptr<TestBrowserThread> io_thread_; |
180 | 180 |
181 #if defined(OS_WIN) | 181 #if defined(OS_WIN) |
182 // COM initialization on the IO thread. | 182 // COM initialization on the IO thread. |
183 scoped_ptr<base::win::ScopedCOMInitializer> initialize_com_; | 183 scoped_ptr<base::win::ScopedCOMInitializer> initialize_com_; |
184 #endif | 184 #endif |
185 | 185 |
186 // These are initialized when we set up our IO thread. | 186 // These are initialized when we set up our IO thread. |
187 bool has_input_devices_; | 187 bool has_input_devices_; |
188 bool has_output_devices_; | 188 bool has_output_devices_; |
189 | 189 |
(...skipping 13 matching lines...) Expand all Loading... |
203 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; | 203 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; |
204 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; | 204 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; |
205 | 205 |
206 private: | 206 private: |
207 webrtc::VoENetwork* network_; | 207 webrtc::VoENetwork* network_; |
208 }; | 208 }; |
209 | 209 |
210 } // namespace content | 210 } // namespace content |
211 | 211 |
212 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ | 212 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ |
OLD | NEW |