shithub: libvpx

Download patch

ref: f68cf8ba1923ea7252df8f2800d0e770991b6d9d
parent: 120234fa174e2b64595a707a756e86f71a5462ac
author: Jerome Jiang <jianj@google.com>
date: Mon Nov 28 05:08:12 EST 2016

Cosmetic changes to variable names in deblocker tests.

Change kExpectedOutput to expected_output in function parameters in
the deblocker test.

Change-Id: I5baf8d1285ac47922950887406c7aa519ddc512a

--- a/test/pp_filter_test.cc
+++ b/test/pp_filter_test.cc
@@ -135,11 +135,11 @@
     }
   }
 
-  void RunComparison(const unsigned char *kExpectedOutput, unsigned char *src_c,
+  void RunComparison(const unsigned char *expected_output, unsigned char *src_c,
                      int rows, int cols, int src_pitch) {
     for (int r = 0; r < rows; r++) {
       for (int c = 0; c < cols; c++) {
-        ASSERT_EQ(kExpectedOutput[c], src_c[c]) << "at (" << r << ", " << c
+        ASSERT_EQ(expected_output[c], src_c[c]) << "at (" << r << ", " << c
                                                 << ")";
       }
       src_c += src_pitch;
@@ -147,10 +147,10 @@
   }
 
   void RunFilterLevel(unsigned char *s, int rows, int cols, int src_width,
-                      int filter_level, const unsigned char *kExpectedOutput) {
+                      int filter_level, const unsigned char *expected_output) {
     ASM_REGISTER_STATE_CHECK(
         GetParam()(s, src_width, rows, cols, filter_level));
-    RunComparison(kExpectedOutput, s, rows, cols, src_width);
+    RunComparison(expected_output, s, rows, cols, src_width);
   }
 };
 
@@ -308,11 +308,11 @@
     }
   }
 
-  void RunComparison(const unsigned char *kExpectedOutput, unsigned char *src_c,
+  void RunComparison(const unsigned char *expected_output, unsigned char *src_c,
                      int rows, int cols, int src_pitch) {
     for (int r = 0; r < rows; r++) {
       for (int c = 0; c < cols; c++) {
-        ASSERT_EQ(kExpectedOutput[r * rows + c], src_c[c]) << "at (" << r
+        ASSERT_EQ(expected_output[r * rows + c], src_c[c]) << "at (" << r
                                                            << ", " << c << ")";
       }
       src_c += src_pitch;
@@ -331,10 +331,10 @@
   }
 
   void RunFilterLevel(unsigned char *s, int rows, int cols, int src_width,
-                      int filter_level, const unsigned char *kExpectedOutput) {
+                      int filter_level, const unsigned char *expected_output) {
     ASM_REGISTER_STATE_CHECK(
         GetParam()(s, src_width, rows, cols, filter_level));
-    RunComparison(kExpectedOutput, s, rows, cols, src_width);
+    RunComparison(expected_output, s, rows, cols, src_width);
   }
 };