Lines Matching refs:InvalidProtocolBufferException

96 …  private static void AssertReadVarintFailure(InvalidProtocolBufferException expected, byte[] data)  in AssertReadVarintFailure()
99 … var exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint32()); in AssertReadVarintFailure()
103 … exception = Assert.Throws<InvalidProtocolBufferException>(() => input.ReadRawVarint64()); in AssertReadVarintFailure()
107 …exception = Assert.Throws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(n… in AssertReadVarintFailure()
141 InvalidProtocolBufferException.MalformedVarint(), in ReadVarint()
145 InvalidProtocolBufferException.TruncatedMessage(), in ReadVarint()
284 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadMaliciouslyLargeBlob()
298 Assert.Throws<InvalidProtocolBufferException>(() => cis.ReadTag()); in ReadTag_ZeroFieldRejected()
335 …Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(beyondRe… in MaliciousRecursion()
338 … Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(input)); in MaliciousRecursion()
348 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(input)); in SizeLimit()
391 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadString()); in ReadNegativeSizedStringThrowsInvalidProtocolBufferException()
409 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadNegativeSizedBytesThrowsInvalidProtocolBufferException()
472 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadTag()); in Tag0Throws()
548 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in SkipGroup_WrongEndGroupTag()
565 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in RogueEndGroupTag()
583 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in EndOfStreamReachedWhileSkippingGroup()
605 Assert.Throws<InvalidProtocolBufferException>(input.SkipLastField); in RecursionLimitAppliedWhileSkippingGroup()
681 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseFrom(stream), in TestParseMessagesOver2G()