summaryrefslogtreecommitdiff
path: root/test/realtime_test.cc
diff options
context:
space:
mode:
authorangiebird <angiebird@google.com>2020-05-18 19:33:05 -0700
committerangiebird <angiebird@google.com>2020-05-20 14:49:00 -0700
commita53da566290db46ed32e465aa3d8b4b70b299886 (patch)
treea79debb5c74c31cbc0fadf619759ee72dfc402e7 /test/realtime_test.cc
parent3bc58f13cc4ae0881ce483a8dcd7789a2d6f325d (diff)
downloadlibvpx-a53da566290db46ed32e465aa3d8b4b70b299886.tar
libvpx-a53da566290db46ed32e465aa3d8b4b70b299886.tar.gz
libvpx-a53da566290db46ed32e465aa3d8b4b70b299886.tar.bz2
libvpx-a53da566290db46ed32e465aa3d8b4b70b299886.zip
Refactor decode_api_test and realtime_test
Replace NULL by nullptr. Use override specifier over virtual specifier. Change-Id: Iac2c97f997abd6ed9a5cd3991e052e79996f40f4
Diffstat (limited to 'test/realtime_test.cc')
-rw-r--r--test/realtime_test.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/realtime_test.cc b/test/realtime_test.cc
index 11b5cae70..6ee2121ea 100644
--- a/test/realtime_test.cc
+++ b/test/realtime_test.cc
@@ -24,15 +24,15 @@ class RealtimeTest
public ::libvpx_test::CodecTestWithParam<libvpx_test::TestMode> {
protected:
RealtimeTest() : EncoderTest(GET_PARAM(0)), frame_packets_(0) {}
- virtual ~RealtimeTest() {}
+ ~RealtimeTest() override {}
- virtual void SetUp() {
+ void SetUp() override {
InitializeConfig();
cfg_.g_lag_in_frames = 0;
SetMode(::libvpx_test::kRealTime);
}
- virtual void BeginPassHook(unsigned int /*pass*/) {
+ void BeginPassHook(unsigned int /*pass*/) override {
// TODO(tomfinegan): We're changing the pass value here to make sure
// we get frames when real time mode is combined with |g_pass| set to
// VPX_RC_FIRST_PASS. This is necessary because EncoderTest::RunLoop() sets
@@ -41,14 +41,14 @@ class RealtimeTest
cfg_.g_pass = VPX_RC_FIRST_PASS;
}
- virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
- ::libvpx_test::Encoder *encoder) {
+ void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
+ ::libvpx_test::Encoder *encoder) override {
if (video->frame() == 0) {
encoder->Control(VP8E_SET_CPUUSED, 8);
}
}
- virtual void FramePktHook(const vpx_codec_cx_pkt_t * /*pkt*/) {
+ void FramePktHook(const vpx_codec_cx_pkt_t * /*pkt*/) override {
frame_packets_++;
}