Classes | Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
com.google.protobuf.test.ByteStringTest Class Reference
Inheritance diagram for com.google.protobuf.test.ByteStringTest:
Inheritance graph
[legend]

Classes

class  AvailableStream
 
class  EvilInputStream
 
class  EvilOutputStream
 
class  FailStream
 
class  ReluctantStream
 

Public Member Functions

void testCompositeSubstring ()
 
void testConcat ()
 
void testCopyFrom_ByteBuffer ()
 
void testCopyFrom_ByteBufferSize ()
 
void testCopyFrom_Bytes ()
 
void testCopyFrom_BytesOffsetSize ()
 
void testCopyFrom_Iterable ()
 
void testCopyFrom_StringEncoding () throws UnsupportedEncodingException
 
void testCopyFrom_Utf8 () throws UnsupportedEncodingException
 
void testCopyFromList ()
 
void testCopyTo_TargetOffset ()
 
void testNewOutput_ArrayWrite () throws IOException
 
void testNewOutput_InitialCapacity () throws IOException
 
void testNewOutput_Mixed () throws IOException
 
void testNewOutput_Mutating () throws IOException
 
void testNewOutput_WriteChar () throws IOException
 
void testNewOutputEmpty () throws IOException
 
void testReadFrom_available () throws IOException
 
void testReadFrom_emptyStream () throws IOException
 
void testReadFrom_IOExceptions ()
 
void testReadFrom_largeStream () throws IOException
 
void testReadFrom_mutating () throws IOException
 
void testReadFrom_reluctantStream () throws IOException
 
void testReadFrom_smallStream () throws IOException
 
void testStartsWith ()
 
void testSubstring_BeginIndex ()
 
void testSubstringParity ()
 
void testToStringUtf8 () throws UnsupportedEncodingException
 

Private Member Functions

void assertReadFrom (byte[] bytes) throws IOException
 
void assertReadFromReluctantStream (byte[] bytes, int chunkSize) throws IOException
 
byte[] getTestBytes ()
 
byte[] getTestBytes (int size)
 
boolean isArray (byte[] left, byte[] right)
 
boolean isArrayRange (byte[] left, byte[] right, int rightOffset, int length)
 

Static Private Attributes

static final String UTF_16 = "UTF-16"
 

Detailed Description

Test methods with implementations in ByteString, plus do some top-level "integration" tests.

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

Definition at line 57 of file bloaty/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ByteStringTest.java.

Member Function Documentation

◆ assertReadFrom()

void com.google.protobuf.test.ByteStringTest.assertReadFrom ( byte[]  bytes) throws IOException
inlineprivate

◆ assertReadFromReluctantStream()

void com.google.protobuf.test.ByteStringTest.assertReadFromReluctantStream ( byte[]  bytes,
int  chunkSize 
) throws IOException
inlineprivate

◆ getTestBytes() [1/2]

byte [] com.google.protobuf.test.ByteStringTest.getTestBytes ( )
inlineprivate

◆ getTestBytes() [2/2]

byte [] com.google.protobuf.test.ByteStringTest.getTestBytes ( int  size)
inlineprivate

◆ isArray()

boolean com.google.protobuf.test.ByteStringTest.isArray ( byte[]  left,
byte[]  right 
)
inlineprivate

◆ isArrayRange()

boolean com.google.protobuf.test.ByteStringTest.isArrayRange ( byte[]  left,
byte[]  right,
int  rightOffset,
int  length 
)
inlineprivate

◆ testCompositeSubstring()

void com.google.protobuf.test.ByteStringTest.testCompositeSubstring ( )
inline

◆ testConcat()

void com.google.protobuf.test.ByteStringTest.testConcat ( )
inline

◆ testCopyFrom_ByteBuffer()

void com.google.protobuf.test.ByteStringTest.testCopyFrom_ByteBuffer ( )
inline

◆ testCopyFrom_ByteBufferSize()

void com.google.protobuf.test.ByteStringTest.testCopyFrom_ByteBufferSize ( )
inline

◆ testCopyFrom_Bytes()

void com.google.protobuf.test.ByteStringTest.testCopyFrom_Bytes ( )
inline

◆ testCopyFrom_BytesOffsetSize()

void com.google.protobuf.test.ByteStringTest.testCopyFrom_BytesOffsetSize ( )
inline

◆ testCopyFrom_Iterable()

void com.google.protobuf.test.ByteStringTest.testCopyFrom_Iterable ( )
inline

◆ testCopyFrom_StringEncoding()

void com.google.protobuf.test.ByteStringTest.testCopyFrom_StringEncoding ( ) throws UnsupportedEncodingException
inline

◆ testCopyFrom_Utf8()

void com.google.protobuf.test.ByteStringTest.testCopyFrom_Utf8 ( ) throws UnsupportedEncodingException
inline

◆ testCopyFromList()

void com.google.protobuf.test.ByteStringTest.testCopyFromList ( )
inline

◆ testCopyTo_TargetOffset()

void com.google.protobuf.test.ByteStringTest.testCopyTo_TargetOffset ( )
inline

◆ testNewOutput_ArrayWrite()

void com.google.protobuf.test.ByteStringTest.testNewOutput_ArrayWrite ( ) throws IOException
inline

◆ testNewOutput_InitialCapacity()

void com.google.protobuf.test.ByteStringTest.testNewOutput_InitialCapacity ( ) throws IOException
inline

◆ testNewOutput_Mixed()

void com.google.protobuf.test.ByteStringTest.testNewOutput_Mixed ( ) throws IOException
inline

◆ testNewOutput_Mutating()

void com.google.protobuf.test.ByteStringTest.testNewOutput_Mutating ( ) throws IOException
inline

◆ testNewOutput_WriteChar()

void com.google.protobuf.test.ByteStringTest.testNewOutput_WriteChar ( ) throws IOException
inline

◆ testNewOutputEmpty()

void com.google.protobuf.test.ByteStringTest.testNewOutputEmpty ( ) throws IOException
inline

◆ testReadFrom_available()

void com.google.protobuf.test.ByteStringTest.testReadFrom_available ( ) throws IOException
inline

◆ testReadFrom_emptyStream()

void com.google.protobuf.test.ByteStringTest.testReadFrom_emptyStream ( ) throws IOException
inline

◆ testReadFrom_IOExceptions()

void com.google.protobuf.test.ByteStringTest.testReadFrom_IOExceptions ( )
inline

◆ testReadFrom_largeStream()

void com.google.protobuf.test.ByteStringTest.testReadFrom_largeStream ( ) throws IOException
inline

◆ testReadFrom_mutating()

void com.google.protobuf.test.ByteStringTest.testReadFrom_mutating ( ) throws IOException
inline

◆ testReadFrom_reluctantStream()

void com.google.protobuf.test.ByteStringTest.testReadFrom_reluctantStream ( ) throws IOException
inline

◆ testReadFrom_smallStream()

void com.google.protobuf.test.ByteStringTest.testReadFrom_smallStream ( ) throws IOException
inline

◆ testStartsWith()

void com.google.protobuf.test.ByteStringTest.testStartsWith ( )
inline

◆ testSubstring_BeginIndex()

void com.google.protobuf.test.ByteStringTest.testSubstring_BeginIndex ( )
inline

◆ testSubstringParity()

void com.google.protobuf.test.ByteStringTest.testSubstringParity ( )
inline

◆ testToStringUtf8()

void com.google.protobuf.test.ByteStringTest.testToStringUtf8 ( ) throws UnsupportedEncodingException
inline

Member Data Documentation

◆ UTF_16

final String com.google.protobuf.test.ByteStringTest.UTF_16 = "UTF-16"
staticprivate

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:08