Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: webrtc/modules/audio_device/include/mock_audio_device.h

Issue 3006803002: Removes unused APIs from the ADM (part II) (Closed)
Patch Set: nit Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 MOCK_CONST_METHOD0(AGC, bool()); 65 MOCK_CONST_METHOD0(AGC, bool());
66 MOCK_METHOD0(InitSpeaker, int32_t()); 66 MOCK_METHOD0(InitSpeaker, int32_t());
67 MOCK_CONST_METHOD0(SpeakerIsInitialized, bool()); 67 MOCK_CONST_METHOD0(SpeakerIsInitialized, bool());
68 MOCK_METHOD0(InitMicrophone, int32_t()); 68 MOCK_METHOD0(InitMicrophone, int32_t());
69 MOCK_CONST_METHOD0(MicrophoneIsInitialized, bool()); 69 MOCK_CONST_METHOD0(MicrophoneIsInitialized, bool());
70 MOCK_METHOD1(SpeakerVolumeIsAvailable, int32_t(bool* available)); 70 MOCK_METHOD1(SpeakerVolumeIsAvailable, int32_t(bool* available));
71 MOCK_METHOD1(SetSpeakerVolume, int32_t(uint32_t volume)); 71 MOCK_METHOD1(SetSpeakerVolume, int32_t(uint32_t volume));
72 MOCK_CONST_METHOD1(SpeakerVolume, int32_t(uint32_t* volume)); 72 MOCK_CONST_METHOD1(SpeakerVolume, int32_t(uint32_t* volume));
73 MOCK_CONST_METHOD1(MaxSpeakerVolume, int32_t(uint32_t* maxVolume)); 73 MOCK_CONST_METHOD1(MaxSpeakerVolume, int32_t(uint32_t* maxVolume));
74 MOCK_CONST_METHOD1(MinSpeakerVolume, int32_t(uint32_t* minVolume)); 74 MOCK_CONST_METHOD1(MinSpeakerVolume, int32_t(uint32_t* minVolume));
75 MOCK_CONST_METHOD1(SpeakerVolumeStepSize, int32_t(uint16_t* stepSize));
76 MOCK_METHOD1(MicrophoneVolumeIsAvailable, int32_t(bool* available)); 75 MOCK_METHOD1(MicrophoneVolumeIsAvailable, int32_t(bool* available));
77 MOCK_METHOD1(SetMicrophoneVolume, int32_t(uint32_t volume)); 76 MOCK_METHOD1(SetMicrophoneVolume, int32_t(uint32_t volume));
78 MOCK_CONST_METHOD1(MicrophoneVolume, int32_t(uint32_t* volume)); 77 MOCK_CONST_METHOD1(MicrophoneVolume, int32_t(uint32_t* volume));
79 MOCK_CONST_METHOD1(MaxMicrophoneVolume, int32_t(uint32_t* maxVolume)); 78 MOCK_CONST_METHOD1(MaxMicrophoneVolume, int32_t(uint32_t* maxVolume));
80 MOCK_CONST_METHOD1(MinMicrophoneVolume, int32_t(uint32_t* minVolume)); 79 MOCK_CONST_METHOD1(MinMicrophoneVolume, int32_t(uint32_t* minVolume));
81 MOCK_CONST_METHOD1(MicrophoneVolumeStepSize, int32_t(uint16_t* stepSize));
82 MOCK_METHOD1(SpeakerMuteIsAvailable, int32_t(bool* available)); 80 MOCK_METHOD1(SpeakerMuteIsAvailable, int32_t(bool* available));
83 MOCK_METHOD1(SetSpeakerMute, int32_t(bool enable)); 81 MOCK_METHOD1(SetSpeakerMute, int32_t(bool enable));
84 MOCK_CONST_METHOD1(SpeakerMute, int32_t(bool* enabled)); 82 MOCK_CONST_METHOD1(SpeakerMute, int32_t(bool* enabled));
85 MOCK_METHOD1(MicrophoneMuteIsAvailable, int32_t(bool* available)); 83 MOCK_METHOD1(MicrophoneMuteIsAvailable, int32_t(bool* available));
86 MOCK_METHOD1(SetMicrophoneMute, int32_t(bool enable)); 84 MOCK_METHOD1(SetMicrophoneMute, int32_t(bool enable));
87 MOCK_CONST_METHOD1(MicrophoneMute, int32_t(bool* enabled)); 85 MOCK_CONST_METHOD1(MicrophoneMute, int32_t(bool* enabled));
88 MOCK_METHOD1(MicrophoneBoostIsAvailable, int32_t(bool* available));
89 MOCK_METHOD1(SetMicrophoneBoost, int32_t(bool enable));
90 MOCK_CONST_METHOD1(MicrophoneBoost, int32_t(bool* enabled));
91 MOCK_CONST_METHOD1(StereoPlayoutIsAvailable, int32_t(bool* available)); 86 MOCK_CONST_METHOD1(StereoPlayoutIsAvailable, int32_t(bool* available));
92 MOCK_METHOD1(SetStereoPlayout, int32_t(bool enable)); 87 MOCK_METHOD1(SetStereoPlayout, int32_t(bool enable));
93 MOCK_CONST_METHOD1(StereoPlayout, int32_t(bool* enabled)); 88 MOCK_CONST_METHOD1(StereoPlayout, int32_t(bool* enabled));
94 MOCK_CONST_METHOD1(StereoRecordingIsAvailable, int32_t(bool* available)); 89 MOCK_CONST_METHOD1(StereoRecordingIsAvailable, int32_t(bool* available));
95 MOCK_METHOD1(SetStereoRecording, int32_t(bool enable)); 90 MOCK_METHOD1(SetStereoRecording, int32_t(bool enable));
96 MOCK_CONST_METHOD1(StereoRecording, int32_t(bool* enabled)); 91 MOCK_CONST_METHOD1(StereoRecording, int32_t(bool* enabled));
97 MOCK_METHOD1(SetRecordingChannel, int32_t(const ChannelType channel)); 92 MOCK_METHOD1(SetRecordingChannel, int32_t(const ChannelType channel));
98 MOCK_CONST_METHOD1(RecordingChannel, int32_t(ChannelType* channel)); 93 MOCK_CONST_METHOD1(RecordingChannel, int32_t(ChannelType* channel));
99 MOCK_METHOD2(SetPlayoutBuffer, int32_t(const BufferType type,
100 uint16_t sizeMS));
101 MOCK_CONST_METHOD2(PlayoutBuffer, int32_t(BufferType* type,
102 uint16_t* sizeMS));
103 MOCK_CONST_METHOD1(PlayoutDelay, int32_t(uint16_t* delayMS)); 94 MOCK_CONST_METHOD1(PlayoutDelay, int32_t(uint16_t* delayMS));
104 MOCK_CONST_METHOD1(RecordingDelay, int32_t(uint16_t* delayMS)); 95 MOCK_CONST_METHOD1(RecordingDelay, int32_t(uint16_t* delayMS));
105 MOCK_CONST_METHOD1(CPULoad, int32_t(uint16_t* load));
106 MOCK_METHOD1(StartRawOutputFileRecording,
107 int32_t(const char pcmFileNameUTF8[kAdmMaxFileNameSize]));
108 MOCK_METHOD0(StopRawOutputFileRecording, int32_t());
109 MOCK_METHOD1(StartRawInputFileRecording,
110 int32_t(const char pcmFileNameUTF8[kAdmMaxFileNameSize]));
111 MOCK_METHOD0(StopRawInputFileRecording, int32_t());
112 MOCK_METHOD1(SetRecordingSampleRate, int32_t(const uint32_t samplesPerSec)); 96 MOCK_METHOD1(SetRecordingSampleRate, int32_t(const uint32_t samplesPerSec));
113 MOCK_CONST_METHOD1(RecordingSampleRate, int32_t(uint32_t* samplesPerSec)); 97 MOCK_CONST_METHOD1(RecordingSampleRate, int32_t(uint32_t* samplesPerSec));
114 MOCK_METHOD1(SetPlayoutSampleRate, int32_t(const uint32_t samplesPerSec)); 98 MOCK_METHOD1(SetPlayoutSampleRate, int32_t(const uint32_t samplesPerSec));
115 MOCK_CONST_METHOD1(PlayoutSampleRate, int32_t(uint32_t* samplesPerSec)); 99 MOCK_CONST_METHOD1(PlayoutSampleRate, int32_t(uint32_t* samplesPerSec));
116 MOCK_METHOD0(ResetAudioDevice, int32_t());
117 MOCK_METHOD1(SetLoudspeakerStatus, int32_t(bool enable)); 100 MOCK_METHOD1(SetLoudspeakerStatus, int32_t(bool enable));
118 MOCK_CONST_METHOD1(GetLoudspeakerStatus, int32_t(bool* enabled)); 101 MOCK_CONST_METHOD1(GetLoudspeakerStatus, int32_t(bool* enabled));
119 MOCK_CONST_METHOD0(BuiltInAECIsAvailable, bool()); 102 MOCK_CONST_METHOD0(BuiltInAECIsAvailable, bool());
120 MOCK_CONST_METHOD0(BuiltInAGCIsAvailable, bool()); 103 MOCK_CONST_METHOD0(BuiltInAGCIsAvailable, bool());
121 MOCK_CONST_METHOD0(BuiltInNSIsAvailable, bool()); 104 MOCK_CONST_METHOD0(BuiltInNSIsAvailable, bool());
122 MOCK_METHOD1(EnableBuiltInAEC, int32_t(bool enable)); 105 MOCK_METHOD1(EnableBuiltInAEC, int32_t(bool enable));
123 MOCK_METHOD1(EnableBuiltInAGC, int32_t(bool enable)); 106 MOCK_METHOD1(EnableBuiltInAGC, int32_t(bool enable));
124 MOCK_METHOD1(EnableBuiltInNS, int32_t(bool enable)); 107 MOCK_METHOD1(EnableBuiltInNS, int32_t(bool enable));
125 #if defined(WEBRTC_IOS) 108 #if defined(WEBRTC_IOS)
126 MOCK_CONST_METHOD1(GetPlayoutAudioParameters, int(AudioParameters* params)); 109 MOCK_CONST_METHOD1(GetPlayoutAudioParameters, int(AudioParameters* params));
127 MOCK_CONST_METHOD1(GetRecordAudioParameters, int(AudioParameters* params)); 110 MOCK_CONST_METHOD1(GetRecordAudioParameters, int(AudioParameters* params));
128 #endif // WEBRTC_IOS 111 #endif // WEBRTC_IOS
129 }; 112 };
130 } // namespace test 113 } // namespace test
131 } // namespace webrtc 114 } // namespace webrtc
132 115
133 #endif // WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_MOCK_AUDIO_DEVICE_H_ 116 #endif // WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_MOCK_AUDIO_DEVICE_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/include/fake_audio_device.h ('k') | webrtc/modules/audio_device/ios/audio_device_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698