aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PackBitsTest.cpp
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-04-02 16:59:40 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-04-02 16:59:40 +0000
commit80e39a77b16f4396eed230efea1d0b2fc8cbfb00 (patch)
tree01d340ffe7692fd0d7271b9fd30e151574b1b7e8 /tests/PackBitsTest.cpp
parent57b799e951064b9328b5c676dcc3b4cb4477cc2b (diff)
cleanup formating (e.g. no trailing spaces)
git-svn-id: http://skia.googlecode.com/svn/trunk@143 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/PackBitsTest.cpp')
-rw-r--r--tests/PackBitsTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/PackBitsTest.cpp b/tests/PackBitsTest.cpp
index 22de3c3b1d..729467e343 100644
--- a/tests/PackBitsTest.cpp
+++ b/tests/PackBitsTest.cpp
@@ -23,7 +23,7 @@ static void test_pack16(skiatest::Reporter* reporter) {
{ gTest2, SK_ARRAY_COUNT(gTest2) },
{ gTest3, SK_ARRAY_COUNT(gTest3) }
};
-
+
for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); i++) {
uint8_t dst[100];
size_t dstSize = SkPackBits::Pack16(gTests[i].fSrc,
@@ -34,7 +34,7 @@ static void test_pack16(skiatest::Reporter* reporter) {
gTests[i].fCount * sizeof(uint16_t)) == 0;
REPORTER_ASSERT(reporter, match);
}
-
+
for (int n = 1000; n; n--) {
size_t size = 50;
uint16_t src[100], src2[100];
@@ -74,7 +74,7 @@ static void test_pack8(skiatest::Reporter* reporter) {
{ gTest83, SK_ARRAY_COUNT(gTest83) },
{ gTest84, SK_ARRAY_COUNT(gTest84) }
};
-
+
for (size_t i = 4; i < SK_ARRAY_COUNT(gTests); i++) {
uint8_t dst[100];
size_t maxSize = SkPackBits::ComputeMaxSize8(gTests[i].fCount);
@@ -103,7 +103,7 @@ static void test_pack8(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, size == srcCount);
bool match = memcmp(src, src2, size * sizeof(uint8_t)) == 0;
REPORTER_ASSERT(reporter, match);
-
+
for (int j = 0; j < 200; j++) {
size_t skip = gRand.nextU() % size;
size_t write = gRand.nextU() % size;