Searched refs:TestRecursiveMessage (Results 1 – 9 of 9) sorted by relevance
287 internal static TestRecursiveMessage MakeRecursiveMessage(int depth) in MakeRecursiveMessage()291 return new TestRecursiveMessage { I = 5 }; in MakeRecursiveMessage()295 return new TestRecursiveMessage { A = MakeRecursiveMessage(depth - 1) }; in MakeRecursiveMessage()299 internal static void AssertMessageDepth(TestRecursiveMessage message, int depth) in AssertMessageDepth()319 AssertMessageDepth(TestRecursiveMessage.Parser.ParseFrom(data64), 64); in MaliciousRecursion()321 …Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(data65)); in MaliciousRecursion()324 … Assert.Throws<InvalidProtocolBufferException>(() => TestRecursiveMessage.Parser.ParseFrom(input)); in MaliciousRecursion()
883 … CodedInputStreamTest.AssertMessageDepth(parser64.Parse<TestRecursiveMessage>(data64), 64); in MaliciousRecursion()884 … Assert.Throws<InvalidProtocolBufferException>(() => parser64.Parse<TestRecursiveMessage>(data65)); in MaliciousRecursion()887 … Assert.Throws<InvalidProtocolBufferException>(() => parser63.Parse<TestRecursiveMessage>(data64)); in MaliciousRecursion()
37 import protobuf_unittest.UnittestProto.TestRecursiveMessage;440 private TestRecursiveMessage makeRecursiveMessage(int depth) { in makeRecursiveMessage()442 return TestRecursiveMessage.newBuilder().setI(5).build(); in makeRecursiveMessage()444 return TestRecursiveMessage.newBuilder() in makeRecursiveMessage()449 private void assertMessageDepth(TestRecursiveMessage message, int depth) { in assertMessageDepth()463 assertMessageDepth(TestRecursiveMessage.parseFrom(data100), 100); in testMaliciousRecursion()466 TestRecursiveMessage.parseFrom(data101); in testMaliciousRecursion()475 TestRecursiveMessage.parseFrom(input); in testMaliciousRecursion()
887 UnittestProto.TestRecursiveMessage message = in testRecursiveMessageDefaultInstance()888 UnittestProto.TestRecursiveMessage.getDefaultInstance(); in testRecursiveMessageDefaultInstance()
738 TestRecursiveMessage *message = [TestRecursiveMessage message];739 TestRecursiveMessage *message_inner = [message.a.a.a retain];770 TestRecursiveMessage *message = [TestRecursiveMessage message];771 TestRecursiveMessage *message_inner = [message.a.a retain];806 TestRecursiveMessage *message = [TestRecursiveMessage message];819 TestRecursiveMessage *message = [TestRecursiveMessage message];828 TestRecursiveMessage *message = [TestRecursiveMessage message];829 TestRecursiveMessage *messageLevel1 = [message.a retain];830 TestRecursiveMessage *messageLevel2 = [message.a.a retain];831 TestRecursiveMessage *messageLevel3 = [message.a.a.a retain];[all …]
163 …f(global::Google.Protobuf.TestProtos.TestRecursiveMessage), global::Google.Protobuf.TestProtos.Tes… in UnittestProto3Reflection()2353 public sealed partial class TestRecursiveMessage : pb::IMessage<TestRecursiveMessage> { class2354 …only pb::MessageParser<TestRecursiveMessage> _parser = new pb::MessageParser<TestRecursiveMessage>…2355 public static pb::MessageParser<TestRecursiveMessage> Parser { get { return _parser; } }2365 public TestRecursiveMessage() { in TestRecursiveMessage() method in Google.Protobuf.TestProtos.TestRecursiveMessage2371 public TestRecursiveMessage(TestRecursiveMessage other) : this() { in TestRecursiveMessage() method in Google.Protobuf.TestProtos.TestRecursiveMessage2376 public TestRecursiveMessage Clone() { in Clone()2377 return new TestRecursiveMessage(this); in Clone()2382 private global::Google.Protobuf.TestProtos.TestRecursiveMessage a_;2383 public global::Google.Protobuf.TestProtos.TestRecursiveMessage A {[all …]
188 message TestRecursiveMessage { message189 TestRecursiveMessage a = 1;
615 unittest::TestRecursiveMessage message; in TEST()624 unittest::TestRecursiveMessage message2; in TEST()632 unittest::TestRecursiveMessage message2; in TEST()
424 message TestRecursiveMessage { message425 optional TestRecursiveMessage a = 1;