test/*.cc: prefer 'override' to 'virtual'
created with clang-tidy --fix --checks=-*,modernize-use-override
Change-Id: I09902ee3bde44abaac08049aa287e9acbb45f266
diff --git a/test/sb_multipass_test.cc b/test/sb_multipass_test.cc
index 8ddc002..e27a2c6 100644
--- a/test/sb_multipass_test.cc
+++ b/test/sb_multipass_test.cc
@@ -42,9 +42,9 @@
md5_dec_.clear();
md5_enc_.clear();
}
- virtual ~AV1SBMultipassTest() { delete decoder_; }
+ ~AV1SBMultipassTest() override { delete decoder_; }
- virtual void SetUp() {
+ void SetUp() override {
InitializeConfig(::libaom_test::kTwoPassGood);
cfg_.g_lag_in_frames = 5;
@@ -56,8 +56,8 @@
cfg_.rc_min_quantizer = 0;
}
- virtual void PreEncodeFrameHook(::libaom_test::VideoSource *video,
- ::libaom_test::Encoder *encoder) {
+ void PreEncodeFrameHook(::libaom_test::VideoSource *video,
+ ::libaom_test::Encoder *encoder) override {
if (video->frame() == 0) {
SetTileSize(encoder);
encoder->Control(AOME_SET_CPUUSED, set_cpu_used_);
@@ -75,7 +75,7 @@
encoder->Control(AV1E_SET_TILE_ROWS, 1);
}
- virtual void FramePktHook(const aom_codec_cx_pkt_t *pkt) {
+ void FramePktHook(const aom_codec_cx_pkt_t *pkt) override {
size_enc_.push_back(pkt->data.frame.sz);
::libaom_test::MD5 md5_enc;