Index: tests/SerializationTest.cpp |
diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp |
index 9bdfe1e0e622e9af6b20f026481af48b3ff8f321..a8f253f0257eebe4c9cf0c025fddd177a67e4352 100644 |
--- a/tests/SerializationTest.cpp |
+++ b/tests/SerializationTest.cpp |
@@ -139,7 +139,7 @@ template<> struct SerializationTestUtils<SkString, true> { |
template<typename T, bool testInvalid> |
static void TestObjectSerializationNoAlign(T* testObj, skiatest::Reporter* reporter) { |
- SkWriteBuffer writer(SkWriteBuffer::kValidation_Flag); |
+ SkWriteBuffer writer; |
SerializationUtils<T>::Write(writer, testObj); |
size_t bytesWritten = writer.bytesWritten(); |
REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); |
@@ -177,7 +177,7 @@ static void TestObjectSerialization(T* testObj, skiatest::Reporter* reporter) { |
template<typename T> |
static T* TestFlattenableSerialization(T* testObj, bool shouldSucceed, |
skiatest::Reporter* reporter) { |
- SkWriteBuffer writer(SkWriteBuffer::kValidation_Flag); |
+ SkWriteBuffer writer; |
SerializationUtils<T>::Write(writer, testObj); |
size_t bytesWritten = writer.bytesWritten(); |
REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); |
@@ -215,7 +215,7 @@ static T* TestFlattenableSerialization(T* testObj, bool shouldSucceed, |
template<typename T> |
static void TestArraySerialization(T* data, skiatest::Reporter* reporter) { |
- SkWriteBuffer writer(SkWriteBuffer::kValidation_Flag); |
+ SkWriteBuffer writer; |
SerializationUtils<T>::Write(writer, data, kArraySize); |
size_t bytesWritten = writer.bytesWritten(); |
// This should write the length (in 4 bytes) and the array |
@@ -533,7 +533,7 @@ DEF_TEST(Serialization, reporter) { |
sk_sp<SkPicture> pict(recorder.finishRecordingAsPicture()); |
// Serialize picture |
- SkWriteBuffer writer(SkWriteBuffer::kValidation_Flag); |
+ SkWriteBuffer writer; |
pict->flatten(writer); |
size_t size = writer.bytesWritten(); |
SkAutoTMalloc<unsigned char> data(size); |