From 11f2b444500d552031fcae0b381a0770600400fd Mon Sep 17 00:00:00 2001 From: "skia.committer@gmail.com" Date: Tue, 4 Jun 2013 07:00:53 +0000 Subject: Sanitizing source files in Housekeeper-Nightly git-svn-id: http://skia.googlecode.com/svn/trunk@9423 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/DataRefTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/DataRefTest.cpp') diff --git a/tests/DataRefTest.cpp b/tests/DataRefTest.cpp index d8bd24b2ba..9ff7034ca0 100644 --- a/tests/DataRefTest.cpp +++ b/tests/DataRefTest.cpp @@ -263,11 +263,11 @@ static void test_files(skiatest::Reporter* reporter) { if (skiatest::Test::GetTmpDir().isEmpty()) { return; } - + const char* tmpDir = skiatest::Test::GetTmpDir().c_str(); SkString path; path.printf("%s%s", tmpDir, "data_test"); - + const char s[] = "abcdefghijklmnopqrstuvwxyz"; { SkFILEWStream writer(path.c_str()); @@ -285,7 +285,7 @@ static void test_files(skiatest::Reporter* reporter) { REPORTER_ASSERT(reporter, r1.get() != NULL); REPORTER_ASSERT(reporter, r1->size() == 26); REPORTER_ASSERT(reporter, strncmp(static_cast(r1->data()), s, 26) == 0); - + int fd = sk_fileno(file); SkAutoTUnref r2(SkData::NewFromFD(fd)); REPORTER_ASSERT(reporter, r2.get() != NULL); -- cgit v1.2.3