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

Side by Side Diff: tests/ScalarTest.cpp

Issue 100113004: Use DEFINE_TESTCLASS_SHORT macro in tests. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « tests/SHA1Test.cpp ('k') | tests/SerializationTest.cpp » ('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 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
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)
OLDNEW
« no previous file with comments | « tests/SHA1Test.cpp ('k') | tests/SerializationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698