test/**.cc: use bool literals
authorJames Zern <jzern@google.com>
Tue, 25 Jul 2023 19:18:03 +0000 (12:18 -0700)
committerJames Zern <jzern@google.com>
Tue, 25 Jul 2023 19:18:03 +0000 (12:18 -0700)
created with clang-tidy --fix --checks=-*,modernize-use-bool-literals

Change-Id: Ifaed8ca824676555acaf1053b2a5a52c51a70638

test/error_resilience_test.cc
test/vp9_ratectrl_rtc_test.cc

index 8db4685..6b019b2 100644 (file)
@@ -136,11 +136,11 @@ class ErrorResilienceTestLarge
         if (error_frames_[i] == nframes_ - 1) {
           std::cout << "             Skipping decoding frame: "
                     << error_frames_[i] << "\n";
-          return 0;
+          return false;
         }
       }
     }
-    return 1;
+    return true;
   }
 
   void MismatchHook(const vpx_image_t *img1, const vpx_image_t *img2) override {
index 313b68e..b76fd36 100644 (file)
@@ -227,7 +227,7 @@ class RcInterfaceSvcTest
         rc_cfg_.layer_target_bitrate[4] = 0;
         rc_cfg_.layer_target_bitrate[5] = 0;
         ASSERT_TRUE(rc_api_->UpdateRateControl(rc_cfg_));
-      } else if (/*DISABLES CODE*/ (0) && video->frame() == 280) {
+      } else if (/*DISABLES CODE*/ (false) && video->frame() == 280) {
         // TODO(marpan): Re-enable this going back up when issue is fixed.
         // Go back up to 3 spatial layers.
         // Update the encoder config: use the original bitrates.