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

Public Member Functions

void testBufferSlice () throws Exception
 
void testBufferSlice () throws Exception
 
void testIllegalCodepoints () throws Exception
 
void testIllegalCodepoints () throws Exception
 
void testInvalid_4BytesSamples () throws Exception
 
void testInvalid_4BytesSamples () throws Exception
 
void testInvalidBufferSlice () throws Exception
 
void testInvalidBufferSlice () throws Exception
 
void testOneByte () throws Exception
 
void testOneByte () throws Exception
 
void testOverlong () throws Exception
 
void testOverlong () throws Exception
 
void testRealStrings () throws Exception
 
void testRealStrings () throws Exception
 
void testRoundTripAllValidChars () throws Exception
 
void testRoundTripAllValidChars () throws Exception
 
void testThreeBytes () throws Exception
 
void testThreeBytes () throws Exception
 
void testTwoBytes () throws Exception
 
void testTwoBytes () throws Exception
 

Private Member Functions

void assertDecode (String expected, String actual)
 
void assertDecode (String expected, String actual)
 
void assertInvalid (byte[] bytes) throws Exception
 
void assertInvalid (byte[] bytes, ByteBuffer buffer) throws Exception
 
void assertInvalid (int... bytesAsInt) throws Exception
 
void assertInvalid (int... bytesAsInt) throws Exception
 
void assertInvalidSlice (byte[] bytes, int index, int size) throws Exception
 
void assertInvalidSlice (byte[] bytes, int index, int size) throws Exception
 
void assertRoundTrips (String str) throws Exception
 
void assertRoundTrips (String str) throws Exception
 
void assertRoundTrips (String str, int index, int size) throws Exception
 
void assertRoundTrips (String str, int index, int size) throws Exception
 
List< String > codepoints (String str)
 
List< String > codepoints (String str)
 

Static Private Attributes

static Logger logger = Logger.getLogger(DecodeUtf8Test.class.getName())
 
static final Processor SAFE_PROCESSOR = new SafeProcessor()
 
static final Processor UNSAFE_PROCESSOR = new UnsafeProcessor()
 

Detailed Description

Definition at line 12 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/DecodeUtf8Test.java.

Member Function Documentation

◆ assertDecode() [1/2]

void com.google.protobuf.DecodeUtf8Test.assertDecode ( String  expected,
String  actual 
)
inlineprivate

◆ assertDecode() [2/2]

void com.google.protobuf.DecodeUtf8Test.assertDecode ( String  expected,
String  actual 
)
inlineprivate

◆ assertInvalid() [1/4]

void com.google.protobuf.DecodeUtf8Test.assertInvalid ( byte[]  bytes) throws Exception
inlineprivate

◆ assertInvalid() [2/4]

void com.google.protobuf.DecodeUtf8Test.assertInvalid ( byte[]  bytes,
ByteBuffer  buffer 
) throws Exception
inlineprivate

◆ assertInvalid() [3/4]

void com.google.protobuf.DecodeUtf8Test.assertInvalid ( int...  bytesAsInt) throws Exception
inlineprivate

◆ assertInvalid() [4/4]

void com.google.protobuf.DecodeUtf8Test.assertInvalid ( int...  bytesAsInt) throws Exception
inlineprivate

◆ assertInvalidSlice() [1/2]

void com.google.protobuf.DecodeUtf8Test.assertInvalidSlice ( byte[]  bytes,
int  index,
int  size 
) throws Exception
inlineprivate

◆ assertInvalidSlice() [2/2]

void com.google.protobuf.DecodeUtf8Test.assertInvalidSlice ( byte[]  bytes,
int  index,
int  size 
) throws Exception
inlineprivate

◆ assertRoundTrips() [1/4]

void com.google.protobuf.DecodeUtf8Test.assertRoundTrips ( String  str) throws Exception
inlineprivate

◆ assertRoundTrips() [2/4]

void com.google.protobuf.DecodeUtf8Test.assertRoundTrips ( String  str) throws Exception
inlineprivate

◆ assertRoundTrips() [3/4]

void com.google.protobuf.DecodeUtf8Test.assertRoundTrips ( String  str,
int  index,
int  size 
) throws Exception
inlineprivate

◆ assertRoundTrips() [4/4]

void com.google.protobuf.DecodeUtf8Test.assertRoundTrips ( String  str,
int  index,
int  size 
) throws Exception
inlineprivate

◆ codepoints() [1/2]

List<String> com.google.protobuf.DecodeUtf8Test.codepoints ( String  str)
inlineprivate

◆ codepoints() [2/2]

List<String> com.google.protobuf.DecodeUtf8Test.codepoints ( String  str)
inlineprivate

◆ testBufferSlice() [1/2]

void com.google.protobuf.DecodeUtf8Test.testBufferSlice ( ) throws Exception
inline

◆ testBufferSlice() [2/2]

void com.google.protobuf.DecodeUtf8Test.testBufferSlice ( ) throws Exception
inline

◆ testIllegalCodepoints() [1/2]

void com.google.protobuf.DecodeUtf8Test.testIllegalCodepoints ( ) throws Exception
inline

◆ testIllegalCodepoints() [2/2]

void com.google.protobuf.DecodeUtf8Test.testIllegalCodepoints ( ) throws Exception
inline

◆ testInvalid_4BytesSamples() [1/2]

void com.google.protobuf.DecodeUtf8Test.testInvalid_4BytesSamples ( ) throws Exception
inline

Tests that round tripping of a sample of four byte permutations work.

Definition at line 86 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/DecodeUtf8Test.java.

◆ testInvalid_4BytesSamples() [2/2]

void com.google.protobuf.DecodeUtf8Test.testInvalid_4BytesSamples ( ) throws Exception
inline

Tests that round tripping of a sample of four byte permutations work.

Definition at line 114 of file protobuf/java/core/src/test/java/com/google/protobuf/DecodeUtf8Test.java.

◆ testInvalidBufferSlice() [1/2]

void com.google.protobuf.DecodeUtf8Test.testInvalidBufferSlice ( ) throws Exception
inline

◆ testInvalidBufferSlice() [2/2]

void com.google.protobuf.DecodeUtf8Test.testInvalidBufferSlice ( ) throws Exception
inline

◆ testOneByte() [1/2]

void com.google.protobuf.DecodeUtf8Test.testOneByte ( ) throws Exception
inline

◆ testOneByte() [2/2]

void com.google.protobuf.DecodeUtf8Test.testOneByte ( ) throws Exception
inline

◆ testOverlong() [1/2]

void com.google.protobuf.DecodeUtf8Test.testOverlong ( ) throws Exception
inline

◆ testOverlong() [2/2]

void com.google.protobuf.DecodeUtf8Test.testOverlong ( ) throws Exception
inline

◆ testRealStrings() [1/2]

void com.google.protobuf.DecodeUtf8Test.testRealStrings ( ) throws Exception
inline

◆ testRealStrings() [2/2]

void com.google.protobuf.DecodeUtf8Test.testRealStrings ( ) throws Exception
inline

◆ testRoundTripAllValidChars() [1/2]

void com.google.protobuf.DecodeUtf8Test.testRoundTripAllValidChars ( ) throws Exception
inline

◆ testRoundTripAllValidChars() [2/2]

void com.google.protobuf.DecodeUtf8Test.testRoundTripAllValidChars ( ) throws Exception
inline

◆ testThreeBytes() [1/2]

void com.google.protobuf.DecodeUtf8Test.testThreeBytes ( ) throws Exception
inline

◆ testThreeBytes() [2/2]

void com.google.protobuf.DecodeUtf8Test.testThreeBytes ( ) throws Exception
inline

◆ testTwoBytes() [1/2]

void com.google.protobuf.DecodeUtf8Test.testTwoBytes ( ) throws Exception
inline

◆ testTwoBytes() [2/2]

void com.google.protobuf.DecodeUtf8Test.testTwoBytes ( ) throws Exception
inline

Member Data Documentation

◆ logger

static Logger com.google.protobuf.DecodeUtf8Test.logger = Logger.getLogger(DecodeUtf8Test.class.getName())
staticprivate

◆ SAFE_PROCESSOR

static final Processor com.google.protobuf.DecodeUtf8Test.SAFE_PROCESSOR = new SafeProcessor()
staticprivate

◆ UNSAFE_PROCESSOR

static final Processor com.google.protobuf.DecodeUtf8Test.UNSAFE_PROCESSOR = new UnsafeProcessor()
staticprivate

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


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