From d6176b0dcacb124539e0cfd051e6d93a9782f020 Mon Sep 17 00:00:00 2001 From: "rmistry@google.com" Date: Thu, 23 Aug 2012 18:14:13 +0000 Subject: Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) This CL is part II of IV (I broke down the 1280 files into 4 CLs). Review URL: https://codereview.appspot.com/6474054 git-svn-id: http://skia.googlecode.com/svn/trunk@5263 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/DataRefTest.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/DataRefTest.cpp') diff --git a/tests/DataRefTest.cpp b/tests/DataRefTest.cpp index 8505fa96a0..d6ba775ccd 100644 --- a/tests/DataRefTest.cpp +++ b/tests/DataRefTest.cpp @@ -14,7 +14,7 @@ template class SkTUnref { public: SkTUnref(T* ref) : fRef(ref) {} ~SkTUnref() { fRef->unref(); } - + operator T*() { return fRef; } operator const T*() { return fRef; } @@ -42,7 +42,7 @@ static void test_dataset_subset(skiatest::Reporter* reporter, static void test_datasets_equal(skiatest::Reporter* reporter, const SkDataSet& ds0, const SkDataSet& ds1) { REPORTER_ASSERT(reporter, ds0.count() == ds1.count()); - + test_dataset_subset(reporter, ds0, ds1); test_dataset_subset(reporter, ds1, ds0); } @@ -50,7 +50,7 @@ static void test_datasets_equal(skiatest::Reporter* reporter, static void test_dataset(skiatest::Reporter* reporter, const SkDataSet& ds, int count) { REPORTER_ASSERT(reporter, ds.count() == count); - + SkDataSet::Iter iter(ds); int index = 0; for (; !iter.done(); iter.next()) { @@ -66,14 +66,14 @@ static void test_dataset(skiatest::Reporter* reporter, const SkDataSet& ds, SkMemoryStream istream; istream.setData(ostream.copyToData())->unref(); SkDataSet copy(&istream); - + test_datasets_equal(reporter, ds, copy); } static void test_dataset(skiatest::Reporter* reporter) { SkDataSet set0(NULL, 0); SkDataSet set1("hello", SkTUnref(SkData::NewWithCString("world"))); - + const SkDataSet::Pair pairs[] = { { "one", SkData::NewWithCString("1") }, { "two", SkData::NewWithCString("2") }, @@ -133,7 +133,7 @@ static void TestData(skiatest::Reporter* reporter) { assert_len(reporter, r1, strlen(str)); assert_len(reporter, r2, N * sizeof(int)); assert_len(reporter, r3, 6); - + assert_data(reporter, r1, str, strlen(str)); assert_data(reporter, r3, "people", 6); @@ -143,7 +143,7 @@ static void TestData(skiatest::Reporter* reporter) { tmp = SkData::NewSubset(r1, 0, 0); assert_len(reporter, tmp, 0); tmp->unref(); - + test_cstring(reporter); test_dataset(reporter); } -- cgit v1.2.3