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

Side by Side Diff: unit_test/unit_test.h

Issue 1408753004: unittest fix for cpu flags. (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | unit_test/unit_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 class LibYUVColorTest : public ::testing::Test { 75 class LibYUVColorTest : public ::testing::Test {
76 protected: 76 protected:
77 LibYUVColorTest(); 77 LibYUVColorTest();
78 78
79 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. 79 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking.
80 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. 80 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA.
81 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. 81 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA.
82 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. 82 int benchmark_pixels_div256_; // Total pixels to benchmark / 256.
83 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. 83 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280.
84 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. 84 int disable_cpu_flags_; // Default 1. Use -1 for benchmarking.
85 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD. 85 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD.
86 }; 86 };
87 87
88 class LibYUVConvertTest : public ::testing::Test { 88 class LibYUVConvertTest : public ::testing::Test {
89 protected: 89 protected:
90 LibYUVConvertTest(); 90 LibYUVConvertTest();
91 91
92 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. 92 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking.
93 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. 93 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA.
94 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. 94 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA.
95 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. 95 int benchmark_pixels_div256_; // Total pixels to benchmark / 256.
96 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. 96 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280.
97 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. 97 int disable_cpu_flags_; // Default 1. Use -1 for benchmarking.
98 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD. 98 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD.
99 }; 99 };
100 100
101 class LibYUVScaleTest : public ::testing::Test { 101 class LibYUVScaleTest : public ::testing::Test {
102 protected: 102 protected:
103 LibYUVScaleTest(); 103 LibYUVScaleTest();
104 104
105 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. 105 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking.
106 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. 106 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA.
107 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. 107 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA.
108 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. 108 int benchmark_pixels_div256_; // Total pixels to benchmark / 256.
109 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. 109 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280.
110 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. 110 int disable_cpu_flags_; // Default 1. Use -1 for benchmarking.
111 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD. 111 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD.
112 }; 112 };
113 113
114 class LibYUVRotateTest : public ::testing::Test { 114 class LibYUVRotateTest : public ::testing::Test {
115 protected: 115 protected:
116 LibYUVRotateTest(); 116 LibYUVRotateTest();
117 117
118 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. 118 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking.
119 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. 119 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA.
120 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. 120 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA.
121 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. 121 int benchmark_pixels_div256_; // Total pixels to benchmark / 256.
122 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. 122 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280.
123 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. 123 int disable_cpu_flags_; // Default 1. Use -1 for benchmarking.
124 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD. 124 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD.
125 }; 125 };
126 126
127 class LibYUVPlanarTest : public ::testing::Test { 127 class LibYUVPlanarTest : public ::testing::Test {
128 protected: 128 protected:
129 LibYUVPlanarTest(); 129 LibYUVPlanarTest();
130 130
131 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. 131 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking.
132 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. 132 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA.
133 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. 133 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA.
134 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. 134 int benchmark_pixels_div256_; // Total pixels to benchmark / 256.
135 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. 135 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280.
136 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. 136 int disable_cpu_flags_; // Default 1. Use -1 for benchmarking.
137 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD. 137 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD.
138 }; 138 };
139 139
140 class LibYUVBaseTest : public ::testing::Test { 140 class LibYUVBaseTest : public ::testing::Test {
141 protected: 141 protected:
142 LibYUVBaseTest(); 142 LibYUVBaseTest();
143 143
144 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking. 144 int benchmark_iterations_; // Default 1. Use 1000 for benchmarking.
145 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA. 145 int benchmark_width_; // Default 1280. Use 640 for benchmarking VGA.
146 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA. 146 int benchmark_height_; // Default 720. Use 360 for benchmarking VGA.
147 int benchmark_pixels_div256_; // Total pixels to benchmark / 256. 147 int benchmark_pixels_div256_; // Total pixels to benchmark / 256.
148 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280. 148 int benchmark_pixels_div1280_; // Total pixels to benchmark / 1280.
149 int disable_cpu_flags_; // Default 0. Use -1 for benchmarking. 149 int disable_cpu_flags_; // Default 1. Use -1 for benchmarking.
150 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD. 150 int benchmark_cpu_info_; // Default -1. Use 1 to disable SIMD.
151 }; 151 };
152 152
153 #endif // UNIT_TEST_UNIT_TEST_H_ NOLINT 153 #endif // UNIT_TEST_UNIT_TEST_H_ NOLINT
OLDNEW
« no previous file with comments | « no previous file | unit_test/unit_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698