aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-20 07:01:07 +0000
committerGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-20 07:01:07 +0000
commit64b682ca42c75667e49251d3ab04f192f92d0dd8 (patch)
tree0247181580034e4c5e54e0b3952aa52135824502 /tests
parentdf798b377b94bc4b843018a84f2a71b9df3cb625 (diff)
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@8785 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r--tests/DataRefTest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/DataRefTest.cpp b/tests/DataRefTest.cpp
index 449149af95..26c263aa13 100644
--- a/tests/DataRefTest.cpp
+++ b/tests/DataRefTest.cpp
@@ -47,10 +47,10 @@ static void test_vartable(skiatest::Reporter* reporter) {
for (int i = 0; i < count; ++i) {
sizes[i] = strlen(str[i]) + 1;
}
-
+
SkAutoTUnref<SkDataTable> table(SkDataTable::NewCopyArrays(
(const void*const*)str, sizes, count));
-
+
REPORTER_ASSERT(reporter, table->count() == count);
for (int i = 0; i < count; ++i) {
size_t size;
@@ -58,7 +58,7 @@ static void test_vartable(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, !strcmp(table->atDataT<const char>(i, &size),
str[i]));
REPORTER_ASSERT(reporter, size == sizes[i]);
-
+
const char* s = table->atStr(i);
REPORTER_ASSERT(reporter, strlen(s) == strlen(str[i]));
}
@@ -71,12 +71,12 @@ static void test_tablebuilder(skiatest::Reporter* reporter) {
int count = SK_ARRAY_COUNT(str);
SkDataTableBuilder builder(16);
-
+
for (int i = 0; i < count; ++i) {
builder.append(str[i], strlen(str[i]) + 1);
}
SkAutoTUnref<SkDataTable> table(builder.createDataTable());
-
+
REPORTER_ASSERT(reporter, table->count() == count);
for (int i = 0; i < count; ++i) {
size_t size;
@@ -84,7 +84,7 @@ static void test_tablebuilder(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, !strcmp(table->atDataT<const char>(i, &size),
str[i]));
REPORTER_ASSERT(reporter, size == strlen(str[i]) + 1);
-
+
const char* s = table->atStr(i);
REPORTER_ASSERT(reporter, strlen(s) == strlen(str[i]));
}