Home
last modified time | relevance | path

Searched refs:TestRecursiveMessage (Results 1 – 9 of 9) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf.Test/
DCodedInputStreamTest.cs287 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()
DJsonParserTest.cs883 … 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()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DCodedInputStreamTest.java37 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()
DGeneratedMessageTest.java887 UnittestProto.TestRecursiveMessage message = in testRecursiveMessageDefaultInstance()
888 UnittestProto.TestRecursiveMessage.getDefaultInstance(); in testRecursiveMessageDefaultInstance()
/external/protobuf/objectivec/Tests/
DGPBMessageTests.m738 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 …]
/external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestProto3.cs163 …f(global::Google.Protobuf.TestProtos.TestRecursiveMessage), global::Google.Protobuf.TestProtos.Tes… in UnittestProto3Reflection()
2353 public sealed partial class TestRecursiveMessage : pb::IMessage<TestRecursiveMessage> { class
2354 …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.TestRecursiveMessage
2371 public TestRecursiveMessage(TestRecursiveMessage other) : this() { in TestRecursiveMessage() method in Google.Protobuf.TestProtos.TestRecursiveMessage
2376 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 …]
/external/protobuf/src/google/protobuf/
Dunittest_proto3.proto188 message TestRecursiveMessage { message
189 TestRecursiveMessage a = 1;
Dwire_format_unittest.cc615 unittest::TestRecursiveMessage message; in TEST()
624 unittest::TestRecursiveMessage message2; in TEST()
632 unittest::TestRecursiveMessage message2; in TEST()
Dunittest.proto424 message TestRecursiveMessage { message
425 optional TestRecursiveMessage a = 1;