aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SerializationTest.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-09-30 09:27:20 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-30 09:27:20 -0700
commitd921dbb9b88327eef7b1fbd42e9d88bace4a65ff (patch)
tree9e09b7892076ab1f71c82520c0609dbfc3b0f8a0 /tests/SerializationTest.cpp
parent84741b308496409f4ff662658167221fc6801bbe (diff)
Propagate validation errors from inner readbuffer when deserializing picture. Also allow null paints.
Diffstat (limited to 'tests/SerializationTest.cpp')
-rw-r--r--tests/SerializationTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp
index 24cab3f3fc..9e407015b9 100644
--- a/tests/SerializationTest.cpp
+++ b/tests/SerializationTest.cpp
@@ -566,6 +566,7 @@ DEF_TEST(Serialization, reporter) {
// Deserialize picture
SkValidatingReadBuffer reader(static_cast<void*>(data.get()), size);
sk_sp<SkPicture> readPict(SkPicture::MakeFromBuffer(reader));
+ REPORTER_ASSERT(reporter, reader.isValid());
REPORTER_ASSERT(reporter, readPict.get());
}