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" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "content/browser/renderer_host/media/mock_media_observer.h" | 14 #include "content/browser/renderer_host/media/mock_media_observer.h" |
15 #include "content/public/renderer/content_renderer_client.h" | 15 #include "content/public/renderer/content_renderer_client.h" |
16 #include "ipc/ipc_listener.h" | 16 #include "ipc/ipc_listener.h" |
17 #include "media/base/audio_hardware_config.h" | 17 #include "media/base/audio_hardware_config.h" |
18 #include "media/base/channel_layout.h" | 18 #include "media/base/channel_layout.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "third_party/webrtc/common_types.h" | 20 #include "third_party/webrtc/common_types.h" |
21 | 21 |
22 namespace IPC { | 22 namespace IPC { |
23 class Channel; | 23 class Channel; |
24 } | 24 } |
25 | 25 |
26 namespace media { | 26 namespace media { |
27 class AudioManager; | 27 class AudioManager; |
| 28 class KeyPressMonitor; |
28 } | 29 } |
29 | 30 |
30 namespace net { | 31 namespace net { |
31 class URLRequestContext; | 32 class URLRequestContext; |
32 } | 33 } |
33 | 34 |
34 namespace webrtc { | 35 namespace webrtc { |
35 class VoENetwork; | 36 class VoENetwork; |
36 } | 37 } |
37 | 38 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 152 |
152 scoped_ptr<ReplaceContentClientRenderer> saved_content_renderer_; | 153 scoped_ptr<ReplaceContentClientRenderer> saved_content_renderer_; |
153 base::MessageLoopForUI message_loop_; | 154 base::MessageLoopForUI message_loop_; |
154 ContentRendererClient content_renderer_client_; | 155 ContentRendererClient content_renderer_client_; |
155 RenderThreadImpl* render_thread_; // Owned by mock_process_. | 156 RenderThreadImpl* render_thread_; // Owned by mock_process_. |
156 scoped_ptr<WebRTCMockRenderProcess> mock_process_; | 157 scoped_ptr<WebRTCMockRenderProcess> mock_process_; |
157 scoped_ptr<MockMediaInternals> media_internals_; | 158 scoped_ptr<MockMediaInternals> media_internals_; |
158 scoped_ptr<MediaStreamManager> media_stream_manager_; | 159 scoped_ptr<MediaStreamManager> media_stream_manager_; |
159 scoped_ptr<media::AudioManager> audio_manager_; | 160 scoped_ptr<media::AudioManager> audio_manager_; |
160 scoped_ptr<AudioMirroringManager> mirroring_manager_; | 161 scoped_ptr<AudioMirroringManager> mirroring_manager_; |
| 162 scoped_ptr<media::KeyPressMonitor> key_press_monitor_; |
161 scoped_ptr<net::URLRequestContext> test_request_context_; | 163 scoped_ptr<net::URLRequestContext> test_request_context_; |
162 scoped_ptr<ResourceContext> resource_context_; | 164 scoped_ptr<ResourceContext> resource_context_; |
163 scoped_ptr<IPC::Channel> channel_; | 165 scoped_ptr<IPC::Channel> channel_; |
164 scoped_refptr<AudioRendererHost> audio_render_host_; | 166 scoped_refptr<AudioRendererHost> audio_render_host_; |
165 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; | 167 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; |
166 | 168 |
167 media::AudioHardwareConfig* audio_hardware_config_; // Weak reference. | 169 media::AudioHardwareConfig* audio_hardware_config_; // Weak reference. |
168 | 170 |
169 // Initialized on the main test thread that we mark as the UI thread. | 171 // Initialized on the main test thread that we mark as the UI thread. |
170 scoped_ptr<TestBrowserThread> ui_thread_; | 172 scoped_ptr<TestBrowserThread> ui_thread_; |
(...skipping 25 matching lines...) Expand all Loading... |
196 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; | 198 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; |
197 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; | 199 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; |
198 | 200 |
199 private: | 201 private: |
200 webrtc::VoENetwork* network_; | 202 webrtc::VoENetwork* network_; |
201 }; | 203 }; |
202 | 204 |
203 } // namespace content | 205 } // namespace content |
204 | 206 |
205 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ | 207 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ |
OLD | NEW |