From 64b682ca42c75667e49251d3ab04f192f92d0dd8 Mon Sep 17 00:00:00 2001 From: "skia.committer@gmail.com" Date: Sat, 20 Apr 2013 07:01:07 +0000 Subject: Sanitizing source files in Skia_Periodic_House_Keeping git-svn-id: http://skia.googlecode.com/svn/trunk@8785 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/DataRefTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/DataRefTest.cpp') 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 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(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 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(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])); } -- cgit v1.2.3