Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(989)

Unified Diff: tests/DataRefTest.cpp

Issue 23548034: Follow up to serialization validation code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/pipe/SkGPipeRead.cpp ('K') | « tests/ColorFilterTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/DataRefTest.cpp
diff --git a/tests/DataRefTest.cpp b/tests/DataRefTest.cpp
index 313a61066d3d273b165ff4e040e93f0885f049f9..eddbc78b9a1fb4be19428cc0b29c9681cfb3b9a3 100644
--- a/tests/DataRefTest.cpp
+++ b/tests/DataRefTest.cpp
@@ -36,7 +36,7 @@ static void test_datatable_flatten(skiatest::Reporter* reporter,
wb.writeToMemory(storage.get());
SkOrderedReadBuffer rb(storage.get(), wsize);
- SkAutoTUnref<SkDataTable> newTable((SkDataTable*)rb.readFlattenable());
+ SkAutoTUnref<SkDataTable> newTable(rb.readFlattenableT<SkDataTable>());
test_is_equal(reporter, table, newTable);
}
« src/pipe/SkGPipeRead.cpp ('K') | « tests/ColorFilterTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698