|
| static final Charset | UTF_16 = Charset.forName("UTF-16") |
| |
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 core/src/test/java/com/google/protobuf/ByteStringTest.java.
◆ assertReadFrom()
| void com.google.protobuf.ByteStringTest.assertReadFrom |
( |
byte[] |
bytes | ) |
throws IOException |
|
inlineprivate |
◆ assertReadFromReluctantStream()
| void com.google.protobuf.ByteStringTest.assertReadFromReluctantStream |
( |
byte[] |
bytes, |
|
|
int |
chunkSize |
|
) |
| throws IOException |
|
inlineprivate |
◆ getTestBytes() [1/2]
| byte [] com.google.protobuf.ByteStringTest.getTestBytes |
( |
| ) |
|
|
inlineprivate |
◆ getTestBytes() [2/2]
| byte [] com.google.protobuf.ByteStringTest.getTestBytes |
( |
int |
size | ) |
|
|
inlineprivate |
◆ isArray()
| boolean com.google.protobuf.ByteStringTest.isArray |
( |
byte[] |
left, |
|
|
byte[] |
right |
|
) |
| |
|
inlineprivate |
◆ isArrayRange()
| boolean com.google.protobuf.ByteStringTest.isArrayRange |
( |
byte[] |
left, |
|
|
byte[] |
right, |
|
|
int |
rightOffset, |
|
|
int |
length |
|
) |
| |
|
inlineprivate |
◆ substringUsingWriteTo()
| byte [] com.google.protobuf.ByteStringTest.substringUsingWriteTo |
( |
ByteString |
data, |
|
|
int |
offset, |
|
|
int |
length |
|
) |
| throws IOException |
|
inlineprivate |
◆ testByteArrayCopier()
| void com.google.protobuf.ByteStringTest.testByteArrayCopier |
( |
| ) |
throws Exception |
|
inline |
◆ testCompare_byteStringsSortLexicographically()
| void com.google.protobuf.ByteStringTest.testCompare_byteStringsSortLexicographically |
( |
| ) |
throws Exception |
|
inline |
◆ testCompare_equalByteStrings_compareEqual()
| void com.google.protobuf.ByteStringTest.testCompare_equalByteStrings_compareEqual |
( |
| ) |
throws Exception |
|
inline |
◆ testCompare_interpretsByteValuesAsUnsigned()
| void com.google.protobuf.ByteStringTest.testCompare_interpretsByteValuesAsUnsigned |
( |
| ) |
throws Exception |
|
inline |
◆ testCompositeSubstring()
| void com.google.protobuf.ByteStringTest.testCompositeSubstring |
( |
| ) |
|
|
inline |
◆ testConcat()
| void com.google.protobuf.ByteStringTest.testConcat |
( |
| ) |
|
|
inline |
◆ testConcat_empty()
| void com.google.protobuf.ByteStringTest.testConcat_empty |
( |
| ) |
|
|
inline |
◆ testCopyFrom_ByteBuffer()
| void com.google.protobuf.ByteStringTest.testCopyFrom_ByteBuffer |
( |
| ) |
|
|
inline |
◆ testCopyFrom_ByteBufferSize()
| void com.google.protobuf.ByteStringTest.testCopyFrom_ByteBufferSize |
( |
| ) |
|
|
inline |
◆ testCopyFrom_Bytes()
| void com.google.protobuf.ByteStringTest.testCopyFrom_Bytes |
( |
| ) |
|
|
inline |
◆ testCopyFrom_BytesOffsetSize()
| void com.google.protobuf.ByteStringTest.testCopyFrom_BytesOffsetSize |
( |
| ) |
|
|
inline |
◆ testCopyFrom_Iterable()
| void com.google.protobuf.ByteStringTest.testCopyFrom_Iterable |
( |
| ) |
|
|
inline |
◆ testCopyFrom_LengthTooBig()
| void com.google.protobuf.ByteStringTest.testCopyFrom_LengthTooBig |
( |
| ) |
|
|
inline |
◆ testCopyFrom_StringEncoding()
| void com.google.protobuf.ByteStringTest.testCopyFrom_StringEncoding |
( |
| ) |
|
|
inline |
◆ testCopyFrom_Utf8()
| void com.google.protobuf.ByteStringTest.testCopyFrom_Utf8 |
( |
| ) |
|
|
inline |
◆ testCopyFromList()
| void com.google.protobuf.ByteStringTest.testCopyFromList |
( |
| ) |
|
|
inline |
◆ testCopyTo_TargetOffset()
| void com.google.protobuf.ByteStringTest.testCopyTo_TargetOffset |
( |
| ) |
|
|
inline |
◆ testEndsWith()
| void com.google.protobuf.ByteStringTest.testEndsWith |
( |
| ) |
|
|
inline |
◆ testNewCodedBuilder()
| void com.google.protobuf.ByteStringTest.testNewCodedBuilder |
( |
| ) |
throws IOException |
|
inline |
◆ testNewOutput_ArrayWrite()
| void com.google.protobuf.ByteStringTest.testNewOutput_ArrayWrite |
( |
| ) |
|
|
inline |
◆ testNewOutput_InitialCapacity()
| void com.google.protobuf.ByteStringTest.testNewOutput_InitialCapacity |
( |
| ) |
throws IOException |
|
inline |
◆ testNewOutput_Mixed()
| void com.google.protobuf.ByteStringTest.testNewOutput_Mixed |
( |
| ) |
|
|
inline |
◆ testNewOutput_Mutating()
| void com.google.protobuf.ByteStringTest.testNewOutput_Mutating |
( |
| ) |
throws IOException |
|
inline |
◆ testNewOutput_WriteChar()
| void com.google.protobuf.ByteStringTest.testNewOutput_WriteChar |
( |
| ) |
|
|
inline |
◆ testNewOutputEmpty()
| void com.google.protobuf.ByteStringTest.testNewOutputEmpty |
( |
| ) |
|
|
inline |
◆ testReadFrom_available()
| void com.google.protobuf.ByteStringTest.testReadFrom_available |
( |
| ) |
throws IOException |
|
inline |
◆ testReadFrom_byteBoundaries()
| void com.google.protobuf.ByteStringTest.testReadFrom_byteBoundaries |
( |
| ) |
throws IOException |
|
inline |
◆ testReadFrom_emptyStream()
| void com.google.protobuf.ByteStringTest.testReadFrom_emptyStream |
( |
| ) |
throws IOException |
|
inline |
◆ testReadFrom_IOExceptions()
| void com.google.protobuf.ByteStringTest.testReadFrom_IOExceptions |
( |
| ) |
|
|
inline |
◆ testReadFrom_largeStream()
| void com.google.protobuf.ByteStringTest.testReadFrom_largeStream |
( |
| ) |
throws IOException |
|
inline |
◆ testReadFrom_mediumStream()
| void com.google.protobuf.ByteStringTest.testReadFrom_mediumStream |
( |
| ) |
throws IOException |
|
inline |
◆ testReadFrom_mutating()
| void com.google.protobuf.ByteStringTest.testReadFrom_mutating |
( |
| ) |
throws IOException |
|
inline |
◆ testReadFrom_reluctantStream()
| void com.google.protobuf.ByteStringTest.testReadFrom_reluctantStream |
( |
| ) |
throws IOException |
|
inline |
◆ testReadFrom_smallStream()
| void com.google.protobuf.ByteStringTest.testReadFrom_smallStream |
( |
| ) |
throws IOException |
|
inline |
◆ testStartsWith()
| void com.google.protobuf.ByteStringTest.testStartsWith |
( |
| ) |
|
|
inline |
◆ testSubstring_BeginIndex()
| void com.google.protobuf.ByteStringTest.testSubstring_BeginIndex |
( |
| ) |
|
|
inline |
◆ testSubstringParity()
| void com.google.protobuf.ByteStringTest.testSubstringParity |
( |
| ) |
|
|
inline |
◆ testToStringUtf8()
| void com.google.protobuf.ByteStringTest.testToStringUtf8 |
( |
| ) |
|
|
inline |
◆ testWriteToOutputStream()
| void com.google.protobuf.ByteStringTest.testWriteToOutputStream |
( |
| ) |
throws Exception |
|
inline |
◆ UTF_16
| final Charset com.google.protobuf.ByteStringTest.UTF_16 = Charset.forName("UTF-16") |
|
staticprivate |
The documentation for this class was generated from the following file: