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

Unified Diff: tests/Writer32Test.cpp

Issue 1779263003: Make sp variants for SkData (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « tests/CodexTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/Writer32Test.cpp
diff --git a/tests/Writer32Test.cpp b/tests/Writer32Test.cpp
index e03a9163aa446050fabb979a456f54a56a89c78f..67896f0dec4ac4a6ba89d23a2b4270cca25b707d 100644
--- a/tests/Writer32Test.cpp
+++ b/tests/Writer32Test.cpp
@@ -304,12 +304,12 @@ DEF_TEST(Writer32_data, reporter) {
sizeWritten += sizes[2];
REPORTER_ASSERT(reporter, sizeWritten == writer.bytesWritten());
- SkAutoTUnref<SkData> result(writer.snapshotAsData());
+ auto result(writer.snapshotAsData());
SkReader32 reader(result->data(), result->size());
- SkAutoTUnref<SkData> d0(reader.readData()),
- d1(reader.readData()),
- d2(reader.readData());
+ auto d0(reader.readData()),
+ d1(reader.readData()),
+ d2(reader.readData());
REPORTER_ASSERT(reporter, 0 == d0->size());
REPORTER_ASSERT(reporter, strlen(str)+1 == d1->size());
« no previous file with comments | « tests/CodexTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698