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

Side by Side Diff: webrtc/api/test/fakeaudiocapturemodule.h

Issue 1921653002: Enable -Winconsistent-missing-override flag. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 4 years, 7 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 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 int32_t StopRawInputFileRecording() override; 165 int32_t StopRawInputFileRecording() override;
166 166
167 int32_t SetRecordingSampleRate(const uint32_t samples_per_sec) override; 167 int32_t SetRecordingSampleRate(const uint32_t samples_per_sec) override;
168 int32_t RecordingSampleRate(uint32_t* samples_per_sec) const override; 168 int32_t RecordingSampleRate(uint32_t* samples_per_sec) const override;
169 int32_t SetPlayoutSampleRate(const uint32_t samples_per_sec) override; 169 int32_t SetPlayoutSampleRate(const uint32_t samples_per_sec) override;
170 int32_t PlayoutSampleRate(uint32_t* samples_per_sec) const override; 170 int32_t PlayoutSampleRate(uint32_t* samples_per_sec) const override;
171 171
172 int32_t ResetAudioDevice() override; 172 int32_t ResetAudioDevice() override;
173 int32_t SetLoudspeakerStatus(bool enable) override; 173 int32_t SetLoudspeakerStatus(bool enable) override;
174 int32_t GetLoudspeakerStatus(bool* enabled) const override; 174 int32_t GetLoudspeakerStatus(bool* enabled) const override;
175 virtual bool BuiltInAECIsAvailable() const { return false; } 175 bool BuiltInAECIsAvailable() const override { return false; }
176 virtual int32_t EnableBuiltInAEC(bool enable) { return -1; } 176 int32_t EnableBuiltInAEC(bool enable) override { return -1; }
177 virtual bool BuiltInAGCIsAvailable() const { return false; } 177 bool BuiltInAGCIsAvailable() const override { return false; }
178 virtual int32_t EnableBuiltInAGC(bool enable) { return -1; } 178 int32_t EnableBuiltInAGC(bool enable) override { return -1; }
179 virtual bool BuiltInNSIsAvailable() const { return false; } 179 bool BuiltInNSIsAvailable() const override { return false; }
180 virtual int32_t EnableBuiltInNS(bool enable) { return -1; } 180 int32_t EnableBuiltInNS(bool enable) override { return -1; }
181 // End of functions inherited from webrtc::AudioDeviceModule. 181 // End of functions inherited from webrtc::AudioDeviceModule.
182 182
183 // The following function is inherited from rtc::MessageHandler. 183 // The following function is inherited from rtc::MessageHandler.
184 void OnMessage(rtc::Message* msg) override; 184 void OnMessage(rtc::Message* msg) override;
185 185
186 protected: 186 protected:
187 // The constructor is protected because the class needs to be created as a 187 // The constructor is protected because the class needs to be created as a
188 // reference counted object (for memory managment reasons). It could be 188 // reference counted object (for memory managment reasons). It could be
189 // exposed in which case the burden of proper instantiation would be put on 189 // exposed in which case the burden of proper instantiation would be put on
190 // the creator of a FakeAudioCaptureModule instance. To create an instance of 190 // the creator of a FakeAudioCaptureModule instance. To create an instance of
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 // Protects variables that are accessed from process_thread_ and 262 // Protects variables that are accessed from process_thread_ and
263 // the main thread. 263 // the main thread.
264 rtc::CriticalSection crit_; 264 rtc::CriticalSection crit_;
265 // Protects |audio_callback_| that is accessed from process_thread_ and 265 // Protects |audio_callback_| that is accessed from process_thread_ and
266 // the main thread. 266 // the main thread.
267 rtc::CriticalSection crit_callback_; 267 rtc::CriticalSection crit_callback_;
268 }; 268 };
269 269
270 #endif // WEBRTC_API_TEST_FAKEAUDIOCAPTUREMODULE_H_ 270 #endif // WEBRTC_API_TEST_FAKEAUDIOCAPTUREMODULE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698