webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
com.google.protobuf.nano.NanoTest Class Reference
Inheritance diagram for com.google.protobuf.nano.NanoTest:

Public Member Functions

void setUp () throws Exception
 
void testSimpleMessageNano () throws Exception
 
void testRecursiveMessageNano () throws Exception
 
void testMessageNoFields ()
 
void testNanoRequiredInt32 () throws Exception
 
void testNanoOptionalInt32 () throws Exception
 
void testNanoOptionalInt64 () throws Exception
 
void testNanoOptionalUint32 () throws Exception
 
void testNanoOptionalUint64 () throws Exception
 
void testNanoOptionalSint32 () throws Exception
 
void testNanoOptionalSint64 () throws Exception
 
void testNanoOptionalFixed32 () throws Exception
 
void testNanoOptionalFixed64 () throws Exception
 
void testNanoOptionalSfixed32 () throws Exception
 
void testNanoOptionalSfixed64 () throws Exception
 
void testNanoOptionalFloat () throws Exception
 
void testNanoOptionalDouble () throws Exception
 
void testNanoOptionalBool () throws Exception
 
void testNanoOptionalString () throws Exception
 
void testNanoOptionalBytes () throws Exception
 
void testNanoOptionalGroup () throws Exception
 
void testNanoOptionalGroupWithUnknownFieldsEnabled () throws Exception
 
void testNanoOptionalNestedMessage () throws Exception
 
void testNanoOptionalForeignMessage () throws Exception
 
void testNanoOptionalImportMessage () throws Exception
 
void testNanoOptionalNestedEnum () throws Exception
 
void testNanoOptionalForeignEnum () throws Exception
 
void testNanoOptionalImportEnum () throws Exception
 
void testNanoOptionalStringPiece () throws Exception
 
void testNanoOptionalCord () throws Exception
 
void testNanoRepeatedInt32 () throws Exception
 
void testNanoRepeatedInt64 () throws Exception
 
void testNanoRepeatedUint32 () throws Exception
 
void testNanoRepeatedUint64 () throws Exception
 
void testNanoRepeatedSint32 () throws Exception
 
void testNanoRepeatedSint64 () throws Exception
 
void testNanoRepeatedFixed32 () throws Exception
 
void testNanoRepeatedFixed64 () throws Exception
 
void testNanoRepeatedSfixed32 () throws Exception
 
void testNanoRepeatedSfixed64 () throws Exception
 
void testNanoRepeatedFloat () throws Exception
 
void testNanoRepeatedDouble () throws Exception
 
void testNanoRepeatedBool () throws Exception
 
void testNanoRepeatedString () throws Exception
 
void testNanoRepeatedBytes () throws Exception
 
void testNanoRepeatedGroup () throws Exception
 
void testNanoRepeatedNestedMessage () throws Exception
 
void testNanoRepeatedForeignMessage () throws Exception
 
void testNanoRepeatedImportMessage () throws Exception
 
void testNanoRepeatedNestedEnum () throws Exception
 
void testNanoRepeatedForeignEnum () throws Exception
 
void testNanoRepeatedImportEnum () throws Exception
 
void testNanoRepeatedStringPiece () throws Exception
 
void testNanoRepeatedCord () throws Exception
 
void testNanoRepeatedPackedInt32 () throws Exception
 
void testNanoRepeatedPackedSfixed64 () throws Exception
 
void testNanoRepeatedPackedNestedEnum () throws Exception
 
void testNanoRepeatedPackedSerializedSize () throws Exception
 
void testNanoRepeatedInt32ReMerge () throws Exception
 
void testNanoRepeatedNestedEnumReMerge () throws Exception
 
void testNanoRepeatedNestedMessageReMerge () throws Exception
 
void testNanoEnumValidity () throws Exception
 
void testNanoEnumValidityAccessors () throws Exception
 
void testNanoSingle () throws Exception
 
void testNanoMultipleNameClash () throws Exception
 
void testNanoMultipleEnumScoping () throws Exception
 
void testNanoMultipleImportingNonMultiple () throws Exception
 
void testNanoDefaults () throws Exception
 
void testDifferentStringLengthsNano () throws Exception
 
void testCorrectExceptionThrowWhenEncodingStringsWithoutEnoughSpace () throws Exception
 
void testNanoWithHasParseFrom () throws Exception
 
void testNanoWithHasSerialize () throws Exception
 
void testNanoWithAccessorsBasic () throws Exception
 
void testNanoWithAccessorsParseFrom () throws Exception
 
void testNanoWithAccessorsPublicFieldTypes () throws Exception
 
void testNanoWithAccessorsSerialize () throws Exception
 
void testNanoJavaEnumStyle () throws Exception
 
void testNanoNotANumberDefaults () throws Exception
 
void testSkipRawBytesBug () throws Exception
 
void testSkipRawBytesPastEndOfBufferWithLimit () throws Exception
 
void testMessageNanoPrinter ()
 
void testMessageNanoPrinterAccessors () throws Exception
 
void testMessageNanoPrinterForMaps () throws Exception
 
void testExtensions () throws Exception
 
void testNullExtensions () throws Exception
 
void testExtensionsMutation ()
 
void testExtensionsMutation_Equals () throws InvalidProtocolBufferNanoException
 
void testExtensionsCaching ()
 
void testUnknownFields () throws Exception
 
void testMergeFrom () throws Exception
 
void testJavaKeyword () throws Exception
 
void testReferenceTypesForPrimitives () throws Exception
 
void testHashCodeEquals () throws Exception
 
void testEqualsWithSpecialFloatingPointValues () throws Exception
 
void testOneofHashCodeEquals () throws Exception
 
void testOneofDefault () throws Exception
 
void testOneofExclusiveness () throws Exception
 
void testOneofClear () throws Exception
 
void testOneofMarshaling () throws Exception
 
void testOneofSerializedConcat () throws Exception
 
void testNullRepeatedFields () throws Exception
 
void testNullRepeatedFieldElements () throws Exception
 
void testRepeatedMerge () throws Exception
 
void testRepeatedPackables () throws Exception
 
void testMapsSerializeAndParse () throws Exception
 
void testMapSerializeRejectNull () throws Exception
 
void testMapMergeOverrideMessageValues () throws Exception
 
void testMapMergeEmptyEntry () throws Exception
 
void testMapEquals () throws Exception
 
void testRepeatedFieldInitializedInReftypesCompatMode ()
 
void testClone () throws Exception
 

Detailed Description

Test nano runtime.

Author
ulas@.nosp@m.goog.nosp@m.le.co.nosp@m.m Ulas Kirazci

Member Function Documentation

◆ setUp()

void com.google.protobuf.nano.NanoTest.setUp ( ) throws Exception
inline

◆ testClone()

void com.google.protobuf.nano.NanoTest.testClone ( ) throws Exception
inline

◆ testCorrectExceptionThrowWhenEncodingStringsWithoutEnoughSpace()

void com.google.protobuf.nano.NanoTest.testCorrectExceptionThrowWhenEncodingStringsWithoutEnoughSpace ( ) throws Exception
inline

◆ testDifferentStringLengthsNano()

void com.google.protobuf.nano.NanoTest.testDifferentStringLengthsNano ( ) throws Exception
inline

◆ testEqualsWithSpecialFloatingPointValues()

void com.google.protobuf.nano.NanoTest.testEqualsWithSpecialFloatingPointValues ( ) throws Exception
inline

◆ testExtensions()

void com.google.protobuf.nano.NanoTest.testExtensions ( ) throws Exception
inline

◆ testExtensionsCaching()

void com.google.protobuf.nano.NanoTest.testExtensionsCaching ( )
inline

◆ testExtensionsMutation()

void com.google.protobuf.nano.NanoTest.testExtensionsMutation ( )
inline

◆ testExtensionsMutation_Equals()

void com.google.protobuf.nano.NanoTest.testExtensionsMutation_Equals ( ) throws InvalidProtocolBufferNanoException
inline

◆ testHashCodeEquals()

void com.google.protobuf.nano.NanoTest.testHashCodeEquals ( ) throws Exception
inline

◆ testJavaKeyword()

void com.google.protobuf.nano.NanoTest.testJavaKeyword ( ) throws Exception
inline

◆ testMapEquals()

void com.google.protobuf.nano.NanoTest.testMapEquals ( ) throws Exception
inline

◆ testMapMergeEmptyEntry()

void com.google.protobuf.nano.NanoTest.testMapMergeEmptyEntry ( ) throws Exception
inline

Tests that when merging with empty entries, we will use default for the key and value, instead of null.

◆ testMapMergeOverrideMessageValues()

void com.google.protobuf.nano.NanoTest.testMapMergeOverrideMessageValues ( ) throws Exception
inline

Tests that merging bytes containing conflicting keys with override the message value instead of merging the message value into the existing entry.

◆ testMapSerializeRejectNull()

void com.google.protobuf.nano.NanoTest.testMapSerializeRejectNull ( ) throws Exception
inline

◆ testMapsSerializeAndParse()

void com.google.protobuf.nano.NanoTest.testMapsSerializeAndParse ( ) throws Exception
inline

◆ testMergeFrom()

void com.google.protobuf.nano.NanoTest.testMergeFrom ( ) throws Exception
inline

◆ testMessageNanoPrinter()

void com.google.protobuf.nano.NanoTest.testMessageNanoPrinter ( )
inline

◆ testMessageNanoPrinterAccessors()

void com.google.protobuf.nano.NanoTest.testMessageNanoPrinterAccessors ( ) throws Exception
inline

◆ testMessageNanoPrinterForMaps()

void com.google.protobuf.nano.NanoTest.testMessageNanoPrinterForMaps ( ) throws Exception
inline

◆ testMessageNoFields()

void com.google.protobuf.nano.NanoTest.testMessageNoFields ( )
inline

◆ testNanoDefaults()

void com.google.protobuf.nano.NanoTest.testNanoDefaults ( ) throws Exception
inline

◆ testNanoEnumValidity()

void com.google.protobuf.nano.NanoTest.testNanoEnumValidity ( ) throws Exception
inline

Tests that invalid enum values from the wire are not accepted.

◆ testNanoEnumValidityAccessors()

void com.google.protobuf.nano.NanoTest.testNanoEnumValidityAccessors ( ) throws Exception
inline

Tests the same as testNanoEnumValidity() with accessor style. Repeated fields are not re-tested here because they are not affected by the accessor style.

◆ testNanoJavaEnumStyle()

void com.google.protobuf.nano.NanoTest.testNanoJavaEnumStyle ( ) throws Exception
inline

◆ testNanoMultipleEnumScoping()

void com.google.protobuf.nano.NanoTest.testNanoMultipleEnumScoping ( ) throws Exception
inline

Tests that code generation correctly handles enums in different scopes in a source file with the option java_multiple_files set to true. Any error would cause this method to fail compilation.

◆ testNanoMultipleImportingNonMultiple()

void com.google.protobuf.nano.NanoTest.testNanoMultipleImportingNonMultiple ( ) throws Exception
inline

Tests that code generation with mixed values of the java_multiple_files options between the main source file and the imported source files would generate correct references. Any error would cause this method to fail compilation.

◆ testNanoMultipleNameClash()

void com.google.protobuf.nano.NanoTest.testNanoMultipleNameClash ( ) throws Exception
inline

Tests that code generation correctly skips generating the outer class if unnecessary, letting a file-scope entity have the same name. The class

MultipleNameClashNano

shares the same name with the file's outer class defined explicitly, but the file contains no other entities and has java_multiple_files set. Any error would cause this method to fail compilation.

◆ testNanoNotANumberDefaults()

void com.google.protobuf.nano.NanoTest.testNanoNotANumberDefaults ( ) throws Exception
inline

Tests that fields with a default value of NaN are not serialized when set to NaN. This is a special case as NaN != NaN, so normal equality checks don't work.

◆ testNanoOptionalBool()

void com.google.protobuf.nano.NanoTest.testNanoOptionalBool ( ) throws Exception
inline

◆ testNanoOptionalBytes()

void com.google.protobuf.nano.NanoTest.testNanoOptionalBytes ( ) throws Exception
inline

◆ testNanoOptionalCord()

void com.google.protobuf.nano.NanoTest.testNanoOptionalCord ( ) throws Exception
inline

◆ testNanoOptionalDouble()

void com.google.protobuf.nano.NanoTest.testNanoOptionalDouble ( ) throws Exception
inline

◆ testNanoOptionalFixed32()

void com.google.protobuf.nano.NanoTest.testNanoOptionalFixed32 ( ) throws Exception
inline

◆ testNanoOptionalFixed64()

void com.google.protobuf.nano.NanoTest.testNanoOptionalFixed64 ( ) throws Exception
inline

◆ testNanoOptionalFloat()

void com.google.protobuf.nano.NanoTest.testNanoOptionalFloat ( ) throws Exception
inline

◆ testNanoOptionalForeignEnum()

void com.google.protobuf.nano.NanoTest.testNanoOptionalForeignEnum ( ) throws Exception
inline

◆ testNanoOptionalForeignMessage()

void com.google.protobuf.nano.NanoTest.testNanoOptionalForeignMessage ( ) throws Exception
inline

◆ testNanoOptionalGroup()

void com.google.protobuf.nano.NanoTest.testNanoOptionalGroup ( ) throws Exception
inline

◆ testNanoOptionalGroupWithUnknownFieldsEnabled()

void com.google.protobuf.nano.NanoTest.testNanoOptionalGroupWithUnknownFieldsEnabled ( ) throws Exception
inline

◆ testNanoOptionalImportEnum()

void com.google.protobuf.nano.NanoTest.testNanoOptionalImportEnum ( ) throws Exception
inline

◆ testNanoOptionalImportMessage()

void com.google.protobuf.nano.NanoTest.testNanoOptionalImportMessage ( ) throws Exception
inline

◆ testNanoOptionalInt32()

void com.google.protobuf.nano.NanoTest.testNanoOptionalInt32 ( ) throws Exception
inline

◆ testNanoOptionalInt64()

void com.google.protobuf.nano.NanoTest.testNanoOptionalInt64 ( ) throws Exception
inline

◆ testNanoOptionalNestedEnum()

void com.google.protobuf.nano.NanoTest.testNanoOptionalNestedEnum ( ) throws Exception
inline

◆ testNanoOptionalNestedMessage()

void com.google.protobuf.nano.NanoTest.testNanoOptionalNestedMessage ( ) throws Exception
inline

◆ testNanoOptionalSfixed32()

void com.google.protobuf.nano.NanoTest.testNanoOptionalSfixed32 ( ) throws Exception
inline

◆ testNanoOptionalSfixed64()

void com.google.protobuf.nano.NanoTest.testNanoOptionalSfixed64 ( ) throws Exception
inline

◆ testNanoOptionalSint32()

void com.google.protobuf.nano.NanoTest.testNanoOptionalSint32 ( ) throws Exception
inline

◆ testNanoOptionalSint64()

void com.google.protobuf.nano.NanoTest.testNanoOptionalSint64 ( ) throws Exception
inline

◆ testNanoOptionalString()

void com.google.protobuf.nano.NanoTest.testNanoOptionalString ( ) throws Exception
inline

◆ testNanoOptionalStringPiece()

void com.google.protobuf.nano.NanoTest.testNanoOptionalStringPiece ( ) throws Exception
inline

◆ testNanoOptionalUint32()

void com.google.protobuf.nano.NanoTest.testNanoOptionalUint32 ( ) throws Exception
inline

◆ testNanoOptionalUint64()

void com.google.protobuf.nano.NanoTest.testNanoOptionalUint64 ( ) throws Exception
inline

◆ testNanoRepeatedBool()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedBool ( ) throws Exception
inline

◆ testNanoRepeatedBytes()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedBytes ( ) throws Exception
inline

◆ testNanoRepeatedCord()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedCord ( ) throws Exception
inline

◆ testNanoRepeatedDouble()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedDouble ( ) throws Exception
inline

◆ testNanoRepeatedFixed32()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedFixed32 ( ) throws Exception
inline

◆ testNanoRepeatedFixed64()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedFixed64 ( ) throws Exception
inline

◆ testNanoRepeatedFloat()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedFloat ( ) throws Exception
inline

◆ testNanoRepeatedForeignEnum()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedForeignEnum ( ) throws Exception
inline

◆ testNanoRepeatedForeignMessage()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedForeignMessage ( ) throws Exception
inline

◆ testNanoRepeatedGroup()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedGroup ( ) throws Exception
inline

◆ testNanoRepeatedImportEnum()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedImportEnum ( ) throws Exception
inline

◆ testNanoRepeatedImportMessage()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedImportMessage ( ) throws Exception
inline

◆ testNanoRepeatedInt32()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedInt32 ( ) throws Exception
inline

◆ testNanoRepeatedInt32ReMerge()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedInt32ReMerge ( ) throws Exception
inline

◆ testNanoRepeatedInt64()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedInt64 ( ) throws Exception
inline

◆ testNanoRepeatedNestedEnum()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedNestedEnum ( ) throws Exception
inline

◆ testNanoRepeatedNestedEnumReMerge()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedNestedEnumReMerge ( ) throws Exception
inline

◆ testNanoRepeatedNestedMessage()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedNestedMessage ( ) throws Exception
inline

◆ testNanoRepeatedNestedMessageReMerge()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedNestedMessageReMerge ( ) throws Exception
inline

◆ testNanoRepeatedPackedInt32()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedPackedInt32 ( ) throws Exception
inline

◆ testNanoRepeatedPackedNestedEnum()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedPackedNestedEnum ( ) throws Exception
inline

◆ testNanoRepeatedPackedSerializedSize()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedPackedSerializedSize ( ) throws Exception
inline

◆ testNanoRepeatedPackedSfixed64()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedPackedSfixed64 ( ) throws Exception
inline

◆ testNanoRepeatedSfixed32()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedSfixed32 ( ) throws Exception
inline

◆ testNanoRepeatedSfixed64()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedSfixed64 ( ) throws Exception
inline

◆ testNanoRepeatedSint32()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedSint32 ( ) throws Exception
inline

◆ testNanoRepeatedSint64()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedSint64 ( ) throws Exception
inline

◆ testNanoRepeatedString()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedString ( ) throws Exception
inline

◆ testNanoRepeatedStringPiece()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedStringPiece ( ) throws Exception
inline

◆ testNanoRepeatedUint32()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedUint32 ( ) throws Exception
inline

◆ testNanoRepeatedUint64()

void com.google.protobuf.nano.NanoTest.testNanoRepeatedUint64 ( ) throws Exception
inline

◆ testNanoRequiredInt32()

void com.google.protobuf.nano.NanoTest.testNanoRequiredInt32 ( ) throws Exception
inline

◆ testNanoSingle()

void com.google.protobuf.nano.NanoTest.testNanoSingle ( ) throws Exception
inline

Tests that code generation correctly wraps a single message into its outer class. The class

SingleMessageNano

is imported from the outer class

UnittestSingleNano

, whose name is implicit. Any error would cause this method to fail compilation.

◆ testNanoWithAccessorsBasic()

void com.google.protobuf.nano.NanoTest.testNanoWithAccessorsBasic ( ) throws Exception
inline

◆ testNanoWithAccessorsParseFrom()

void com.google.protobuf.nano.NanoTest.testNanoWithAccessorsParseFrom ( ) throws Exception
inline

◆ testNanoWithAccessorsPublicFieldTypes()

void com.google.protobuf.nano.NanoTest.testNanoWithAccessorsPublicFieldTypes ( ) throws Exception
inline

◆ testNanoWithAccessorsSerialize()

void com.google.protobuf.nano.NanoTest.testNanoWithAccessorsSerialize ( ) throws Exception
inline

◆ testNanoWithHasParseFrom()

void com.google.protobuf.nano.NanoTest.testNanoWithHasParseFrom ( ) throws Exception
inline

◆ testNanoWithHasSerialize()

void com.google.protobuf.nano.NanoTest.testNanoWithHasSerialize ( ) throws Exception
inline

◆ testNullExtensions()

void com.google.protobuf.nano.NanoTest.testNullExtensions ( ) throws Exception
inline

◆ testNullRepeatedFieldElements()

void com.google.protobuf.nano.NanoTest.testNullRepeatedFieldElements ( ) throws Exception
inline

◆ testNullRepeatedFields()

void com.google.protobuf.nano.NanoTest.testNullRepeatedFields ( ) throws Exception
inline

◆ testOneofClear()

void com.google.protobuf.nano.NanoTest.testOneofClear ( ) throws Exception
inline

◆ testOneofDefault()

void com.google.protobuf.nano.NanoTest.testOneofDefault ( ) throws Exception
inline

◆ testOneofExclusiveness()

void com.google.protobuf.nano.NanoTest.testOneofExclusiveness ( ) throws Exception
inline

◆ testOneofHashCodeEquals()

void com.google.protobuf.nano.NanoTest.testOneofHashCodeEquals ( ) throws Exception
inline

◆ testOneofMarshaling()

void com.google.protobuf.nano.NanoTest.testOneofMarshaling ( ) throws Exception
inline

◆ testOneofSerializedConcat()

void com.google.protobuf.nano.NanoTest.testOneofSerializedConcat ( ) throws Exception
inline

◆ testRecursiveMessageNano()

void com.google.protobuf.nano.NanoTest.testRecursiveMessageNano ( ) throws Exception
inline

◆ testReferenceTypesForPrimitives()

void com.google.protobuf.nano.NanoTest.testReferenceTypesForPrimitives ( ) throws Exception
inline

◆ testRepeatedFieldInitializedInReftypesCompatMode()

void com.google.protobuf.nano.NanoTest.testRepeatedFieldInitializedInReftypesCompatMode ( )
inline

◆ testRepeatedMerge()

void com.google.protobuf.nano.NanoTest.testRepeatedMerge ( ) throws Exception
inline

◆ testRepeatedPackables()

void com.google.protobuf.nano.NanoTest.testRepeatedPackables ( ) throws Exception
inline

◆ testSimpleMessageNano()

void com.google.protobuf.nano.NanoTest.testSimpleMessageNano ( ) throws Exception
inline

◆ testSkipRawBytesBug()

void com.google.protobuf.nano.NanoTest.testSkipRawBytesBug ( ) throws Exception
inline

Test that a bug in skipRawBytes() has been fixed: if the skip skips exactly up to a limit, this should not break things.

◆ testSkipRawBytesPastEndOfBufferWithLimit()

void com.google.protobuf.nano.NanoTest.testSkipRawBytesPastEndOfBufferWithLimit ( ) throws Exception
inline

Test that a bug in skipRawBytes() has been fixed: if the skip skips past the end of a buffer with a limit that has been set past the end of that buffer, this should not break things.

◆ testUnknownFields()

void com.google.protobuf.nano.NanoTest.testUnknownFields ( ) throws Exception
inline

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