OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 WebRTCAudioDeviceTest(); | 134 WebRTCAudioDeviceTest(); |
135 virtual ~WebRTCAudioDeviceTest(); | 135 virtual ~WebRTCAudioDeviceTest(); |
136 | 136 |
137 virtual void SetUp(); | 137 virtual void SetUp(); |
138 virtual void TearDown(); | 138 virtual void TearDown(); |
139 | 139 |
140 // Sends an IPC message to the IO thread channel. | 140 // Sends an IPC message to the IO thread channel. |
141 bool Send(IPC::Message* message); | 141 bool Send(IPC::Message* message); |
142 | 142 |
143 void set_audio_util_callback(AudioUtilInterface* callback) { | 143 void SetAudioUtilCallback(AudioUtilInterface* callback); |
144 audio_util_callback_ = callback; | |
145 } | |
146 | 144 |
147 protected: | 145 protected: |
148 void InitializeIOThread(const char* thread_name); | 146 void InitializeIOThread(const char* thread_name); |
149 void UninitializeIOThread(); | 147 void UninitializeIOThread(); |
150 void CreateChannel(const char* name, | 148 void CreateChannel(const char* name, |
151 content::ResourceContext* resource_context); | 149 content::ResourceContext* resource_context); |
152 void DestroyChannel(); | 150 void DestroyChannel(); |
153 | 151 |
154 void OnGetHardwareSampleRate(double* sample_rate); | 152 void OnGetHardwareSampleRate(double* sample_rate); |
155 void OnGetHardwareInputSampleRate(double* sample_rate); | 153 void OnGetHardwareInputSampleRate(double* sample_rate); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 virtual ~WebRTCTransportImpl(); | 198 virtual ~WebRTCTransportImpl(); |
201 | 199 |
202 virtual int SendPacket(int channel, const void* data, int len); | 200 virtual int SendPacket(int channel, const void* data, int len); |
203 virtual int SendRTCPPacket(int channel, const void* data, int len); | 201 virtual int SendRTCPPacket(int channel, const void* data, int len); |
204 | 202 |
205 private: | 203 private: |
206 webrtc::VoENetwork* network_; | 204 webrtc::VoENetwork* network_; |
207 }; | 205 }; |
208 | 206 |
209 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ | 207 #endif // CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_ |
OLD | NEW |