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

Unified Diff: webrtc/modules/audio_coding/neteq/neteq_network_stats_unittest.cc

Issue 1946133002: Revert of Enable -Winconsistent-missing-override flag. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/neteq/neteq_network_stats_unittest.cc
diff --git a/webrtc/modules/audio_coding/neteq/neteq_network_stats_unittest.cc b/webrtc/modules/audio_coding/neteq/neteq_network_stats_unittest.cc
index 1a77abcd5054d89bd725ba682236de8637e68abf..770ebd57835ba155d3168e9f584ae1f2484a77e1 100644
--- a/webrtc/modules/audio_coding/neteq/neteq_network_stats_unittest.cc
+++ b/webrtc/modules/audio_coding/neteq/neteq_network_stats_unittest.cc
@@ -24,36 +24,31 @@
class MockAudioDecoder final : public AudioDecoder {
public:
- // TODO(nisse): Valid overrides commented out, because the gmock
- // methods don't use any override declarations, and we want to avoid
- // warnings from -Winconsistent-missing-override. See
- // http://crbug.com/428099.
static const int kPacketDuration = 960; // 48 kHz * 20 ms
explicit MockAudioDecoder(size_t num_channels)
: num_channels_(num_channels), fec_enabled_(false) {
}
- ~MockAudioDecoder() /* override */ { Die(); }
+ ~MockAudioDecoder() override { Die(); }
MOCK_METHOD0(Die, void());
MOCK_METHOD0(Reset, void());
int PacketDuration(const uint8_t* encoded,
- size_t encoded_len) const /* override */ {
+ size_t encoded_len) const override {
return kPacketDuration;
}
int PacketDurationRedundant(const uint8_t* encoded,
- size_t encoded_len) const /* override */ {
+ size_t encoded_len) const override {
return kPacketDuration;
}
- bool PacketHasFec(
- const uint8_t* encoded, size_t encoded_len) const /* override */ {
+ bool PacketHasFec(const uint8_t* encoded, size_t encoded_len) const override {
return fec_enabled_;
}
- size_t Channels() const /* override */ { return num_channels_; }
+ size_t Channels() const override { return num_channels_; }
void set_fec_enabled(bool enable_fec) { fec_enabled_ = enable_fec; }
@@ -65,7 +60,7 @@
size_t encoded_len,
int /*sample_rate_hz*/,
int16_t* decoded,
- SpeechType* speech_type) /* override */ {
+ SpeechType* speech_type) override {
*speech_type = kSpeech;
memset(decoded, 0, sizeof(int16_t) * kPacketDuration * Channels());
return kPacketDuration * Channels();
@@ -75,7 +70,7 @@
size_t encoded_len,
int sample_rate_hz,
int16_t* decoded,
- SpeechType* speech_type) /* override */ {
+ SpeechType* speech_type) override {
return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded,
speech_type);
}
@@ -299,3 +294,7 @@
} // namespace test
} // namespace webrtc
+
+
+
+

Powered by Google App Engine
This is Rietveld 408576698