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 testBuildOptionalStringWithBadUtf8Size () throws Exception
 
void testBuildRepeatedStringWithBadUtf8 () throws Exception
 
void testBuildRepeatedStringWithBadUtf8Size () throws Exception
 
void testBuildRequiredStringWithBadUtf8 () throws Exception
 
void testBuildRequiredStringWithBadUtf8Size () throws Exception
 
void testBuildRequiredStringWithGoodUtf8 () throws Exception
 
void testParseRequiredStringWithBadUtf8 () throws Exception
 
void testParseRequiredStringWithBadUtf8Size () throws Exception
 
void testParseRequiredStringWithGoodUtf8 () throws Exception
 

Private Member Functions

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)

Definition at line 46 of file CheckUtf8Test.java.

Member Function Documentation

◆ assertParseBadUtf8()

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

Definition at line 130 of file CheckUtf8Test.java.

◆ testBuildOptionalStringWithBadUtf8()

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

Definition at line 73 of file CheckUtf8Test.java.

◆ testBuildOptionalStringWithBadUtf8Size()

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

Definition at line 106 of file CheckUtf8Test.java.

◆ testBuildRepeatedStringWithBadUtf8()

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

Definition at line 82 of file CheckUtf8Test.java.

◆ testBuildRepeatedStringWithBadUtf8Size()

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

Definition at line 115 of file CheckUtf8Test.java.

◆ testBuildRequiredStringWithBadUtf8()

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

Definition at line 64 of file CheckUtf8Test.java.

◆ testBuildRequiredStringWithBadUtf8Size()

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

Definition at line 97 of file CheckUtf8Test.java.

◆ testBuildRequiredStringWithGoodUtf8()

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

Definition at line 53 of file CheckUtf8Test.java.

◆ testParseRequiredStringWithBadUtf8()

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

Definition at line 91 of file CheckUtf8Test.java.

◆ testParseRequiredStringWithBadUtf8Size()

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

Definition at line 124 of file CheckUtf8Test.java.

◆ testParseRequiredStringWithGoodUtf8()

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

Definition at line 58 of file CheckUtf8Test.java.

Member Data Documentation

◆ NON_UTF8_BYTE_STRING

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

◆ UTF8_BYTE_STRING

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

Definition at line 49 of file CheckUtf8Test.java.

◆ UTF8_BYTE_STRING_TEXT

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

Definition at line 48 of file CheckUtf8Test.java.


The documentation for this class was generated from the following file:
byte
SETUP_TEARDOWN_TESTCONTEXT typedef uint8_t byte
Definition: test_stream.cpp:12


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