| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 161 |
| 161 scoped_ptr<ReplaceContentClientRenderer> saved_content_renderer_; | 162 scoped_ptr<ReplaceContentClientRenderer> saved_content_renderer_; |
| 162 base::MessageLoopForUI message_loop_; | 163 base::MessageLoopForUI message_loop_; |
| 163 ContentRendererClient content_renderer_client_; | 164 ContentRendererClient content_renderer_client_; |
| 164 RenderThreadImpl* render_thread_; // Owned by mock_process_. | 165 RenderThreadImpl* render_thread_; // Owned by mock_process_. |
| 165 scoped_ptr<WebRTCMockRenderProcess> mock_process_; | 166 scoped_ptr<WebRTCMockRenderProcess> mock_process_; |
| 166 scoped_ptr<MockMediaInternals> media_internals_; | 167 scoped_ptr<MockMediaInternals> media_internals_; |
| 167 scoped_ptr<MediaStreamManager> media_stream_manager_; | 168 scoped_ptr<MediaStreamManager> media_stream_manager_; |
| 168 scoped_ptr<media::AudioManager> audio_manager_; | 169 scoped_ptr<media::AudioManager> audio_manager_; |
| 169 scoped_ptr<AudioMirroringManager> mirroring_manager_; | 170 scoped_ptr<AudioMirroringManager> mirroring_manager_; |
| 171 scoped_ptr<media::KeyPressMonitor> key_press_monitor_; |
| 170 scoped_ptr<net::URLRequestContext> test_request_context_; | 172 scoped_ptr<net::URLRequestContext> test_request_context_; |
| 171 scoped_ptr<ResourceContext> resource_context_; | 173 scoped_ptr<ResourceContext> resource_context_; |
| 172 scoped_ptr<IPC::Channel> channel_; | 174 scoped_ptr<IPC::Channel> channel_; |
| 173 scoped_refptr<AudioRendererHost> audio_render_host_; | 175 scoped_refptr<AudioRendererHost> audio_render_host_; |
| 174 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; | 176 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; |
| 175 | 177 |
| 176 media::AudioHardwareConfig* audio_hardware_config_; // Weak reference. | 178 media::AudioHardwareConfig* audio_hardware_config_; // Weak reference. |
| 177 | 179 |
| 178 // Initialized on the main test thread that we mark as the UI thread. | 180 // Initialized on the main test thread that we mark as the UI thread. |
| 179 scoped_ptr<TestBrowserThread> ui_thread_; | 181 scoped_ptr<TestBrowserThread> ui_thread_; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 205 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; | 207 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; |
| 206 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; | 208 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; |
| 207 | 209 |
| 208 private: | 210 private: |
| 209 webrtc::VoENetwork* network_; | 211 webrtc::VoENetwork* network_; |
| 210 }; | 212 }; |
| 211 | 213 |
| 212 } // namespace content | 214 } // namespace content |
| 213 | 215 |
| 214 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ | 216 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ |
| OLD | NEW |