aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/BitmapGetColorTest.cpp
diff options
context:
space:
mode:
authorGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-29 07:03:21 +0000
committerGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-29 07:03:21 +0000
commita6ff36bd61a20077a93223d90bc97dce65f2e7e8 (patch)
tree836dcf6e0dc8d7ba38c3bad67e4fd172612869e3 /tests/BitmapGetColorTest.cpp
parent5d41b36dd5bf6832c0fe02645cb3f911b7fa7c4b (diff)
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@9826 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/BitmapGetColorTest.cpp')
-rw-r--r--tests/BitmapGetColorTest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/BitmapGetColorTest.cpp b/tests/BitmapGetColorTest.cpp
index 3363777eb2..11c22e6fa3 100644
--- a/tests/BitmapGetColorTest.cpp
+++ b/tests/BitmapGetColorTest.cpp
@@ -40,7 +40,7 @@ static void test_equal_A1_A8(skiatest::Reporter* reporter,
int p8 = *bm8.getAddr8(x, y);
SkASSERT(0 == p8 || 0xFF == p8);
-
+
REPORTER_ASSERT(reporter, p1 == p8);
}
}
@@ -51,7 +51,7 @@ static void test_eraserect_A1(skiatest::Reporter* reporter) {
const int H = 13;
SkBitmap bm1, bm8;
-
+
bm1.setConfig(SkBitmap::kA1_Config, W, H);
bm1.allocPixels();
bm8.setConfig(SkBitmap::kA8_Config, W, H);
@@ -61,10 +61,10 @@ static void test_eraserect_A1(skiatest::Reporter* reporter) {
for (int i = 0; i < 10000; ++i) {
SkIRect area;
rand_irect(&area, W, H, rand);
-
+
bm1.eraseColor(0);
bm8.eraseColor(0);
-
+
bm1.eraseArea(area, SK_ColorWHITE);
bm8.eraseArea(area, SK_ColorWHITE);
test_equal_A1_A8(reporter, bm1, bm8);
@@ -105,7 +105,7 @@ static void TestGetColor(skiatest::Reporter* reporter) {
SkColor c = bm.getColor(1, 1);
REPORTER_ASSERT(reporter, c == gRec[i].fOutColor);
}
-
+
test_eraserect_A1(reporter);
}