Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: unit_test/unit_test.h

Issue 1405543003: create color test category of unittests to narrow down arm bug (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « unit_test/scale_color_test.cc ('k') | unit_test/unit_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unit_test/unit_test.h
diff --git a/unit_test/unit_test.h b/unit_test/unit_test.h
index 4e3086d6a953181274b1f0362ac08feaf3e1fe4f..826d154aad819db58c7c1e4c28767e72e0d7deff 100644
--- a/unit_test/unit_test.h
+++ b/unit_test/unit_test.h
@@ -72,13 +72,22 @@ static inline void MemRandomize(uint8* dst, int64 len) {
}
}
+class LibYUVColorTest : public ::testing::Test {
+ protected:
+ LibYUVColorTest();
+
+ int benchmark_iterations_; // Default 1. Use 1000 for benchmarking.
+ int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA.
+ int benchmark_height_; // Default 720. Use 360 for benchmarking VGA.
+ int benchmark_pixels_div256_; // Total pixels to benchmark / 256.
+ int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280.
+ int disable_cpu_flags_; // Default 0. Use -1 for benchmarking.
+};
+
class LibYUVConvertTest : public ::testing::Test {
protected:
LibYUVConvertTest();
- const int rotate_max_w_;
- const int rotate_max_h_;
-
int benchmark_iterations_; // Default 1. Use 1000 for benchmarking.
int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA.
int benchmark_height_; // Default 720. Use 360 for benchmarking VGA.
@@ -91,9 +100,6 @@ class LibYUVScaleTest : public ::testing::Test {
protected:
LibYUVScaleTest();
- const int rotate_max_w_;
- const int rotate_max_h_;
-
int benchmark_iterations_; // Default 1. Use 1000 for benchmarking.
int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA.
int benchmark_height_; // Default 720. Use 360 for benchmarking VGA.
@@ -106,9 +112,6 @@ class LibYUVRotateTest : public ::testing::Test {
protected:
LibYUVRotateTest();
- const int rotate_max_w_;
- const int rotate_max_h_;
-
int benchmark_iterations_; // Default 1. Use 1000 for benchmarking.
int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA.
int benchmark_height_; // Default 720. Use 360 for benchmarking VGA.
@@ -121,9 +124,6 @@ class LibYUVPlanarTest : public ::testing::Test {
protected:
LibYUVPlanarTest();
- const int rotate_max_w_;
- const int rotate_max_h_;
-
int benchmark_iterations_; // Default 1. Use 1000 for benchmarking.
int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA.
int benchmark_height_; // Default 720. Use 360 for benchmarking VGA.
@@ -136,9 +136,6 @@ class LibYUVBaseTest : public ::testing::Test {
protected:
LibYUVBaseTest();
- const int rotate_max_w_;
- const int rotate_max_h_;
-
int benchmark_iterations_; // Default 1. Use 1000 for benchmarking.
int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA.
int benchmark_height_; // Default 720. Use 360 for benchmarking VGA.
« no previous file with comments | « unit_test/scale_color_test.cc ('k') | unit_test/unit_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698