webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
com.google.protobuf.LiteralByteStringTest Class Reference
Inheritance diagram for com.google.protobuf.LiteralByteStringTest:
com.google.protobuf.BoundedByteStringTest com.google.protobuf.RopeByteStringSubstringTest com.google.protobuf.RopeByteStringTest

Public Member Functions

void testExpectedType ()
 
void testByteAt ()
 
void testByteIterator ()
 
void testByteIterable ()
 
void testSize ()
 
void testGetTreeDepth ()
 
void testIsBalanced ()
 
void testCopyTo_ByteArrayOffsetLength ()
 
void testCopyTo_ByteArrayOffsetLengthErrors ()
 
void testCopyTo_ByteBuffer ()
 
void testMarkSupported ()
 
void testMarkAndReset () throws IOException
 
void testAsReadOnlyByteBuffer ()
 
void testAsReadOnlyByteBufferList ()
 
void testToByteArray ()
 
void testWriteTo () throws IOException
 
void testWriteToShouldNotExposeInternalBufferToOutputStream () throws IOException
 
void testWriteToInternalShouldExposeInternalBufferToOutputStream () throws IOException
 
void testWriteToShouldExposeInternalBufferToByteOutput () throws IOException
 
void testNewOutput () throws IOException
 
void testToString () throws UnsupportedEncodingException
 
void testCharsetToString ()
 
void testToString_returnsCanonicalEmptyString ()
 
void testToString_raisesException ()
 
void testEquals ()
 
void testHashCode ()
 
void testPeekCachedHashCode ()
 
void testPartialHash ()
 
void testNewInput () throws IOException
 
void testNewInput_skip () throws IOException
 
void testNewCodedInput () throws IOException
 
void testConcat_empty ()
 
void testJavaSerialization () throws Exception
 

Protected Member Functions

void setUp () throws Exception
 
String getActualClassName (Object object)
 

Protected Attributes

String classUnderTest
 
byte [] referenceBytes
 
ByteString stringUnderTest
 
int expectedHashCode
 

Static Protected Attributes

static final String UTF_8 = "UTF-8"
 

Detailed Description

Test

LiteralByteString

by setting up a reference string in setUp(). This class is designed to be extended for testing extensions of

LiteralByteString

such as

BoundedByteString

, see BoundedByteStringTest.

Author
carla.nosp@m.nton.nosp@m.@goog.nosp@m.le.c.nosp@m.om (Carl Haverl)

Member Function Documentation

◆ getActualClassName()

String com.google.protobuf.LiteralByteStringTest.getActualClassName ( Object  object)
inlineprotected

◆ setUp()

void com.google.protobuf.LiteralByteStringTest.setUp ( ) throws Exception
inlineprotected

◆ testAsReadOnlyByteBuffer()

void com.google.protobuf.LiteralByteStringTest.testAsReadOnlyByteBuffer ( )
inline

◆ testAsReadOnlyByteBufferList()

void com.google.protobuf.LiteralByteStringTest.testAsReadOnlyByteBufferList ( )
inline

◆ testByteAt()

void com.google.protobuf.LiteralByteStringTest.testByteAt ( )
inline

◆ testByteIterable()

void com.google.protobuf.LiteralByteStringTest.testByteIterable ( )
inline

◆ testByteIterator()

void com.google.protobuf.LiteralByteStringTest.testByteIterator ( )
inline

◆ testCharsetToString()

void com.google.protobuf.LiteralByteStringTest.testCharsetToString ( )
inline

◆ testConcat_empty()

void com.google.protobuf.LiteralByteStringTest.testConcat_empty ( )
inline

Make sure we keep things simple when concatenating with empty. See also ByteStringTest#testConcat_empty().

◆ testCopyTo_ByteArrayOffsetLength()

void com.google.protobuf.LiteralByteStringTest.testCopyTo_ByteArrayOffsetLength ( )
inline

◆ testCopyTo_ByteArrayOffsetLengthErrors()

void com.google.protobuf.LiteralByteStringTest.testCopyTo_ByteArrayOffsetLengthErrors ( )
inline

◆ testCopyTo_ByteBuffer()

void com.google.protobuf.LiteralByteStringTest.testCopyTo_ByteBuffer ( )
inline

◆ testEquals()

void com.google.protobuf.LiteralByteStringTest.testEquals ( )
inline

◆ testExpectedType()

void com.google.protobuf.LiteralByteStringTest.testExpectedType ( )
inline

◆ testGetTreeDepth()

void com.google.protobuf.LiteralByteStringTest.testGetTreeDepth ( )
inline

◆ testHashCode()

void com.google.protobuf.LiteralByteStringTest.testHashCode ( )
inline

◆ testIsBalanced()

void com.google.protobuf.LiteralByteStringTest.testIsBalanced ( )
inline

◆ testJavaSerialization()

void com.google.protobuf.LiteralByteStringTest.testJavaSerialization ( ) throws Exception
inline

◆ testMarkAndReset()

void com.google.protobuf.LiteralByteStringTest.testMarkAndReset ( ) throws IOException
inline

◆ testMarkSupported()

void com.google.protobuf.LiteralByteStringTest.testMarkSupported ( )
inline

◆ testNewCodedInput()

void com.google.protobuf.LiteralByteStringTest.testNewCodedInput ( ) throws IOException
inline

◆ testNewInput()

void com.google.protobuf.LiteralByteStringTest.testNewInput ( ) throws IOException
inline

◆ testNewInput_skip()

void com.google.protobuf.LiteralByteStringTest.testNewInput_skip ( ) throws IOException
inline

◆ testNewOutput()

void com.google.protobuf.LiteralByteStringTest.testNewOutput ( ) throws IOException
inline

◆ testPartialHash()

void com.google.protobuf.LiteralByteStringTest.testPartialHash ( )
inline

◆ testPeekCachedHashCode()

void com.google.protobuf.LiteralByteStringTest.testPeekCachedHashCode ( )
inline

◆ testSize()

void com.google.protobuf.LiteralByteStringTest.testSize ( )
inline

◆ testToByteArray()

void com.google.protobuf.LiteralByteStringTest.testToByteArray ( )
inline

◆ testToString()

void com.google.protobuf.LiteralByteStringTest.testToString ( ) throws UnsupportedEncodingException
inline

◆ testToString_raisesException()

void com.google.protobuf.LiteralByteStringTest.testToString_raisesException ( )
inline

◆ testToString_returnsCanonicalEmptyString()

void com.google.protobuf.LiteralByteStringTest.testToString_returnsCanonicalEmptyString ( )
inline

◆ testWriteTo()

void com.google.protobuf.LiteralByteStringTest.testWriteTo ( ) throws IOException
inline

◆ testWriteToInternalShouldExposeInternalBufferToOutputStream()

void com.google.protobuf.LiteralByteStringTest.testWriteToInternalShouldExposeInternalBufferToOutputStream ( ) throws IOException
inline

◆ testWriteToShouldExposeInternalBufferToByteOutput()

void com.google.protobuf.LiteralByteStringTest.testWriteToShouldExposeInternalBufferToByteOutput ( ) throws IOException
inline

◆ testWriteToShouldNotExposeInternalBufferToOutputStream()

void com.google.protobuf.LiteralByteStringTest.testWriteToShouldNotExposeInternalBufferToOutputStream ( ) throws IOException
inline

Member Data Documentation

◆ classUnderTest

String com.google.protobuf.LiteralByteStringTest.classUnderTest
protected

◆ expectedHashCode

int com.google.protobuf.LiteralByteStringTest.expectedHashCode
protected

◆ referenceBytes

byte [] com.google.protobuf.LiteralByteStringTest.referenceBytes
protected

◆ stringUnderTest

ByteString com.google.protobuf.LiteralByteStringTest.stringUnderTest
protected

◆ UTF_8

final String com.google.protobuf.LiteralByteStringTest.UTF_8 = "UTF-8"
staticprotected

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