]> granicus.if.org Git - libvpx/commitdiff
test/*,cosmetics: normalize void parameter lists
authorJames Zern <jzern@google.com>
Wed, 31 Aug 2022 23:35:08 +0000 (16:35 -0700)
committerJames Zern <jzern@google.com>
Wed, 31 Aug 2022 23:35:08 +0000 (16:35 -0700)
replace (void) with (); use of this synonym is more common in C++ code.

Change-Id: I9813e82234dc9caa7115918a0491b0040f6afaf4

test/acm_random.h
test/error_resilience_test.cc
test/md5_helper.h
test/svc_datarate_test.cc
test/vp8_datarate_test.cc
test/vp9_datarate_test.cc

index 3458340a124a8df3b1fb3b7a07e66f3b93ad0741..c7122b9338a8118efc12c74a7267bea38f80bed4 100644 (file)
@@ -28,43 +28,43 @@ class ACMRandom {
   explicit ACMRandom(int seed) : random_(seed) {}
 
   void Reset(int seed) { random_.Reseed(seed); }
-  uint16_t Rand16(void) {
+  uint16_t Rand16() {
     const uint32_t value =
         random_.Generate(testing::internal::Random::kMaxRange);
     return (value >> 15) & 0xffff;
   }
 
-  int32_t Rand20Signed(void) {
+  int32_t Rand20Signed() {
     // Use 20 bits: values between 524287 and -524288.
     const uint32_t value = random_.Generate(1048576);
     return static_cast<int32_t>(value) - 524288;
   }
 
-  int16_t Rand16Signed(void) {
+  int16_t Rand16Signed() {
     // Use 16 bits: values between 32767 and -32768.
     return static_cast<int16_t>(random_.Generate(65536));
   }
 
-  int16_t Rand13Signed(void) {
+  int16_t Rand13Signed() {
     // Use 13 bits: values between 4095 and -4096.
     const uint32_t value = random_.Generate(8192);
     return static_cast<int16_t>(value) - 4096;
   }
 
-  int16_t Rand9Signed(void) {
+  int16_t Rand9Signed() {
     // Use 9 bits: values between 255 (0x0FF) and -256 (0x100).
     const uint32_t value = random_.Generate(512);
     return static_cast<int16_t>(value) - 256;
   }
 
-  uint8_t Rand8(void) {
+  uint8_t Rand8() {
     const uint32_t value =
         random_.Generate(testing::internal::Random::kMaxRange);
     // There's a bit more entropy in the upper bits of this implementation.
     return (value >> 23) & 0xff;
   }
 
-  uint8_t Rand8Extremes(void) {
+  uint8_t Rand8Extremes() {
     // Returns a random value near 0 or near 255, to better exercise
     // saturation behavior.
     const uint8_t r = Rand8();
@@ -82,7 +82,7 @@ class ACMRandom {
 
   int operator()(int n) { return PseudoUniform(n); }
 
-  static int DeterministicSeed(void) { return 0xbaba; }
+  static int DeterministicSeed() { return 0xbaba; }
 
  private:
   testing::internal::Random random_;
index 45a327ec2fd94e9d71997f93f2c77166156204b5..45138f14b9ad148506b416b3c54e093be22a5d86 100644 (file)
@@ -496,7 +496,7 @@ class ErrorResilienceTestLargeCodecControls
     ++tot_frame_number_;
   }
 
-  virtual void EndPassHook(void) {
+  virtual void EndPassHook() {
     duration_ = (last_pts_ + 1) * timebase_;
     if (cfg_.ts_number_layers > 1) {
       for (int layer = 0; layer < static_cast<int>(cfg_.ts_number_layers);
index dc28dc6283bc69d7885ba8b1466a2beb45ab26a1..9095d96a8a3b3f666c2b1577c79adb707e2f1c2f 100644 (file)
@@ -47,7 +47,7 @@ class MD5 {
     MD5Update(&md5_, data, static_cast<uint32_t>(size));
   }
 
-  const char *Get(void) {
+  const char *Get() {
     static const char hex[16] = {
       '0', '1', '2', '3', '4', '5', '6', '7',
       '8', '9', 'a', 'b', 'c', 'd', 'e', 'f',
index 51e90e776c8269e696b1459dbf3da22d845b2ba0..010c27342107ad7341ac517182901f52b6150b58 100644 (file)
@@ -571,7 +571,7 @@ class DatarateOnePassCbrSvc : public OnePassCbrSvc {
     }
   }
 
-  virtual void EndPassHook(void) {
+  virtual void EndPassHook() {
     if (change_bitrate_) last_pts_ = last_pts_ - last_pts_ref_;
     duration_ = (last_pts_ + 1) * timebase_;
     for (int sl = 0; sl < number_spatial_layers_; ++sl) {
index dcd68a2d4c7f259347dfbc0c0e81c62cbc4ca7a6..64a861d15e5373b56c7c346366209f45ff9a2c1b 100644 (file)
@@ -121,7 +121,7 @@ class DatarateTestLarge
     ++frame_number_;
   }
 
-  virtual void EndPassHook(void) {
+  virtual void EndPassHook() {
     if (bits_total_) {
       const double file_size_in_kb = bits_total_ / 1000.;  // bits per kilobit
 
index 9930c754c7a4feb3b613c4334fa82f2b64f0b594..286fa335a1607dfcd16a12a0a5ad75f79071c1d5 100644 (file)
@@ -199,7 +199,7 @@ class DatarateTestVP9 : public ::libvpx_test::EncoderTest {
     ++tot_frame_number_;
   }
 
-  virtual void EndPassHook(void) {
+  virtual void EndPassHook() {
     for (int layer = 0; layer < static_cast<int>(cfg_.ts_number_layers);
          ++layer) {
       duration_ = (last_pts_ + 1) * timebase_;