Home
last modified time | relevance | path

Searched refs:rawOutput (Results 1 – 8 of 8) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf.Test/
DCodedOutputStreamTest.cs51 MemoryStream rawOutput = new MemoryStream(); in AssertWriteVarint()
52 CodedOutputStream output = new CodedOutputStream(rawOutput); in AssertWriteVarint()
55 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
61 MemoryStream rawOutput = new MemoryStream(); in AssertWriteVarint()
62 CodedOutputStream output = new CodedOutputStream(rawOutput); in AssertWriteVarint()
65 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
77 MemoryStream rawOutput = new MemoryStream(); in AssertWriteVarint()
79 new CodedOutputStream(rawOutput, bufferSize); in AssertWriteVarint()
82 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
86 MemoryStream rawOutput = new MemoryStream(); in AssertWriteVarint()
[all …]
/external/protobuf/objectivec/Tests/
DGPBCodedOuputStreamTests.m83 NSOutputStream* rawOutput = [NSOutputStream outputStreamToMemory];
85 [GPBCodedOutputStream streamWithOutputStream:rawOutput];
90 [rawOutput propertyForKey:NSStreamDataWrittenToMemoryStreamKey];
95 rawOutput = [NSOutputStream outputStreamToMemory];
96 output = [GPBCodedOutputStream streamWithOutputStream:rawOutput
101 actual = [rawOutput propertyForKey:NSStreamDataWrittenToMemoryStreamKey];
107 NSOutputStream* rawOutput = [NSOutputStream outputStreamToMemory];
109 [GPBCodedOutputStream streamWithOutputStream:rawOutput];
114 [rawOutput propertyForKey:NSStreamDataWrittenToMemoryStreamKey];
119 rawOutput = [NSOutputStream outputStreamToMemory];
[all …]
DGPBCodedInputStreamTests.m248 NSOutputStream* rawOutput = [NSOutputStream outputStreamToMemory];
250 [GPBCodedOutputStream streamWithOutputStream:rawOutput];
260 [rawOutput propertyForKey:NSStreamDataWrittenToMemoryStreamKey];
273 NSOutputStream* rawOutput = [NSOutputStream outputStreamToMemory];
275 [GPBCodedOutputStream streamWithOutputStream:rawOutput];
287 [rawOutput propertyForKey:NSStreamDataWrittenToMemoryStreamKey];
310 NSOutputStream* rawOutput = [NSOutputStream outputStreamToMemory];
312 [GPBCodedOutputStream streamWithOutputStream:rawOutput];
323 [rawOutput propertyForKey:NSStreamDataWrittenToMemoryStreamKey];
/external/skia/tests/
DAnnotationTest.cpp66 const char* rawOutput = (const char*)out->data(); in DEF_TEST() local
68 REPORTER_ASSERT(reporter, ContainsString(rawOutput, out->size(), "/Annots ")); in DEF_TEST()
84 const char* rawOutput = (const char*)out->data(); in DEF_TEST() local
87 ContainsString(rawOutput, out->size(), "/example ")); in DEF_TEST()
105 const char* rawOutput = (const char*)out->data(); in DEF_TEST() local
108 ContainsString(rawOutput, out->size(), "a xlink:href=\"http://www.gooogle.com\"")); in DEF_TEST()
122 const char* rawOutput = (const char*)out->data(); in DEF_TEST() local
125 ContainsString(rawOutput, out->size(), in DEF_TEST()
/external/skqp/tests/
DAnnotationTest.cpp66 const char* rawOutput = (const char*)out->data(); in DEF_TEST() local
68 REPORTER_ASSERT(reporter, ContainsString(rawOutput, out->size(), "/Annots ")); in DEF_TEST()
84 const char* rawOutput = (const char*)out->data(); in DEF_TEST() local
87 ContainsString(rawOutput, out->size(), "/example ")); in DEF_TEST()
107 const char* rawOutput = (const char*)out->data(); in DEF_TEST() local
110 ContainsString(rawOutput, out->size(), "a xlink:href=\"http://www.gooogle.com\"")); in DEF_TEST()
126 const char* rawOutput = (const char*)out->data(); in DEF_TEST() local
129 ContainsString(rawOutput, out->size(), in DEF_TEST()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DCodedInputStreamTest.java420 ByteString.Output rawOutput = ByteString.newOutput(); in testReadMaliciouslyLargeBlob() local
421 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput); in testReadMaliciouslyLargeBlob()
429 CodedInputStream input = rawOutput.toByteString().newCodedInput(); in testReadMaliciouslyLargeBlob()
560 ByteString.Output rawOutput = ByteString.newOutput(); in testReadString() local
561 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput, bytes.length); in testReadString()
571 new ByteArrayInputStream(rawOutput.toByteString().toByteArray())); in testReadString()
585 ByteString.Output rawOutput = ByteString.newOutput(); in testReadStringRequireUtf8() local
586 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput, bytes.length); in testReadStringRequireUtf8()
596 new ByteArrayInputStream(rawOutput.toByteString().toByteArray())); in testReadStringRequireUtf8()
608 ByteString.Output rawOutput = ByteString.newOutput(); in testReadStringInvalidUtf8() local
[all …]
DCodedOutputStreamTest.java737 ByteArrayOutputStream rawOutput = new ByteArrayOutputStream();
738 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput, blockSize);
741 assertEqualBytes(OutputType.STREAM, data, rawOutput.toByteArray());
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DWrappersTest.cs157 var rawOutput = new MemoryStream(); in RepeatedWrappersBinaryFormat()
158 var output = new CodedOutputStream(rawOutput); in RepeatedWrappersBinaryFormat()
168 var expectedBytes = rawOutput.ToArray(); in RepeatedWrappersBinaryFormat()