C# Class Google.Protobuf.CodedInputStreamTest

Mostrar archivo Open project: dropbox/protobuf Class Usage Examples

Private Methods

Method Description
AssertMessageDepth ( TestRecursiveMessage message, int depth ) : void
AssertReadLittleEndian32 ( byte data, uint value ) : void

Parses the given bytes using ReadRawLittleEndian32() and checks that the result matches the given value.

AssertReadLittleEndian64 ( byte data, ulong value ) : void

Parses the given bytes using ReadRawLittleEndian64() and checks that the result matches the given value.

AssertReadVarint ( byte data, ulong value ) : void

Parses the given bytes using ReadRawVarint32() and ReadRawVarint64()

AssertReadVarintFailure ( InvalidProtocolBufferException expected, byte data ) : void

Parses the given bytes using ReadRawVarint32() and ReadRawVarint64() and expects them to fail with an InvalidProtocolBufferException whose description matches the given one.

Bytes ( ) : byte[]

Helper to construct a byte array from a bunch of bytes. The inputs are actually ints so that I can use hex notation and not get stupid errors about precision.

Construction_Invalid ( ) : void
CreateWithLimits_InvalidLimits ( ) : void
DecodeZigZag32 ( ) : void
DecodeZigZag64 ( ) : void
Dispose_DisposesUnderlyingStream ( ) : void
Dispose_WithLeaveOpen ( ) : void
EndOfStreamReachedWhileSkippingGroup ( ) : void
MakeRecursiveMessage ( int depth ) : TestRecursiveMessage
MaliciousRecursion ( ) : void
ReadHugeBlob ( ) : void
ReadInvalidUtf8 ( ) : void
ReadLittleEndian ( ) : void
ReadMaliciouslyLargeBlob ( ) : void
ReadVarint ( ) : void
ReadWholeMessage_VaryingBlockSizes ( ) : void
RecursionLimitAppliedWhileSkippingGroup ( ) : void
RogueEndGroupTag ( ) : void
SizeLimit ( ) : void
SkipGroup ( ) : void
SkipGroup_WrongEndGroupTag ( ) : void
Tag0Throws ( ) : void
TestNegativeEnum ( ) : void
TestSlowPathAvoidance ( ) : void