webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | List of all members
com.google.protobuf.CodedInputStreamTest Class Reference
Inheritance diagram for com.google.protobuf.CodedInputStreamTest:

Public Member Functions

void testReadVarint () throws Exception
 
void testReadLittleEndian () throws Exception
 
void testDecodeZigZag () throws Exception
 
void testReadWholeMessage () throws Exception
 
void testSkipWholeMessage () throws Exception
 
void testSkipRawBytesBug () throws Exception
 
void testSkipRawBytesPastEndOfBufferWithLimit () throws Exception
 
void testReadHugeBlob () throws Exception
 
void testReadMaliciouslyLargeBlob () throws Exception
 
void testMaliciousRecursion () throws Exception
 
void testSizeLimit () throws Exception
 
void testResetSizeCounter () throws Exception
 
void testSizeLimitMultipleMessages () throws Exception
 
void testReadString () throws Exception
 
void testReadStringRequireUtf8 () throws Exception
 
void testReadStringInvalidUtf8 () throws Exception
 
void testReadStringRequireUtf8InvalidUtf8 () throws Exception
 
void testReadFromSlice () throws Exception
 
void testInvalidTag () throws Exception
 
void testReadByteArray () throws Exception
 
void testReadByteBuffer () throws Exception
 
void testReadByteBufferAliasing () throws Exception
 
void testCompatibleTypes () throws Exception
 

Detailed Description

Unit test for CodedInputStream.

Author
kento.nosp@m.n@go.nosp@m.ogle..nosp@m.com Kenton Varda

Member Function Documentation

◆ testCompatibleTypes()

void com.google.protobuf.CodedInputStreamTest.testCompatibleTypes ( ) throws Exception
inline

◆ testDecodeZigZag()

void com.google.protobuf.CodedInputStreamTest.testDecodeZigZag ( ) throws Exception
inline

Test decodeZigZag32() and decodeZigZag64().

◆ testInvalidTag()

void com.google.protobuf.CodedInputStreamTest.testInvalidTag ( ) throws Exception
inline

◆ testMaliciousRecursion()

void com.google.protobuf.CodedInputStreamTest.testMaliciousRecursion ( ) throws Exception
inline

◆ testReadByteArray()

void com.google.protobuf.CodedInputStreamTest.testReadByteArray ( ) throws Exception
inline

◆ testReadByteBuffer()

void com.google.protobuf.CodedInputStreamTest.testReadByteBuffer ( ) throws Exception
inline

◆ testReadByteBufferAliasing()

void com.google.protobuf.CodedInputStreamTest.testReadByteBufferAliasing ( ) throws Exception
inline

◆ testReadFromSlice()

void com.google.protobuf.CodedInputStreamTest.testReadFromSlice ( ) throws Exception
inline

◆ testReadHugeBlob()

void com.google.protobuf.CodedInputStreamTest.testReadHugeBlob ( ) throws Exception
inline

◆ testReadLittleEndian()

void com.google.protobuf.CodedInputStreamTest.testReadLittleEndian ( ) throws Exception
inline

Tests readRawLittleEndian32() and readRawLittleEndian64().

◆ testReadMaliciouslyLargeBlob()

void com.google.protobuf.CodedInputStreamTest.testReadMaliciouslyLargeBlob ( ) throws Exception
inline

◆ testReadString()

void com.google.protobuf.CodedInputStreamTest.testReadString ( ) throws Exception
inline

◆ testReadStringInvalidUtf8()

void com.google.protobuf.CodedInputStreamTest.testReadStringInvalidUtf8 ( ) throws Exception
inline

Tests that if we readString invalid UTF-8 bytes, no exception is thrown. Instead, the invalid bytes are replaced with the Unicode "replacement character" U+FFFD.

◆ testReadStringRequireUtf8()

void com.google.protobuf.CodedInputStreamTest.testReadStringRequireUtf8 ( ) throws Exception
inline

◆ testReadStringRequireUtf8InvalidUtf8()

void com.google.protobuf.CodedInputStreamTest.testReadStringRequireUtf8InvalidUtf8 ( ) throws Exception
inline

Tests that if we readStringRequireUtf8 invalid UTF-8 bytes, an InvalidProtocolBufferException is thrown.

◆ testReadVarint()

void com.google.protobuf.CodedInputStreamTest.testReadVarint ( ) throws Exception
inline

Tests readRawVarint32() and readRawVarint64().

◆ testReadWholeMessage()

void com.google.protobuf.CodedInputStreamTest.testReadWholeMessage ( ) throws Exception
inline

Tests reading and parsing a whole message with every field type.

◆ testResetSizeCounter()

void com.google.protobuf.CodedInputStreamTest.testResetSizeCounter ( ) throws Exception
inline

◆ testSizeLimit()

void com.google.protobuf.CodedInputStreamTest.testSizeLimit ( ) throws Exception
inline

◆ testSizeLimitMultipleMessages()

void com.google.protobuf.CodedInputStreamTest.testSizeLimitMultipleMessages ( ) throws Exception
inline

◆ testSkipRawBytesBug()

void com.google.protobuf.CodedInputStreamTest.testSkipRawBytesBug ( ) throws Exception
inline

Test that a bug in skipRawBytes() has been fixed: if the skip skips exactly up to a limit, this should not break things.

◆ testSkipRawBytesPastEndOfBufferWithLimit()

void com.google.protobuf.CodedInputStreamTest.testSkipRawBytesPastEndOfBufferWithLimit ( ) throws Exception
inline

Test that a bug in skipRawBytes() has been fixed: if the skip skips past the end of a buffer with a limit that has been set past the end of that buffer, this should not break things.

◆ testSkipWholeMessage()

void com.google.protobuf.CodedInputStreamTest.testSkipWholeMessage ( ) throws Exception
inline

Tests skipField().


The documentation for this class was generated from the following file: