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 testIllegalCodepoints () throws Exception
 
void testInvalid_4BytesSamples () throws Exception
 
void testInvalidBufferSlice () throws Exception
 
void testOneByte () throws Exception
 
void testOverlong () throws Exception
 
void testRealStrings () throws Exception
 
void testRoundTripAllValidChars () throws Exception
 
void testThreeBytes () throws Exception
 
void testTwoBytes () throws Exception
 

Private Member Functions

void assertDecode (String expected, String actual)
 
void assertInvalid (byte[] bytes) throws Exception
 
void assertInvalid (int... bytesAsInt) throws Exception
 
void assertInvalidSlice (byte[] bytes, int index, int size) throws Exception
 
void assertRoundTrips (String str) throws Exception
 
void assertRoundTrips (String str, int index, int size) throws Exception
 
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 DecodeUtf8Test.java.

Member Function Documentation

◆ assertDecode()

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

Definition at line 311 of file DecodeUtf8Test.java.

◆ assertInvalid() [1/2]

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

Definition at line 186 of file DecodeUtf8Test.java.

◆ assertInvalid() [2/2]

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

Definition at line 178 of file DecodeUtf8Test.java.

◆ assertInvalidSlice()

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

Definition at line 233 of file DecodeUtf8Test.java.

◆ assertRoundTrips() [1/2]

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

Definition at line 280 of file DecodeUtf8Test.java.

◆ assertRoundTrips() [2/2]

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

Definition at line 284 of file DecodeUtf8Test.java.

◆ codepoints()

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

Definition at line 317 of file DecodeUtf8Test.java.

◆ testBufferSlice()

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

Definition at line 164 of file DecodeUtf8Test.java.

◆ testIllegalCodepoints()

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

Definition at line 143 of file DecodeUtf8Test.java.

◆ testInvalid_4BytesSamples()

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 DecodeUtf8Test.java.

◆ testInvalidBufferSlice()

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

Definition at line 170 of file DecodeUtf8Test.java.

◆ testOneByte()

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

Definition at line 29 of file DecodeUtf8Test.java.

◆ testOverlong()

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

Definition at line 127 of file DecodeUtf8Test.java.

◆ testRealStrings()

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

Definition at line 96 of file DecodeUtf8Test.java.

◆ testRoundTripAllValidChars()

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

Definition at line 18 of file DecodeUtf8Test.java.

◆ testThreeBytes()

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

Definition at line 57 of file DecodeUtf8Test.java.

◆ testTwoBytes()

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

Definition at line 42 of file DecodeUtf8Test.java.

Member Data Documentation

◆ logger

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

Definition at line 13 of file DecodeUtf8Test.java.

◆ SAFE_PROCESSOR

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

Definition at line 15 of file DecodeUtf8Test.java.

◆ UNSAFE_PROCESSOR

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

Definition at line 16 of file DecodeUtf8Test.java.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:07