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

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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 int32_t StopRawInputFileRecording() override; 167 int32_t StopRawInputFileRecording() override;
168 168
169 int32_t SetRecordingSampleRate(const uint32_t samples_per_sec) override; 169 int32_t SetRecordingSampleRate(const uint32_t samples_per_sec) override;
170 int32_t RecordingSampleRate(uint32_t* samples_per_sec) const override; 170 int32_t RecordingSampleRate(uint32_t* samples_per_sec) const override;
171 int32_t SetPlayoutSampleRate(const uint32_t samples_per_sec) override; 171 int32_t SetPlayoutSampleRate(const uint32_t samples_per_sec) override;
172 int32_t PlayoutSampleRate(uint32_t* samples_per_sec) const override; 172 int32_t PlayoutSampleRate(uint32_t* samples_per_sec) const override;
173 173
174 int32_t ResetAudioDevice() override; 174 int32_t ResetAudioDevice() override;
175 int32_t SetLoudspeakerStatus(bool enable) override; 175 int32_t SetLoudspeakerStatus(bool enable) override;
176 int32_t GetLoudspeakerStatus(bool* enabled) const override; 176 int32_t GetLoudspeakerStatus(bool* enabled) const override;
177 virtual bool BuiltInAECIsAvailable() const { return false; } 177 bool BuiltInAECIsAvailable() const override { return false; }
178 virtual int32_t EnableBuiltInAEC(bool enable) { return -1; } 178 int32_t EnableBuiltInAEC(bool enable) override { return -1; }
179 virtual bool BuiltInAGCIsAvailable() const { return false; } 179 bool BuiltInAGCIsAvailable() const override { return false; }
180 virtual int32_t EnableBuiltInAGC(bool enable) { return -1; } 180 int32_t EnableBuiltInAGC(bool enable) override { return -1; }
181 virtual bool BuiltInNSIsAvailable() const { return false; } 181 bool BuiltInNSIsAvailable() const override { return false; }
182 virtual int32_t EnableBuiltInNS(bool enable) { return -1; } 182 int32_t EnableBuiltInNS(bool enable) override { return -1; }
183 // End of functions inherited from webrtc::AudioDeviceModule. 183 // End of functions inherited from webrtc::AudioDeviceModule.
184 184
185 // The following function is inherited from rtc::MessageHandler. 185 // The following function is inherited from rtc::MessageHandler.
186 void OnMessage(rtc::Message* msg) override; 186 void OnMessage(rtc::Message* msg) override;
187 187
188 protected: 188 protected:
189 // The constructor is protected because the class needs to be created as a 189 // The constructor is protected because the class needs to be created as a
190 // reference counted object (for memory managment reasons). It could be 190 // reference counted object (for memory managment reasons). It could be
191 // exposed in which case the burden of proper instantiation would be put on 191 // exposed in which case the burden of proper instantiation would be put on
192 // the creator of a FakeAudioCaptureModule instance. To create an instance of 192 // the creator of a FakeAudioCaptureModule instance. To create an instance of
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 263
264 // Protects variables that are accessed from process_thread_ and 264 // Protects variables that are accessed from process_thread_ and
265 // the main thread. 265 // the main thread.
266 rtc::CriticalSection crit_; 266 rtc::CriticalSection crit_;
267 // Protects |audio_callback_| that is accessed from process_thread_ and 267 // Protects |audio_callback_| that is accessed from process_thread_ and
268 // the main thread. 268 // the main thread.
269 rtc::CriticalSection crit_callback_; 269 rtc::CriticalSection crit_callback_;
270 }; 270 };
271 271
272 #endif // WEBRTC_API_TEST_FAKEAUDIOCAPTUREMODULE_H_ 272 #endif // WEBRTC_API_TEST_FAKEAUDIOCAPTUREMODULE_H_
OLDNEW
« no previous file with comments | « webrtc/api/statscollector_unittest.cc ('k') | webrtc/api/test/fakeaudiocapturemodule_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698