| 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" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 bool Send(IPC::Message* message); | 125 bool Send(IPC::Message* message); |
| 126 | 126 |
| 127 void SetAudioHardwareConfig(media::AudioHardwareConfig* hardware_config); | 127 void SetAudioHardwareConfig(media::AudioHardwareConfig* hardware_config); |
| 128 | 128 |
| 129 protected: | 129 protected: |
| 130 void InitializeIOThread(const char* thread_name); | 130 void InitializeIOThread(const char* thread_name); |
| 131 void UninitializeIOThread(); | 131 void UninitializeIOThread(); |
| 132 void CreateChannel(const char* name); | 132 void CreateChannel(const char* name); |
| 133 void DestroyChannel(); | 133 void DestroyChannel(); |
| 134 | 134 |
| 135 void OnGetAudioHardwareConfig(media::AudioParameters* input_params, | 135 void OnGetAudioHardwareConfig(int* output_buffer_size, |
| 136 media::AudioParameters* output_params); | 136 int* output_sample_rate, int* input_sample_rate, |
| 137 media::ChannelLayout* input_channel_layout); |
| 137 | 138 |
| 138 // IPC::Listener implementation. | 139 // IPC::Listener implementation. |
| 139 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 140 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 140 | 141 |
| 141 // 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. |
| 142 void WaitForIOThreadCompletion(); | 143 void WaitForIOThreadCompletion(); |
| 143 void WaitForAudioManagerCompletion(); | 144 void WaitForAudioManagerCompletion(); |
| 144 void WaitForMessageLoopCompletion(base::MessageLoopProxy* loop); | 145 void WaitForMessageLoopCompletion(base::MessageLoopProxy* loop); |
| 145 | 146 |
| 146 // Convenience getter for gmock. | 147 // Convenience getter for gmock. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; | 198 virtual int SendPacket(int channel, const void* data, int len) OVERRIDE; |
| 198 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; | 199 virtual int SendRTCPPacket(int channel, const void* data, int len) OVERRIDE; |
| 199 | 200 |
| 200 private: | 201 private: |
| 201 webrtc::VoENetwork* network_; | 202 webrtc::VoENetwork* network_; |
| 202 }; | 203 }; |
| 203 | 204 |
| 204 } // namespace content | 205 } // namespace content |
| 205 | 206 |
| 206 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ | 207 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ |
| OLD | NEW |