webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Public Member Functions | List of all members
com.google.protobuf.CodedOutputStreamTest Class Reference
Inheritance diagram for com.google.protobuf.CodedOutputStreamTest:

Public Member Functions

void testVarintRoundTrips () throws Exception
 
void testWriteVarint () throws Exception
 
void testWriteLittleEndian () throws Exception
 
void testEncodeZigZag () throws Exception
 
void testWriteWholeMessage () throws Exception
 
void testWriteWholePackedFieldsMessage () throws Exception
 
void testWriteMessageWithNegativeEnumValue () throws Exception
 
void testGetTotalBytesWritten () throws Exception
 
void testWriteStringNoTag_fastpath () throws Exception
 
void testWriteToByteBuffer () throws Exception
 
void testWriteByteBuffer () throws Exception
 
void testWriteByteArrayWithOffsets () throws Exception
 
void testSerializeUtf8_MultipleSmallWrites () throws Exception
 
void testSerializeInvalidUtf8 () throws Exception
 
void testSerializeInvalidUtf8FollowedByOutOfSpace () throws Exception
 
void testCorrectExceptionThrowWhenEncodingStringsWithoutEnoughSpace () throws Exception
 
void testDifferentStringLengths () throws Exception
 
void testNioEncodersWithInitialOffsets () throws Exception
 

Detailed Description

Unit test for CodedOutputStream.

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

Member Function Documentation

◆ testCorrectExceptionThrowWhenEncodingStringsWithoutEnoughSpace()

void com.google.protobuf.CodedOutputStreamTest.testCorrectExceptionThrowWhenEncodingStringsWithoutEnoughSpace ( ) throws Exception
inline

◆ testDifferentStringLengths()

void com.google.protobuf.CodedOutputStreamTest.testDifferentStringLengths ( ) throws Exception
inline

◆ testEncodeZigZag()

void com.google.protobuf.CodedOutputStreamTest.testEncodeZigZag ( ) throws Exception
inline

Test encodeZigZag32() and encodeZigZag64().

◆ testGetTotalBytesWritten()

void com.google.protobuf.CodedOutputStreamTest.testGetTotalBytesWritten ( ) throws Exception
inline

Test getTotalBytesWritten()

◆ testNioEncodersWithInitialOffsets()

void com.google.protobuf.CodedOutputStreamTest.testNioEncodersWithInitialOffsets ( ) throws Exception
inline

◆ testSerializeInvalidUtf8()

void com.google.protobuf.CodedOutputStreamTest.testSerializeInvalidUtf8 ( ) throws Exception
inline

◆ testSerializeInvalidUtf8FollowedByOutOfSpace()

void com.google.protobuf.CodedOutputStreamTest.testSerializeInvalidUtf8FollowedByOutOfSpace ( ) throws Exception
inline

◆ testSerializeUtf8_MultipleSmallWrites()

void com.google.protobuf.CodedOutputStreamTest.testSerializeUtf8_MultipleSmallWrites ( ) throws Exception
inline

◆ testVarintRoundTrips()

void com.google.protobuf.CodedOutputStreamTest.testVarintRoundTrips ( ) throws Exception
inline

Checks that invariants are maintained for varint round trip input and output.

◆ testWriteByteArrayWithOffsets()

void com.google.protobuf.CodedOutputStreamTest.testWriteByteArrayWithOffsets ( ) throws Exception
inline

◆ testWriteByteBuffer()

void com.google.protobuf.CodedOutputStreamTest.testWriteByteBuffer ( ) throws Exception
inline

◆ testWriteLittleEndian()

void com.google.protobuf.CodedOutputStreamTest.testWriteLittleEndian ( ) throws Exception
inline

Tests writeRawLittleEndian32() and writeRawLittleEndian64().

◆ testWriteMessageWithNegativeEnumValue()

void com.google.protobuf.CodedOutputStreamTest.testWriteMessageWithNegativeEnumValue ( ) throws Exception
inline

Test writing a message containing a negative enum value. This used to fail because the size was not properly computed as a sign-extended varint.

◆ testWriteStringNoTag_fastpath()

void com.google.protobuf.CodedOutputStreamTest.testWriteStringNoTag_fastpath ( ) throws Exception
inline

◆ testWriteToByteBuffer()

void com.google.protobuf.CodedOutputStreamTest.testWriteToByteBuffer ( ) throws Exception
inline

◆ testWriteVarint()

void com.google.protobuf.CodedOutputStreamTest.testWriteVarint ( ) throws Exception
inline

Tests writeRawVarint32() and writeRawVarint64().

◆ testWriteWholeMessage()

void com.google.protobuf.CodedOutputStreamTest.testWriteWholeMessage ( ) throws Exception
inline

Tests writing a whole message with every field type.

◆ testWriteWholePackedFieldsMessage()

void com.google.protobuf.CodedOutputStreamTest.testWriteWholePackedFieldsMessage ( ) throws Exception
inline

Tests writing a whole message with every packed field type. Ensures the wire format of packed fields is compatible with C++.


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