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

Side by Side Diff: tests/MatrixTest.cpp

Issue 138563004: Move macros from TestClassDef.h to Test.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: upload Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/Matrix44Test.cpp ('k') | tests/MemoryTest.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"
10 #include "SkMath.h" 9 #include "SkMath.h"
11 #include "SkMatrix.h" 10 #include "SkMatrix.h"
12 #include "SkMatrixUtils.h" 11 #include "SkMatrixUtils.h"
13 #include "SkRandom.h" 12 #include "SkRandom.h"
14 13
15 static bool nearly_equal_scalar(SkScalar a, SkScalar b) { 14 static bool nearly_equal_scalar(SkScalar a, SkScalar b) {
16 const SkScalar tolerance = SK_Scalar1 / 200000; 15 const SkScalar tolerance = SK_Scalar1 / 200000;
17 return SkScalarAbs(a - b) <= tolerance; 16 return SkScalarAbs(a - b) <= tolerance;
18 } 17 }
19 18
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 mat.set(SkMatrix::kMSkewX, SK_ScalarNaN); 778 mat.set(SkMatrix::kMSkewX, SK_ScalarNaN);
780 mat2.set(SkMatrix::kMSkewX, SK_ScalarNaN); 779 mat2.set(SkMatrix::kMSkewX, SK_ScalarNaN);
781 REPORTER_ASSERT(reporter, !are_equal(reporter, mat, mat2)); 780 REPORTER_ASSERT(reporter, !are_equal(reporter, mat, mat2));
782 781
783 test_matrix_min_max_stretch(reporter); 782 test_matrix_min_max_stretch(reporter);
784 test_matrix_is_similarity(reporter); 783 test_matrix_is_similarity(reporter);
785 test_matrix_recttorect(reporter); 784 test_matrix_recttorect(reporter);
786 test_matrix_decomposition(reporter); 785 test_matrix_decomposition(reporter);
787 test_matrix_homogeneous(reporter); 786 test_matrix_homogeneous(reporter);
788 } 787 }
OLDNEW
« no previous file with comments | « tests/Matrix44Test.cpp ('k') | tests/MemoryTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698