OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "Test.h" | 8 #include "Test.h" |
| 9 #include "TestClassDef.h" |
9 #include "SkFloatingPoint.h" | 10 #include "SkFloatingPoint.h" |
10 #include "SkMath.h" | 11 #include "SkMath.h" |
11 #include "SkPoint.h" | 12 #include "SkPoint.h" |
12 #include "SkRandom.h" | 13 #include "SkRandom.h" |
13 #include "SkRect.h" | 14 #include "SkRect.h" |
14 | 15 |
15 struct PointSet { | 16 struct PointSet { |
16 const SkPoint* fPts; | 17 const SkPoint* fPts; |
17 size_t fCount; | 18 size_t fCount; |
18 bool fIsFinite; | 19 bool fIsFinite; |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 } | 181 } |
181 } | 182 } |
182 | 183 |
183 test_isRectFinite(reporter); | 184 test_isRectFinite(reporter); |
184 } | 185 } |
185 | 186 |
186 #if defined _WIN32 | 187 #if defined _WIN32 |
187 #pragma warning ( pop ) | 188 #pragma warning ( pop ) |
188 #endif | 189 #endif |
189 | 190 |
190 static void TestScalar(skiatest::Reporter* reporter) { | 191 DEF_TEST(Scalar, reporter) { |
191 test_isfinite(reporter); | 192 test_isfinite(reporter); |
192 } | 193 } |
193 | |
194 #include "TestClassDef.h" | |
195 DEFINE_TESTCLASS("Scalar", TestScalarClass, TestScalar) | |
OLD | NEW |