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

Unified Diff: webrtc/test/mock_voice_engine.h

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
« no previous file with comments | « webrtc/p2p/base/port_unittest.cc ('k') | webrtc/test/rtp_file_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/mock_voice_engine.h
diff --git a/webrtc/test/mock_voice_engine.h b/webrtc/test/mock_voice_engine.h
index b9eb05fb8be234893cfe64f65df001b4480d9b7b..fac088b0e1707d79cc3d3845f9ccc14faaf8a829 100644
--- a/webrtc/test/mock_voice_engine.h
+++ b/webrtc/test/mock_voice_engine.h
@@ -24,10 +24,6 @@
// able to get the various interfaces as usual, via T::GetInterface().
class MockVoiceEngine : public VoiceEngineImpl {
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.
MockVoiceEngine() : VoiceEngineImpl(new Config(), true) {
// Increase ref count so this object isn't automatically deleted whenever
// interfaces are Release():d.
@@ -40,7 +36,7 @@
return new testing::NiceMock<MockVoEChannelProxy>();
}));
}
- ~MockVoiceEngine() /* override */ {
+ ~MockVoiceEngine() override {
// Decrease ref count before base class d-tor is called; otherwise it will
// trigger an assertion.
--_ref_count;
@@ -49,8 +45,7 @@
MOCK_METHOD1(ChannelProxyFactory, voe::ChannelProxy*(int channel_id));
// VoiceEngineImpl
- std::unique_ptr<voe::ChannelProxy> GetChannelProxy(
- int channel_id) /* override */ {
+ std::unique_ptr<voe::ChannelProxy> GetChannelProxy(int channel_id) override {
return std::unique_ptr<voe::ChannelProxy>(ChannelProxyFactory(channel_id));
}
« no previous file with comments | « webrtc/p2p/base/port_unittest.cc ('k') | webrtc/test/rtp_file_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698