/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | FieldPresenceTest.java | 37 import com.google.protobuf.FieldPresenceTestProto.TestAllTypes; 69 assertHasMethodRemoved(UnittestProto.TestAllTypes.class, TestAllTypes.class, "OptionalInt32"); in testHasMethod() 70 assertHasMethodRemoved(UnittestProto.TestAllTypes.class, TestAllTypes.class, "OptionalString"); in testHasMethod() 71 assertHasMethodRemoved(UnittestProto.TestAllTypes.class, TestAllTypes.class, "OptionalBytes"); in testHasMethod() 73 UnittestProto.TestAllTypes.class, TestAllTypes.class, "OptionalNestedEnum"); in testHasMethod() 76 UnittestProto.TestAllTypes.Builder.class, TestAllTypes.Builder.class, "OptionalInt32"); in testHasMethod() 78 UnittestProto.TestAllTypes.Builder.class, TestAllTypes.Builder.class, "OptionalString"); in testHasMethod() 80 UnittestProto.TestAllTypes.Builder.class, TestAllTypes.Builder.class, "OptionalBytes"); in testHasMethod() 82 UnittestProto.TestAllTypes.Builder.class, TestAllTypes.Builder.class, "OptionalNestedEnum"); in testHasMethod() 85 assertFalse(TestAllTypes.getDefaultInstance().hasOptionalNestedMessage()); in testHasMethod() [all …]
|
D | SingleFieldBuilderV3Test.java | 33 import protobuf_unittest.UnittestProto.TestAllTypes; 47 SingleFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, TestAllTypesOrBuilder> builder = in testBasicUseAndInvalidations() 48 new SingleFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, TestAllTypesOrBuilder>( in testBasicUseAndInvalidations() 49 TestAllTypes.getDefaultInstance(), mockParent, false); in testBasicUseAndInvalidations() 50 assertSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testBasicUseAndInvalidations() 51 assertEquals(TestAllTypes.getDefaultInstance(), builder.getBuilder().buildPartial()); in testBasicUseAndInvalidations() 56 TestAllTypes message = builder.build(); in testBasicUseAndInvalidations() 71 SingleFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, TestAllTypesOrBuilder> builder = in testSetMessage() 72 new SingleFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, TestAllTypesOrBuilder>( in testSetMessage() 73 TestAllTypes.getDefaultInstance(), mockParent, false); in testSetMessage() [all …]
|
D | AnyTest.java | 34 import protobuf_unittest.UnittestProto.TestAllTypes; 41 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testAnyGeneratedApi() 43 TestAllTypes message = builder.build(); in testAnyGeneratedApi() 47 assertTrue(container.getValue().is(TestAllTypes.class)); in testAnyGeneratedApi() 50 TestAllTypes result = container.getValue().unpack(TestAllTypes.class); in testAnyGeneratedApi() 67 container.getValue().unpack(TestAllTypes.class); in testAnyGeneratedApi() 75 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testCustomTypeUrls() 77 TestAllTypes message = builder.build(); in testCustomTypeUrls() 82 "xxx.com/" + TestAllTypes.getDescriptor().getFullName(), container.getValue().getTypeUrl()); in testCustomTypeUrls() 84 assertTrue(container.getValue().is(TestAllTypes.class)); in testCustomTypeUrls() [all …]
|
D | RepeatedFieldBuilderV3Test.java | 33 import protobuf_unittest.UnittestProto.TestAllTypes; 49 RepeatedFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, TestAllTypesOrBuilder> builder = in testBasicUse() 51 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(0).build()); in testBasicUse() 52 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(1).build()); in testBasicUse() 56 List<TestAllTypes> list = builder.build(); in testBasicUse() 63 List<TestAllTypes> list2 = builder.build(); in testBasicUse() 70 RepeatedFieldBuilderV3<TestAllTypes, TestAllTypes.Builder, TestAllTypesOrBuilder> builder = in testGoingBackAndForth() 72 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(0).build()); in testGoingBackAndForth() 73 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(1).build()); in testGoingBackAndForth() 78 List<TestAllTypes> list = builder.build(); in testGoingBackAndForth() [all …]
|
D | UnknownEnumValueTest.java | 37 import com.google.protobuf.FieldPresenceTestProto.TestAllTypes; 51 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testUnknownEnumValues() 55 TestAllTypes message = builder.build(); in testUnknownEnumValues() 61 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getOptionalNestedEnum()); in testUnknownEnumValues() 62 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getRepeatedNestedEnum(0)); in testUnknownEnumValues() 63 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getRepeatedNestedEnumList().get(0)); in testUnknownEnumValues() 64 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getPackedNestedEnum(0)); in testUnknownEnumValues() 68 message = TestAllTypes.parseFrom(data); in testUnknownEnumValues() 74 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getOptionalNestedEnum()); in testUnknownEnumValues() 75 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getRepeatedNestedEnum(0)); in testUnknownEnumValues() [all …]
|
D | GeneratedMessageTest.java | 56 import protobuf_unittest.UnittestProto.TestAllTypes; 57 import protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage; 81 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null); 85 TestAllTypes.getDefaultInstance(), in testDefaultInstance() 86 TestAllTypes.getDefaultInstance().getDefaultInstanceForType()); in testDefaultInstance() 88 TestAllTypes.getDefaultInstance(), TestAllTypes.newBuilder().getDefaultInstanceForType()); in testDefaultInstance() 92 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testMessageOrBuilder() 94 TestAllTypes message = builder.build(); in testMessageOrBuilder() 99 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testUsingBuilderMultipleTimes() 110 TestAllTypes value1 = builder.build(); in testUsingBuilderMultipleTimes() [all …]
|
D | LazyFieldLiteTest.java | 36 import protobuf_unittest.UnittestProto.TestAllTypes; 50 assertEquals(message, lazyField.getValue(TestAllTypes.getDefaultInstance())); in testGetValue() 52 assertNotEqual(message, lazyField.getValue(TestAllTypes.getDefaultInstance())); in testGetValue() 67 assertNotEqual(message, lazyField.getValue(TestAllTypes.getDefaultInstance())); in testSetValue() 68 message = lazyField.getValue(TestAllTypes.getDefaultInstance()); in testSetValue() 70 assertEquals(message, lazyField.getValue(TestAllTypes.getDefaultInstance())); in testSetValue() 136 TestAllTypes.getDefaultInstance(), field.getValue(TestAllTypes.getDefaultInstance())); in testInvalidProto() 142 TestAllTypes message1 = TestAllTypes.newBuilder().setOptionalInt32(1).build(); in testMergeBeforeParsing() 144 TestAllTypes message2 = TestAllTypes.newBuilder().setOptionalInt64(2).build(); in testMergeBeforeParsing() 148 TestAllTypes expected = in testMergeBeforeParsing() [all …]
|
D | WireFormatLiteTest.java | 45 import protobuf_unittest.UnittestProto.TestAllTypes; 72 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerializeExtensionsLite() 94 TestAllTypes message = TestUtil.getAllSet(); in testParseExtensionsLite() 119 TestAllTypes message = TestUtil.getAllSet(); in testSerialization() 124 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerialization() 149 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerializeExtensions() 191 TestAllTypes message = TestUtil.getAllSet(); in testParseExtensions() 222 TestUtil.assertAllFieldsSet(TestAllTypes.parseDelimitedFrom(input)); in testSerializeDelimited() 229 assertNull(TestAllTypes.parseDelimitedFrom(input)); in testSerializeDelimited() 543 assertInvalidWireFormat(TestAllTypes.getDefaultInstance(), data); in assertInvalidWireFormat() [all …]
|
D | TextFormatTest.java | 44 import protobuf_unittest.UnittestProto.TestAllTypes; 45 import protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage; 249 TestAllTypes.getDescriptor().findFieldByName("optional_nested_message"); in testPrintField() 279 TestAllTypes.newBuilder() in testPrintExotic() 333 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testMerge() 339 TestUtil.assertAllFieldsSet(TextFormat.parse(allFieldsSetText, TestAllTypes.class)); in testParse() 373 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testMergeReader() 419 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testMergeAndParseCompatibility() 424 assertEquals(canonical, TextFormat.parse(original, TestAllTypes.class).toString()); in testMergeAndParseCompatibility() 428 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testMergeAndParseExotic() [all …]
|
D | Proto2UnknownEnumValueTest.java | 36 import protobuf_unittest.UnittestProto.TestAllTypes; 42 TestAllTypes.getDescriptor().findFieldByName("optional_nested_enum"); 44 TestAllTypes.getDescriptor().findFieldByName("repeated_nested_enum"); 53 .addVarint(TestAllTypes.NestedEnum.BAR.getNumber()) in buildPayloadWithUnknownEnumValues() 59 .addVarint(TestAllTypes.NestedEnum.FOO.getNumber()) in buildPayloadWithUnknownEnumValues() 61 .addVarint(TestAllTypes.NestedEnum.BAZ.getNumber()) in buildPayloadWithUnknownEnumValues() 68 TestAllTypes message = TestAllTypes.parseFrom(payload); in testUnknownEnumValues() 71 assertEquals(TestAllTypes.NestedEnum.BAR, message.getOptionalNestedEnum()); in testUnknownEnumValues() 73 assertEquals(TestAllTypes.NestedEnum.FOO, message.getRepeatedNestedEnum(0)); in testUnknownEnumValues() 74 assertEquals(TestAllTypes.NestedEnum.BAZ, message.getRepeatedNestedEnum(1)); in testUnknownEnumValues() [all …]
|
D | DynamicMessageTest.java | 38 import protobuf_unittest.UnittestProto.TestAllTypes; 39 import protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage; 53 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null); 62 Message.Builder builder = DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageAccessors() 69 Message.Builder builder = DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testSettersAfterBuild() 108 Message.Builder builder = DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageSettersRejectNull() 128 Message.Builder builder = DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageRepeatedSetters() 136 Message.Builder builder = DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageRepeatedSettersRejectNull() 142 DynamicMessage.getDefaultInstance(TestAllTypes.getDescriptor())); in testDynamicMessageDefaults() 144 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()).build()); in testDynamicMessageDefaults() [all …]
|
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/ |
D | FieldAccessTest.cs | 47 var fields = TestAllTypes.Descriptor.Fields; in GetValue() 48 …Assert.AreEqual(message.SingleBool, fields[TestAllTypes.SingleBoolFieldNumber].Accessor.GetValue(m… in GetValue() 49 …Assert.AreEqual(message.SingleBytes, fields[TestAllTypes.SingleBytesFieldNumber].Accessor.GetValue… in GetValue() 50 …Assert.AreEqual(message.SingleDouble, fields[TestAllTypes.SingleDoubleFieldNumber].Accessor.GetVal… in GetValue() 51 …Assert.AreEqual(message.SingleFixed32, fields[TestAllTypes.SingleFixed32FieldNumber].Accessor.GetV… in GetValue() 52 …Assert.AreEqual(message.SingleFixed64, fields[TestAllTypes.SingleFixed64FieldNumber].Accessor.GetV… in GetValue() 53 …Assert.AreEqual(message.SingleFloat, fields[TestAllTypes.SingleFloatFieldNumber].Accessor.GetValue… in GetValue() 54 …Assert.AreEqual(message.SingleForeignEnum, fields[TestAllTypes.SingleForeignEnumFieldNumber].Acces… in GetValue() 55 …Assert.AreEqual(message.SingleForeignMessage, fields[TestAllTypes.SingleForeignMessageFieldNumber]… in GetValue() 56 …Assert.AreEqual(message.SingleImportEnum, fields[TestAllTypes.SingleImportEnumFieldNumber].Accesso… in GetValue() [all …]
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/ |
D | FieldAccessTest.cs | 47 var fields = TestAllTypes.Descriptor.Fields; in GetValue() 48 …Assert.AreEqual(message.SingleBool, fields[TestAllTypes.SingleBoolFieldNumber].Accessor.GetValue(m… in GetValue() 49 …Assert.AreEqual(message.SingleBytes, fields[TestAllTypes.SingleBytesFieldNumber].Accessor.GetValue… in GetValue() 50 …Assert.AreEqual(message.SingleDouble, fields[TestAllTypes.SingleDoubleFieldNumber].Accessor.GetVal… in GetValue() 51 …Assert.AreEqual(message.SingleFixed32, fields[TestAllTypes.SingleFixed32FieldNumber].Accessor.GetV… in GetValue() 52 …Assert.AreEqual(message.SingleFixed64, fields[TestAllTypes.SingleFixed64FieldNumber].Accessor.GetV… in GetValue() 53 …Assert.AreEqual(message.SingleFloat, fields[TestAllTypes.SingleFloatFieldNumber].Accessor.GetValue… in GetValue() 54 …Assert.AreEqual(message.SingleForeignEnum, fields[TestAllTypes.SingleForeignEnumFieldNumber].Acces… in GetValue() 55 …Assert.AreEqual(message.SingleForeignMessage, fields[TestAllTypes.SingleForeignMessageFieldNumber]… in GetValue() 56 …Assert.AreEqual(message.SingleImportEnum, fields[TestAllTypes.SingleImportEnumFieldNumber].Accesso… in GetValue() [all …]
|
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | GeneratedMessageTest.java | 53 import protobuf_unittest.UnittestProto.TestAllTypes; 54 import protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage; 78 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null); 81 assertSame(TestAllTypes.getDefaultInstance(), in testDefaultInstance() 82 TestAllTypes.getDefaultInstance().getDefaultInstanceForType()); in testDefaultInstance() 83 assertSame(TestAllTypes.getDefaultInstance(), in testDefaultInstance() 84 TestAllTypes.newBuilder().getDefaultInstanceForType()); in testDefaultInstance() 88 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testMessageOrBuilder() 90 TestAllTypes message = builder.build(); in testMessageOrBuilder() 95 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testUsingBuilderMultipleTimes() [all …]
|
D | TextFormatTest.java | 40 import protobuf_unittest.UnittestProto.TestAllTypes; 41 import protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage; 214 TestAllTypes.getDescriptor().findFieldByName("optional_nested_message"); in testPrintField() 245 Message message = TestAllTypes.newBuilder() in testPrintExotic() 300 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParse() 306 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParseReader() 344 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParseCompatibility() 350 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParseExotic() 378 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParseNumericEnum() 380 assertEquals(TestAllTypes.NestedEnum.BAR, builder.getOptionalNestedEnum()); in testParseNumericEnum() [all …]
|
D | DynamicMessageTest.java | 35 import protobuf_unittest.UnittestProto.TestAllTypes; 50 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null); 60 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageAccessors() 68 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testSettersAfterBuild() 108 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageSettersRejectNull() 131 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageRepeatedSetters() 140 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageRepeatedSettersRejectNull() 146 DynamicMessage.getDefaultInstance(TestAllTypes.getDescriptor())); in testDynamicMessageDefaults() 148 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()).build()); in testDynamicMessageDefaults() 152 TestAllTypes message = TestUtil.getAllSet(); in testDynamicMessageSerializedSize() [all …]
|
/external/protobuf/src/google/protobuf/ |
D | arena_unittest.cc | 63 using protobuf_unittest::TestAllTypes; 157 EXPECT_TRUE(Arena::is_arena_constructable<TestAllTypes>::type::value); in TEST() 158 EXPECT_TRUE(Arena::is_arena_constructable<const TestAllTypes>::type::value); in TEST() 164 EXPECT_TRUE(Arena::is_destructor_skippable<TestAllTypes>::type::value); in TEST() 165 EXPECT_TRUE(Arena::is_destructor_skippable<const TestAllTypes>::type::value); in TEST() 301 TestAllTypes original; in TEST() 306 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() 316 TestAllTypes original; in TEST() 326 TestAllTypes copied; in TEST() 333 TestAllTypes::kOptionalInt32FieldNumber, 42); in TEST() [all …]
|
D | proto3_arena_unittest.cc | 42 using proto3_arena_unittest::TestAllTypes; 49 void SetAllFields(TestAllTypes* m) { in SetAllFields() 74 void ExpectAllFieldsSet(const TestAllTypes& m) { in ExpectAllFieldsSet() 106 EXPECT_EQ(proto3_arena_unittest::TestAllTypes::kOneofString, in ExpectAllFieldsSet() 116 TestAllTypes original; in TEST() 120 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() 126 TestAllTypes original; in TEST() 130 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() 151 TestAllTypes* arena1_message = Arena::CreateMessage<TestAllTypes>(&arena1); in TEST() 152 TestAllTypes* arena2_message = Arena::CreateMessage<TestAllTypes>(&arena2); in TEST() [all …]
|
D | proto3_arena_lite_unittest.cc | 40 using proto3_arena_unittest::TestAllTypes; 47 void SetAllFields(TestAllTypes* m) { in SetAllFields() 72 void ExpectAllFieldsSet(const TestAllTypes& m) { in ExpectAllFieldsSet() 104 EXPECT_EQ(proto3_arena_unittest::TestAllTypes::kOneofString, in ExpectAllFieldsSet() 114 TestAllTypes original; in TEST() 118 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() 128 TestAllTypes* arena1_message = Arena::CreateMessage<TestAllTypes>(&arena1); in TEST() 129 TestAllTypes* arena2_message = Arena::CreateMessage<TestAllTypes>(&arena2); in TEST() 137 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST() 138 TestAllTypes::NestedMessage* nested = new TestAllTypes::NestedMessage; in TEST() [all …]
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | GeneratedMessageTest.cs | 53 var message1 = new TestAllTypes { SingleForeignMessage = new ForeignMessage() }; in EmptyMessageFieldDistinctFromMissingMessageField() 54 var message2 = new TestAllTypes(); // SingleForeignMessage is null in EmptyMessageFieldDistinctFromMissingMessageField() 62 var message = new TestAllTypes(); in DefaultValues() 75 Assert.AreEqual(TestAllTypes.Types.NestedEnum.Unspecified, message.SingleNestedEnum); in DefaultValues() 109 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in DefaultValues() 119 var message = new TestAllTypes(); in NullStringAndBytesRejected() 129 var message = new TestAllTypes(); in RoundTrip_Empty() 133 TestAllTypes parsed = TestAllTypes.Parser.ParseFrom(bytes); in RoundTrip_Empty() 140 var message = new TestAllTypes in RoundTrip_SingleValues() 154 SingleNestedEnum = TestAllTypes.Types.NestedEnum.Foo, in RoundTrip_SingleValues() [all …]
|
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | GeneratedMessageTest.cs | 53 var message1 = new TestAllTypes { SingleForeignMessage = new ForeignMessage() }; in EmptyMessageFieldDistinctFromMissingMessageField() 54 var message2 = new TestAllTypes(); // SingleForeignMessage is null in EmptyMessageFieldDistinctFromMissingMessageField() 62 var message = new TestAllTypes(); in DefaultValues() 75 Assert.AreEqual(TestAllTypes.Types.NestedEnum.Unspecified, message.SingleNestedEnum); in DefaultValues() 109 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in DefaultValues() 119 var message = new TestAllTypes(); in NullStringAndBytesRejected() 129 var message = new TestAllTypes(); in RoundTrip_Empty() 133 TestAllTypes parsed = TestAllTypes.Parser.ParseFrom(bytes); in RoundTrip_Empty() 140 var message = new TestAllTypes in RoundTrip_SingleValues() 154 SingleNestedEnum = TestAllTypes.Types.NestedEnum.Foo, in RoundTrip_SingleValues() [all …]
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_move_unittest.cc | 52 protobuf_unittest::TestAllTypes message1; in TEST() 56 protobuf_unittest::TestAllTypes message2(std::move(message1)); in TEST() 66 protobuf_unittest::TestAllTypes message1; in TEST() 70 protobuf_unittest::TestAllTypes message2; in TEST() 82 protobuf_unittest::TestAllTypes message, &self = message; in TEST() 92 Arena::CreateMessage<protobuf_unittest::TestAllTypes>(&arena); in TEST() 97 Arena::CreateMessage<protobuf_unittest::TestAllTypes>(&arena); in TEST() 108 Arena::CreateMessage<protobuf_unittest::TestAllTypes>(&arena1); in TEST() 113 Arena::CreateMessage<protobuf_unittest::TestAllTypes>(&arena2); in TEST() 126 Arena::CreateMessage<protobuf_unittest::TestAllTypes>(&arena); in TEST() [all …]
|
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/ |
D | JsonFormatTest.java | 53 import com.google.protobuf.util.proto.JsonTestProto.TestAllTypes; 54 import com.google.protobuf.util.proto.JsonTestProto.TestAllTypes.AliasedEnum; 55 import com.google.protobuf.util.proto.JsonTestProto.TestAllTypes.NestedEnum; 56 import com.google.protobuf.util.proto.JsonTestProto.TestAllTypes.NestedMessage; 86 private void setAllFields(TestAllTypes.Builder builder) { in setAllFields() 175 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testAllFields() 177 TestAllTypes message = builder.build(); in testAllFields() 228 TestAllTypes message = in testUnknownEnumValues() 229 TestAllTypes.newBuilder() in testUnknownEnumValues() 258 TestAllTypes message = in testSpecialFloatValues() [all …]
|
/external/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/ |
D | generator_test.py | 61 proto_type = unittest_pb2.TestAllTypes 74 proto = unittest_pb2.TestAllTypes() 76 self.assertEqual(1, unittest_pb2.TestAllTypes.FOO) 78 self.assertEqual(2, unittest_pb2.TestAllTypes.BAR) 80 self.assertEqual(3, unittest_pb2.TestAllTypes.BAZ) 108 desc = unittest_pb2.TestAllTypes.DESCRIPTOR 156 set(unittest_pb2.TestAllTypes.DESCRIPTOR.nested_types), 158 unittest_pb2.TestAllTypes.NestedMessage.DESCRIPTOR, 159 unittest_pb2.TestAllTypes.OptionalGroup.DESCRIPTOR, 160 unittest_pb2.TestAllTypes.RepeatedGroup.DESCRIPTOR, [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | generator_test.py | 67 proto_type = unittest_pb2.TestAllTypes 80 proto = unittest_pb2.TestAllTypes() 82 self.assertEqual(1, unittest_pb2.TestAllTypes.FOO) 84 self.assertEqual(2, unittest_pb2.TestAllTypes.BAR) 86 self.assertEqual(3, unittest_pb2.TestAllTypes.BAZ) 114 desc = unittest_pb2.TestAllTypes.DESCRIPTOR 162 set(unittest_pb2.TestAllTypes.DESCRIPTOR.nested_types), 164 unittest_pb2.TestAllTypes.NestedMessage.DESCRIPTOR, 165 unittest_pb2.TestAllTypes.OptionalGroup.DESCRIPTOR, 166 unittest_pb2.TestAllTypes.RepeatedGroup.DESCRIPTOR, [all …]
|