HomeSort by relevance Sort by last modified time
    Searched defs:TestAllTypes (Results 1 - 14 of 14) sorted by null

  /external/libmojo/mojo/public/tools/bindings/pylib/mojom/generate/
pack_tests.py 108 def TestAllTypes():
185 errors += RunTest(TestAllTypes)
  /external/protobuf/java/core/src/test/java/com/google/protobuf/
UnknownEnumValueTest.java 37 import com.google.protobuf.FieldPresenceTestProto.TestAllTypes;
48 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
52 TestAllTypes message = builder.build();
58 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getOptionalNestedEnum());
59 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getRepeatedNestedEnum(0));
60 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getRepeatedNestedEnumList().get(0));
61 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getPackedNestedEnum(0));
65 message = TestAllTypes.parseFrom(data);
71 assertEquals(TestAllTypes.NestedEnum.UNRECOGNIZED, message.getOptionalNestedEnum())
    [all...]
SingleFieldBuilderTest.java 33 import protobuf_unittest.UnittestProto.TestAllTypes;
49 SingleFieldBuilder<TestAllTypes, TestAllTypes.Builder,
51 new SingleFieldBuilder<TestAllTypes, TestAllTypes.Builder,
53 TestAllTypes.getDefaultInstance(),
56 assertSame(TestAllTypes.getDefaultInstance(), builder.getMessage());
57 assertEquals(TestAllTypes.getDefaultInstance(),
63 TestAllTypes message = builder.build();
79 SingleFieldBuilder<TestAllTypes, TestAllTypes.Builder
    [all...]
LazyFieldLiteTest.java 37 import protobuf_unittest.UnittestProto.TestAllTypes;
53 assertEquals(message, lazyField.getValue(TestAllTypes.getDefaultInstance()));
55 assertNotEqual(message, lazyField.getValue(TestAllTypes.getDefaultInstance()));
70 assertNotEqual(message, lazyField.getValue(TestAllTypes.getDefaultInstance()));
71 message = lazyField.getValue(TestAllTypes.getDefaultInstance());
73 assertEquals(message, lazyField.getValue(TestAllTypes.getDefaultInstance()));
139 TestAllTypes.getDefaultInstance(), field.getValue(TestAllTypes.getDefaultInstance()));
145 TestAllTypes message1 = TestAllTypes.newBuilder().setOptionalInt32(1).build()
    [all...]
GeneratedMessageTest.java 61 import protobuf_unittest.UnittestProto.TestAllTypes;
62 import protobuf_unittest.UnittestProto.TestAllTypes.NestedMessage;
88 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null);
91 assertSame(TestAllTypes.getDefaultInstance(),
92 TestAllTypes.getDefaultInstance().getDefaultInstanceForType());
93 assertSame(TestAllTypes.getDefaultInstance(),
94 TestAllTypes.newBuilder().getDefaultInstanceForType());
98 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
100 TestAllTypes message = builder.build()
    [all...]
FieldPresenceTest.java 35 import com.google.protobuf.FieldPresenceTestProto.TestAllTypes;
72 UnittestProto.TestAllTypes.class,
73 TestAllTypes.class,
76 UnittestProto.TestAllTypes.class,
77 TestAllTypes.class,
80 UnittestProto.TestAllTypes.class,
81 TestAllTypes.class,
84 UnittestProto.TestAllTypes.class,
85 TestAllTypes.class,
89 UnittestProto.TestAllTypes.Builder.class
    [all...]
ParserTest.java 41 import protobuf_unittest.UnittestProto.TestAllTypes;
61 assertEquals(TestAllTypes.parser(), TestUtil.getAllSet().getParserForType());
196 TestAllTypes normalMessage = TestUtil.getAllSet();
240 private void assertMessageMerged(TestAllTypes allTypes)
257 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
258 TestAllTypes msg1 = builder.setOptionalInt32(1).build();
260 TestAllTypes msg2 = builder.setOptionalInt64(2).build();
262 TestAllTypes msg3 = builder.setOptionalInt32(3)
WireFormatTest.java 40 import protobuf_unittest.UnittestProto.TestAllTypes;
61 TestAllTypes message = TestUtil.getAllSet();
66 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes);
83 // TestAllTypes and TestAllExtensions should have compatible wire formats,
84 // so if we serialize a TestAllExtensions then parse it as TestAllTypes
91 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes);
131 // TestAllTypes and TestAllExtensions should have compatible wire formats,
132 // so if we serialize a TestAllExtensions then parse it as TestAllTypes
    [all...]
DescriptorsTest.java 56 import protobuf_unittest.UnittestProto.TestAllTypes;
104 Descriptor messageType = TestAllTypes.getDescriptor();
106 assertEquals(messageType, file.findMessageTypeByName("TestAllTypes"));
108 assertNull(file.findMessageTypeByName("protobuf_unittest.TestAllTypes"));
152 Descriptor messageType = TestAllTypes.getDescriptor();
153 Descriptor nestedType = TestAllTypes.NestedMessage.getDescriptor();
155 assertEquals("TestAllTypes", messageType.getName());
156 assertEquals("protobuf_unittest.TestAllTypes", messageType.getFullName());
161 assertEquals("TestAllTypes", messageType.toProto().getName());
164 assertEquals("protobuf_unittest.TestAllTypes.NestedMessage"
    [all...]
AbstractMessageTest.java 38 import protobuf_unittest.UnittestProto.TestAllTypes;
208 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null);
217 TestAllTypes.newBuilder(TestUtil.getAllSet()))
219 TestUtil.assertClear((TestAllTypes) message.wrappedMessage);
224 new AbstractMessageWrapper.Builder(TestAllTypes.newBuilder())
226 TestUtil.assertAllFieldsSet((TestAllTypes) message.wrappedMessage);
230 TestAllTypes message = TestUtil.getAllSet();
241 TestAllTypes.parseFrom(abstractMessage.toByteString()));
249 new AbstractMessageWrapper.Builder(TestAllTypes.newBuilder());
252 TestUtil.assertAllFieldsSet((TestAllTypes) message.wrappedMessage)
    [all...]
  /external/protobuf/java/util/src/test/java/com/google/protobuf/util/
JsonFormatTest.java 50 import com.google.protobuf.util.JsonTestProto.TestAllTypes;
51 import com.google.protobuf.util.JsonTestProto.TestAllTypes.NestedEnum;
52 import com.google.protobuf.util.JsonTestProto.TestAllTypes.NestedMessage;
70 private void setAllFields(TestAllTypes.Builder builder) {
148 TestAllTypes.Builder builder = TestAllTypes.newBuilder();
150 TestAllTypes message = builder.build();
201 TestAllTypes message = TestAllTypes.newBuilder()
229 TestAllTypes message = TestAllTypes.newBuilder(
    [all...]
  /external/golang-protobuf/_conformance/conformance_proto/
conformance.pb.go 13 TestAllTypes
120 // The payload (whether protobuf of JSON) is always for a TestAllTypes proto
468 type TestAllTypes struct {
491 RecursiveMessage *TestAllTypes `protobuf:"bytes,27,opt,name=recursive_message,json=recursiveMessage" json:"recursive_message,omitempty"`
    [all...]
  /external/protobuf/csharp/src/Google.Protobuf.Conformance/
Conformance.cs 192 new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.TestAllTypes), global::Conformance.TestAllTypes.Parser, new[]{ "OptionalInt32", "OptionalInt64", "OptionalUint32", "OptionalUint64", "OptionalSint32", "OptionalSint64", "OptionalFixed32", "OptionalFixed64", "OptionalSfixed32", "OptionalSfixed64", "OptionalFloat", "OptionalDouble", "OptionalBool", "OptionalString", "OptionalBytes", "OptionalNestedMessage", "OptionalForeignMessage", "OptionalNestedEnum", "OptionalForeignEnum", "OptionalStringPiece", "OptionalCord", "RecursiveMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedStringPiece", "RepeatedCord", "MapInt32Int32", "MapInt64Int64", "MapUint32Uint32", "MapUint64Uint64", "MapSint32Sint32", "MapSint64Sint64", "MapFixed32Fixed32", "MapFixed64Fixed64", "MapSfixed32Sfixed32", "MapSfixed64Sfixed64", "MapInt32Float", "MapInt32Double", "MapBoolBool", "MapStringString", "MapStringBytes", "MapStringNestedMessage", "MapStringForeignMessage", "MapStringNestedEnum", "MapStringForeignEnum", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", "OptionalBoolWrapper", "OptionalInt32Wrapper", "OptionalInt64Wrapper", "OptionalUint32Wrapper", "OptionalUint64Wrapper", "OptionalFloatWrapper", "OptionalDoubleWrapper", "OptionalStringWrapper", "OptionalBytesWrapper", "RepeatedBoolWrapper", "RepeatedInt32Wrapper", "RepeatedInt64Wrapper", "RepeatedUint32Wrapper", "RepeatedUint64Wrapper", "RepeatedFloatWrapper", "RepeatedDoubleWrapper", "RepeatedStringWrapper", "RepeatedBytesWrapper", "OptionalDuration", "OptionalTimestamp", "OptionalFieldMask", "OptionalStruct", "OptionalAny", "OptionalValue", "RepeatedDuration", "RepeatedTimestamp", "RepeatedFieldmask", "RepeatedStruct", "RepeatedAny", "RepeatedValue", "Fieldname1", "FieldName2", "FieldName3", "FieldName4", "Field0Name5", "Field0Name6", "FieldName7", "FieldName8", "FieldName9", "FieldName10", "FIELDNAME11", "FIELDName12" }, new[]{ "OneofField" }, new[]{ typeof(global::Conformance.TestAllTypes.Types.NestedEnum) }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Conformance.TestAllTypes.Types.NestedMessage), global::Conformance.TestAllTypes.Types.NestedMessage.Parser, new[]{ "A", "Corecursive" }, null, null, null),
    [all...]
  /external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/
UnittestProto3.cs 156 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestAllTypes), global::Google.Protobuf.TestProtos.TestAllTypes.Parser, new[]{ "SingleInt32", "SingleInt64", "SingleUint32", "SingleUint64", "SingleSint32", "SingleSint64", "SingleFixed32", "SingleFixed64", "SingleSfixed32", "SingleSfixed64", "SingleFloat", "SingleDouble", "SingleBool", "SingleString", "SingleBytes", "SingleNestedMessage", "SingleForeignMessage", "SingleImportMessage", "SingleNestedEnum", "SingleForeignEnum", "SingleImportEnum", "SinglePublicImportMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedPublicImportMessage", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes" }, new[]{ "OneofField" }, new[]{ typeof(global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage), global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage.Parser, new[]{ "Bb" }, null, null, null)}),
239 public sealed partial class TestAllTypes : pb::IMessage<TestAllTypes> {
240 private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::MessageParser<TestAllTypes>(() => new TestAllTypes());
    [all...]

Completed in 1028 milliseconds