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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp8/simulcast_unittest.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 (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 return configured_bitrates; 161 return configured_bitrates;
162 } 162 }
163 163
164 class SpyingTemporalLayers : public TemporalLayers { 164 class SpyingTemporalLayers : public TemporalLayers {
165 public: 165 public:
166 explicit SpyingTemporalLayers(TemporalLayers* layers) 166 explicit SpyingTemporalLayers(TemporalLayers* layers)
167 : configured_bitrate_(0), layers_(layers) {} 167 : configured_bitrate_(0), layers_(layers) {}
168 168
169 virtual ~SpyingTemporalLayers() { delete layers_; } 169 virtual ~SpyingTemporalLayers() { delete layers_; }
170 170
171 virtual int EncodeFlags(uint32_t timestamp) { 171 int EncodeFlags(uint32_t timestamp) override {
172 return layers_->EncodeFlags(timestamp); 172 return layers_->EncodeFlags(timestamp);
173 } 173 }
174 174
175 bool ConfigureBitrates(int bitrate_kbit, 175 bool ConfigureBitrates(int bitrate_kbit,
176 int max_bitrate_kbit, 176 int max_bitrate_kbit,
177 int framerate, 177 int framerate,
178 vpx_codec_enc_cfg_t* cfg) override { 178 vpx_codec_enc_cfg_t* cfg) override {
179 configured_bitrate_ = bitrate_kbit; 179 configured_bitrate_ = bitrate_kbit;
180 return layers_->ConfigureBitrates(bitrate_kbit, max_bitrate_kbit, 180 return layers_->ConfigureBitrates(bitrate_kbit, max_bitrate_kbit,
181 framerate, cfg); 181 framerate, cfg);
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 std::unique_ptr<VP8Decoder> decoder_; 948 std::unique_ptr<VP8Decoder> decoder_;
949 MockDecodedImageCallback decoder_callback_; 949 MockDecodedImageCallback decoder_callback_;
950 VideoCodec settings_; 950 VideoCodec settings_;
951 VideoFrame input_frame_; 951 VideoFrame input_frame_;
952 }; 952 };
953 953
954 } // namespace testing 954 } // namespace testing
955 } // namespace webrtc 955 } // namespace webrtc
956 956
957 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_UNITTEST_H_ 957 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_UNITTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698