From c3d7d90973528527131c72549b10c2a21300e0ac Mon Sep 17 00:00:00 2001 From: "skia.committer@gmail.com" Date: Fri, 30 Nov 2012 02:01:24 +0000 Subject: Sanitizing source files in Skia_Periodic_House_Keeping git-svn-id: http://skia.googlecode.com/svn/trunk@6632 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/PictureTest.cpp | 2 +- tests/RoundRectTest.cpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'tests') diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp index 567a8d2006..79ca3132f7 100644 --- a/tests/PictureTest.cpp +++ b/tests/PictureTest.cpp @@ -207,7 +207,7 @@ static void test_gatherpixelrefs(skiatest::Reporter* reporter) { SkAutoDataUnref adu(data); gather_from_colors(result, refs, N, &array); - + /* * GatherPixelRefs is conservative, so it can return more bitmaps * that we actually can see (usually because of conservative bounds diff --git a/tests/RoundRectTest.cpp b/tests/RoundRectTest.cpp index fd4780c687..a358c5a66f 100644 --- a/tests/RoundRectTest.cpp +++ b/tests/RoundRectTest.cpp @@ -16,7 +16,7 @@ static void test_round_rect_basic(skiatest::Reporter* reporter) { // Test out initialization methods SkPoint zeroPt = { 0.0, 0.0 }; SkRRect empty; - + empty.setEmpty(); REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type()); @@ -48,7 +48,7 @@ static void test_round_rect_basic(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, rr2.rect() == rect); for (int i = 0; i < 4; ++i) { - REPORTER_ASSERT(reporter, + REPORTER_ASSERT(reporter, rr2.radii((SkRRect::Corner) i).equalsWithinTolerance(halfPoint)); } @@ -63,7 +63,7 @@ static void test_round_rect_basic(skiatest::Reporter* reporter) { for (int i = 0; i < 4; ++i) { REPORTER_ASSERT(reporter, p == rr3.radii((SkRRect::Corner) i)); } - + //---- SkPoint radii[4] = { { 5, 5 }, { 5, 5 }, { 5, 5 }, { 5, 5 } }; @@ -99,7 +99,7 @@ static void test_round_rect_basic(skiatest::Reporter* reporter) { // Test out the cases when the RR degenerates to a rect static void test_round_rect_rects(skiatest::Reporter* reporter) { SkRect r; - static const SkPoint pts[] = { + static const SkPoint pts[] = { // Upper Left { -SK_Scalar1, -SK_Scalar1 }, // out { SK_Scalar1, SK_Scalar1 }, // in @@ -121,7 +121,7 @@ static void test_round_rect_rects(skiatest::Reporter* reporter) { //---- SkRRect empty; - + empty.setEmpty(); REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type()); @@ -166,7 +166,7 @@ static void test_round_rect_ovals(skiatest::Reporter* reporter) { static const SkScalar kEps = 0.1f; static const SkScalar kWidthTol = SkScalarHalf(kWidth) * (SK_Scalar1 - SK_ScalarRoot2Over2); static const SkScalar kHeightTol = SkScalarHalf(kHeight) * (SK_Scalar1 - SK_ScalarRoot2Over2); - static const SkPoint pts[] = { + static const SkPoint pts[] = { // Upper Left { kWidthTol - kEps, kHeightTol - kEps }, // out { kWidthTol + kEps, kHeightTol + kEps }, // in @@ -204,7 +204,7 @@ static void test_round_rect_ovals(skiatest::Reporter* reporter) { static void test_round_rect_general(skiatest::Reporter* reporter) { static const SkScalar kEps = 0.1f; static const SkScalar kDist20 = 20 * (SK_Scalar1 - SK_ScalarRoot2Over2); - static const SkPoint pts[] = { + static const SkPoint pts[] = { // Upper Left { kDist20 - kEps, kDist20 - kEps }, // out { kDist20 + kEps, kDist20 + kEps }, // in @@ -236,7 +236,7 @@ static void test_round_rect_general(skiatest::Reporter* reporter) { //---- static const SkScalar kDist50 = 50*(SK_Scalar1 - SK_ScalarRoot2Over2); - static const SkPoint pts2[] = { + static const SkPoint pts2[] = { // Upper Left { -SK_Scalar1, -SK_Scalar1 }, // out { SK_Scalar1, SK_Scalar1 }, // in -- cgit v1.2.3