| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // Posts a final task to the IO message loop and waits for completion. | 142 // Posts a final task to the IO message loop and waits for completion. |
| 143 void WaitForIOThreadCompletion(); | 143 void WaitForIOThreadCompletion(); |
| 144 void WaitForAudioManagerCompletion(); | 144 void WaitForAudioManagerCompletion(); |
| 145 void WaitForMessageLoopCompletion(base::MessageLoopProxy* loop); | 145 void WaitForMessageLoopCompletion(base::MessageLoopProxy* loop); |
| 146 | 146 |
| 147 // Convenience getter for gmock. | 147 // Convenience getter for gmock. |
| 148 MockMediaInternals& media_observer() const { | 148 MockMediaInternals& media_observer() const { |
| 149 return *media_internals_.get(); | 149 return *media_internals_.get(); |
| 150 } | 150 } |
| 151 | 151 |
| 152 std::string GetTestDataPath(const FilePath::StringType& file_name); | 152 std::string GetTestDataPath(const base::FilePath::StringType& file_name); |
| 153 | 153 |
| 154 scoped_ptr<ReplaceContentClientRenderer> saved_content_renderer_; | 154 scoped_ptr<ReplaceContentClientRenderer> saved_content_renderer_; |
| 155 MessageLoopForUI message_loop_; | 155 MessageLoopForUI message_loop_; |
| 156 ContentRendererClient content_renderer_client_; | 156 ContentRendererClient content_renderer_client_; |
| 157 RenderThreadImpl* render_thread_; // Owned by mock_process_. | 157 RenderThreadImpl* render_thread_; // Owned by mock_process_. |
| 158 scoped_ptr<WebRTCMockRenderProcess> mock_process_; | 158 scoped_ptr<WebRTCMockRenderProcess> mock_process_; |
| 159 scoped_ptr<MockMediaInternals> media_internals_; | 159 scoped_ptr<MockMediaInternals> media_internals_; |
| 160 scoped_ptr<MediaStreamManager> media_stream_manager_; | 160 scoped_ptr<MediaStreamManager> media_stream_manager_; |
| 161 scoped_ptr<media::AudioManager> audio_manager_; | 161 scoped_ptr<media::AudioManager> audio_manager_; |
| 162 scoped_ptr<AudioMirroringManager> mirroring_manager_; | 162 scoped_ptr<AudioMirroringManager> mirroring_manager_; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; | 198 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; |
| 199 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; | 199 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; |
| 200 | 200 |
| 201 private: | 201 private: |
| 202 webrtc::VoENetwork* network_; | 202 webrtc::VoENetwork* network_; |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 } // namespace content | 205 } // namespace content |
| 206 | 206 |
| 207 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ | 207 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ |
| OLD | NEW |