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

Public Member Functions

void testBuildOptionalStringWithBadUtf8 () throws Exception
 
void testBuildOptionalStringWithBadUtf8 () throws Exception
 
void testBuildOptionalStringWithBadUtf8Size () throws Exception
 
void testBuildOptionalStringWithBadUtf8Size () throws Exception
 
void testBuildRepeatedStringWithBadUtf8 () throws Exception
 
void testBuildRepeatedStringWithBadUtf8 () throws Exception
 
void testBuildRepeatedStringWithBadUtf8Size () throws Exception
 
void testBuildRepeatedStringWithBadUtf8Size () throws Exception
 
void testBuildRequiredStringWithBadUtf8 () throws Exception
 
void testBuildRequiredStringWithBadUtf8 () throws Exception
 
void testBuildRequiredStringWithBadUtf8Size () throws Exception
 
void testBuildRequiredStringWithBadUtf8Size () throws Exception
 
void testBuildRequiredStringWithGoodUtf8 () throws Exception
 
void testBuildRequiredStringWithGoodUtf8 () throws Exception
 
void testParseRequiredStringWithBadUtf8 () throws Exception
 
void testParseRequiredStringWithBadUtf8 () throws Exception
 
void testParseRequiredStringWithBadUtf8Size () throws Exception
 
void testParseRequiredStringWithBadUtf8Size () throws Exception
 
void testParseRequiredStringWithGoodUtf8 () throws Exception
 
void testParseRequiredStringWithGoodUtf8 () throws Exception
 

Private Member Functions

void assertParseBadUtf8 (MessageLite defaultInstance, byte[] data) throws Exception
 
void assertParseBadUtf8 (MessageLite defaultInstance, byte[] data) throws Exception
 

Static Private Attributes

static final ByteString NON_UTF8_BYTE_STRING
 
static final ByteString UTF8_BYTE_STRING = ByteString.copyFromUtf8(UTF8_BYTE_STRING_TEXT)
 
static final String UTF8_BYTE_STRING_TEXT = "some text"
 

Detailed Description

Test that protos generated with file option java_string_check_utf8 do in fact perform appropriate UTF-8 checks.

Author
jbaum.nosp@m.@goo.nosp@m.gle.c.nosp@m.om (Jacob Butcher)

Test that protos generated with file option java_string_check_utf8 do in fact perform appropriate UTF-8 checks.

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

Member Function Documentation

◆ assertParseBadUtf8() [1/2]

void com.google.protobuf.CheckUtf8Test.assertParseBadUtf8 ( MessageLite  defaultInstance,
byte[]  data 
) throws Exception
inlineprivate

◆ assertParseBadUtf8() [2/2]

void com.google.protobuf.CheckUtf8Test.assertParseBadUtf8 ( MessageLite  defaultInstance,
byte[]  data 
) throws Exception
inlineprivate

◆ testBuildOptionalStringWithBadUtf8() [1/2]

void com.google.protobuf.CheckUtf8Test.testBuildOptionalStringWithBadUtf8 ( ) throws Exception
inline

◆ testBuildOptionalStringWithBadUtf8() [2/2]

void com.google.protobuf.CheckUtf8Test.testBuildOptionalStringWithBadUtf8 ( ) throws Exception
inline

◆ testBuildOptionalStringWithBadUtf8Size() [1/2]

void com.google.protobuf.CheckUtf8Test.testBuildOptionalStringWithBadUtf8Size ( ) throws Exception
inline

◆ testBuildOptionalStringWithBadUtf8Size() [2/2]

void com.google.protobuf.CheckUtf8Test.testBuildOptionalStringWithBadUtf8Size ( ) throws Exception
inline

◆ testBuildRepeatedStringWithBadUtf8() [1/2]

void com.google.protobuf.CheckUtf8Test.testBuildRepeatedStringWithBadUtf8 ( ) throws Exception
inline

◆ testBuildRepeatedStringWithBadUtf8() [2/2]

void com.google.protobuf.CheckUtf8Test.testBuildRepeatedStringWithBadUtf8 ( ) throws Exception
inline

◆ testBuildRepeatedStringWithBadUtf8Size() [1/2]

void com.google.protobuf.CheckUtf8Test.testBuildRepeatedStringWithBadUtf8Size ( ) throws Exception
inline

◆ testBuildRepeatedStringWithBadUtf8Size() [2/2]

void com.google.protobuf.CheckUtf8Test.testBuildRepeatedStringWithBadUtf8Size ( ) throws Exception
inline

◆ testBuildRequiredStringWithBadUtf8() [1/2]

void com.google.protobuf.CheckUtf8Test.testBuildRequiredStringWithBadUtf8 ( ) throws Exception
inline

◆ testBuildRequiredStringWithBadUtf8() [2/2]

void com.google.protobuf.CheckUtf8Test.testBuildRequiredStringWithBadUtf8 ( ) throws Exception
inline

◆ testBuildRequiredStringWithBadUtf8Size() [1/2]

void com.google.protobuf.CheckUtf8Test.testBuildRequiredStringWithBadUtf8Size ( ) throws Exception
inline

◆ testBuildRequiredStringWithBadUtf8Size() [2/2]

void com.google.protobuf.CheckUtf8Test.testBuildRequiredStringWithBadUtf8Size ( ) throws Exception
inline

◆ testBuildRequiredStringWithGoodUtf8() [1/2]

void com.google.protobuf.CheckUtf8Test.testBuildRequiredStringWithGoodUtf8 ( ) throws Exception
inline

◆ testBuildRequiredStringWithGoodUtf8() [2/2]

void com.google.protobuf.CheckUtf8Test.testBuildRequiredStringWithGoodUtf8 ( ) throws Exception
inline

◆ testParseRequiredStringWithBadUtf8() [1/2]

void com.google.protobuf.CheckUtf8Test.testParseRequiredStringWithBadUtf8 ( ) throws Exception
inline

◆ testParseRequiredStringWithBadUtf8() [2/2]

void com.google.protobuf.CheckUtf8Test.testParseRequiredStringWithBadUtf8 ( ) throws Exception
inline

◆ testParseRequiredStringWithBadUtf8Size() [1/2]

void com.google.protobuf.CheckUtf8Test.testParseRequiredStringWithBadUtf8Size ( ) throws Exception
inline

◆ testParseRequiredStringWithBadUtf8Size() [2/2]

void com.google.protobuf.CheckUtf8Test.testParseRequiredStringWithBadUtf8Size ( ) throws Exception
inline

◆ testParseRequiredStringWithGoodUtf8() [1/2]

void com.google.protobuf.CheckUtf8Test.testParseRequiredStringWithGoodUtf8 ( ) throws Exception
inline

◆ testParseRequiredStringWithGoodUtf8() [2/2]

void com.google.protobuf.CheckUtf8Test.testParseRequiredStringWithGoodUtf8 ( ) throws Exception
inline

Member Data Documentation

◆ NON_UTF8_BYTE_STRING

static final ByteString com.google.protobuf.CheckUtf8Test.NON_UTF8_BYTE_STRING
staticprivate
Initial value:
=
ByteString.copyFrom(new byte[] {(byte) 0x80})

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

◆ UTF8_BYTE_STRING

static final ByteString com.google.protobuf.CheckUtf8Test.UTF8_BYTE_STRING = ByteString.copyFromUtf8(UTF8_BYTE_STRING_TEXT)
staticprivate

◆ UTF8_BYTE_STRING_TEXT

static final String com.google.protobuf.CheckUtf8Test.UTF8_BYTE_STRING_TEXT = "some text"
staticprivate

The documentation for this class was generated from the following file:
ares::byte
unsigned char byte
Definition: ares-test.h:33


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