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

Public Member Functions

void testNoStringCachingIfOnlyBytesAccessed () throws Exception
 
void testParseAndSerialize () throws InvalidProtocolBufferException
 
void testParseAndWrite () throws IOException
 

Protected Member Functions

void setUp () throws Exception
 

Private Attributes

ByteString encodedTestAllTypes
 

Static Private Attributes

static ByteString TEST_ALL_TYPES_SERIALIZED_WITH_ILLEGAL_UTF8
 

Detailed Description

Tests to make sure the lazy conversion of UTF8-encoded byte arrays to strings works correctly.

Author
jonp@.nosp@m.goog.nosp@m.le.co.nosp@m.m (Jon Perlow)

Definition at line 47 of file bloaty/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/LazyStringEndToEndTest.java.

Member Function Documentation

◆ setUp()

void com.google.protobuf.test.LazyStringEndToEndTest.setUp ( ) throws Exception
inlineprotected

◆ testNoStringCachingIfOnlyBytesAccessed()

void com.google.protobuf.test.LazyStringEndToEndTest.testNoStringCachingIfOnlyBytesAccessed ( ) throws Exception
inline

◆ testParseAndSerialize()

void com.google.protobuf.test.LazyStringEndToEndTest.testParseAndSerialize ( ) throws InvalidProtocolBufferException
inline

Tests that an invalid UTF8 string will roundtrip through a parse and serialization.

Definition at line 71 of file bloaty/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/LazyStringEndToEndTest.java.

◆ testParseAndWrite()

void com.google.protobuf.test.LazyStringEndToEndTest.testParseAndWrite ( ) throws IOException
inline

Member Data Documentation

◆ encodedTestAllTypes

ByteString com.google.protobuf.test.LazyStringEndToEndTest.encodedTestAllTypes
private

◆ TEST_ALL_TYPES_SERIALIZED_WITH_ILLEGAL_UTF8

ByteString com.google.protobuf.test.LazyStringEndToEndTest.TEST_ALL_TYPES_SERIALIZED_WITH_ILLEGAL_UTF8
staticprivate
Initial value:
=
ByteString.copyFrom(new byte[] {
114, 4, -1, 0, -1, 0, -30, 2, 4, -1,
0, -1, 0, -30, 2, 4, -1, 0, -1, 0, })

Definition at line 49 of file bloaty/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/LazyStringEndToEndTest.java.


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


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