diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-04 02:01:25 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-04 02:01:25 +0000 |
commit | e659c2e820de0b8d12d81247ed4430022ded0a90 (patch) | |
tree | ba9373b0f5e094c78cee6deb3faa72cdcd3e68f4 /tests | |
parent | b8b8ba01f0d52d598e88798f7f90ed3bcc648e23 (diff) |
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@6660 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/LListTest.cpp | 8 | ||||
-rw-r--r-- | tests/Matrix44Test.cpp | 8 | ||||
-rw-r--r-- | tests/MatrixTest.cpp | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/tests/LListTest.cpp b/tests/LListTest.cpp index c5a5663c0b..d574e090ec 100644 --- a/tests/LListTest.cpp +++ b/tests/LListTest.cpp @@ -162,14 +162,14 @@ static void TestTLList(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, iter3.get()->fID == iter1.get()->fID); REPORTER_ASSERT(reporter, iter4.get()->fID == iter1.get()->fID); REPORTER_ASSERT(reporter, list1 == list2); - + list2.reset(); // use both before/after in-place construction on an empty list SkNEW_INSERT_IN_LLIST_BEFORE(&list2, list2.headIter(), ListElement, (1)); REPORTER_ASSERT(reporter, list2 == list1); list2.reset(); - + SkNEW_INSERT_IN_LLIST_AFTER(&list2, list2.tailIter(), ListElement, (1)); REPORTER_ASSERT(reporter, list2 == list1); @@ -255,7 +255,7 @@ static void TestTLList(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, prev.next()->fID == iter.get()->fID); } } - } + } } ++count; } else { @@ -263,7 +263,7 @@ static void TestTLList(skiatest::Reporter* reporter) { int n = random.nextULessThan(list1.count()); Iter::IterStart start; ListElement* (Iter::*incrFunc)(); - + if (random.nextBool()) { start = Iter::kHead_IterStart; incrFunc = &Iter::next; diff --git a/tests/Matrix44Test.cpp b/tests/Matrix44Test.cpp index ed8770ae6c..1220f262e0 100644 --- a/tests/Matrix44Test.cpp +++ b/tests/Matrix44Test.cpp @@ -74,10 +74,10 @@ static bool is_identity(const SkMatrix44& m) { static void test_gettype(skiatest::Reporter* reporter) { SkMatrix44 matrix; - + REPORTER_ASSERT(reporter, matrix.isIdentity()); REPORTER_ASSERT(reporter, SkMatrix44::kIdentity_Mask == matrix.getType()); - + int expectedMask; matrix.set(1, 1, 0); @@ -91,7 +91,7 @@ static void test_gettype(skiatest::Reporter* reporter) { matrix.set(2, 0, 1); expectedMask |= SkMatrix44::kAffine_Mask; REPORTER_ASSERT(reporter, matrix.getType() == expectedMask); - + matrix.set(3, 2, 1); REPORTER_ASSERT(reporter, matrix.getType() & SkMatrix44::kPerspective_Mask); } @@ -209,7 +209,7 @@ static void test_set_row_col_major(skiatest::Reporter* reporter) { a.setDouble(row, col, row * 4 + col); } } - + double bufferd[16]; float bufferf[16]; a.asColMajord(bufferd); diff --git a/tests/MatrixTest.cpp b/tests/MatrixTest.cpp index ed2be1d926..894278e84b 100644 --- a/tests/MatrixTest.cpp +++ b/tests/MatrixTest.cpp @@ -98,7 +98,7 @@ static void test_matrix_recttorect(skiatest::Reporter* reporter) { dst.fRight += SK_Scalar1; matrix.setRectToRect(src, dst, SkMatrix::kFill_ScaleToFit); - REPORTER_ASSERT(reporter, + REPORTER_ASSERT(reporter, (SkMatrix::kTranslate_Mask | SkMatrix::kScale_Mask) == matrix.getType()); REPORTER_ASSERT(reporter, matrix.rectStaysRect()); |