/external/protobuf/src/google/protobuf/ |
D | test_util_lite.cc | 45 void TestUtilLite::SetAllFields(unittest::TestAllTypesLite* message) { in SetAllFields() argument 46 message->set_optional_int32(101); in SetAllFields() 47 message->set_optional_int64(102); in SetAllFields() 48 message->set_optional_uint32(103); in SetAllFields() 49 message->set_optional_uint64(104); in SetAllFields() 50 message->set_optional_sint32(105); in SetAllFields() 51 message->set_optional_sint64(106); in SetAllFields() 52 message->set_optional_fixed32(107); in SetAllFields() 53 message->set_optional_fixed64(108); in SetAllFields() 54 message->set_optional_sfixed32(109); in SetAllFields() [all …]
|
D | map_test_util_impl.h | 51 static void SetMapFields(MapMessage* message); 56 static void SetArenaMapFields(MapMessage* message); 60 static void SetMapFieldsInitialized(MapMessage* message); 65 static void ModifyMapFields(MapMessage* message); 71 static void ExpectMapFieldsSet(const MapMessage& message); 77 static void ExpectArenaMapFieldsSet(const MapMessage& message); 82 static void ExpectMapFieldsSetInitialized(const MapMessage& message); 88 static void ExpectMapFieldsModified(const MapMessage& message); 92 static void ExpectClear(const MapMessage& message); 109 void MapTestUtilImpl::SetMapFields(MapMessage* message) { in SetMapFields() argument [all …]
|
D | test_util.inc | 44 #include <google/protobuf/message.h> 50 // Set every field in the message to a unique value. 51 inline void SetAllFields(UNITTEST::TestAllTypes* message); 52 inline void SetOptionalFields(UNITTEST::TestAllTypes* message); 53 inline void AddRepeatedFields1(UNITTEST::TestAllTypes* message); 54 inline void AddRepeatedFields2(UNITTEST::TestAllTypes* message); 55 inline void SetDefaultFields(UNITTEST::TestAllTypes* message); 56 inline void SetOneofFields(UNITTEST::TestAllTypes* message); 57 inline void SetAllExtensions(UNITTEST::TestAllExtensions* message); 58 inline void SetOneofFields(UNITTEST::TestAllExtensions* message); [all …]
|
D | reflection_ops_unittest.cc | 53 unittest::TestAllTypes message; in TEST() local 55 TestUtil::SetAllFields(&message); in TEST() 56 TestUtil::ExpectAllFieldsSet(message); in TEST() 60 unittest::TestAllTypes message, message2; in TEST() local 62 TestUtil::SetAllFields(&message); in TEST() 64 ReflectionOps::Copy(message, &message2); in TEST() 74 unittest::TestAllExtensions message, message2; in TEST() local 76 TestUtil::SetAllExtensions(&message); in TEST() 78 ReflectionOps::Copy(message, &message2); in TEST() 84 unittest::TestOneof2 message, message2; in TEST() local [all …]
|
D | test_util.h | 67 void SetAllFieldsViaReflection(Message* message); 68 void ModifyRepeatedFieldsViaReflection(Message* message); 69 void ExpectAllFieldsSetViaReflection(const Message& message); 70 void ExpectClearViaReflection(const Message& message); 72 void SetPackedFieldsViaReflection(Message* message); 73 void ExpectPackedFieldsSetViaReflection(const Message& message); 75 void RemoveLastRepeatedsViaReflection(Message* message); 76 void ReleaseLastRepeatedsViaReflection(Message* message, 78 void SwapRepeatedsViaReflection(Message* message); 79 void SetAllocatedOptionalMessageFieldsToNullViaReflection(Message* message); [all …]
|
/external/cronet/third_party/protobuf/src/google/protobuf/ |
D | test_util_lite.cc | 45 void TestUtilLite::SetAllFields(unittest::TestAllTypesLite* message) { in SetAllFields() argument 46 message->set_optional_int32(101); in SetAllFields() 47 message->set_optional_int64(102); in SetAllFields() 48 message->set_optional_uint32(103); in SetAllFields() 49 message->set_optional_uint64(104); in SetAllFields() 50 message->set_optional_sint32(105); in SetAllFields() 51 message->set_optional_sint64(106); in SetAllFields() 52 message->set_optional_fixed32(107); in SetAllFields() 53 message->set_optional_fixed64(108); in SetAllFields() 54 message->set_optional_sfixed32(109); in SetAllFields() [all …]
|
D | map_test_util_impl.h | 51 static void SetMapFields(MapMessage* message); 56 static void SetArenaMapFields(MapMessage* message); 60 static void SetMapFieldsInitialized(MapMessage* message); 65 static void ModifyMapFields(MapMessage* message); 71 static void ExpectMapFieldsSet(const MapMessage& message); 77 static void ExpectArenaMapFieldsSet(const MapMessage& message); 82 static void ExpectMapFieldsSetInitialized(const MapMessage& message); 88 static void ExpectMapFieldsModified(const MapMessage& message); 92 static void ExpectClear(const MapMessage& message); 109 void MapTestUtilImpl::SetMapFields(MapMessage* message) { in SetMapFields() argument [all …]
|
D | test_util.inc | 43 #include <google/protobuf/message.h> 50 // Set every field in the message to a unique value. 51 inline void SetAllFields(UNITTEST::TestAllTypes* message); 52 inline void SetOptionalFields(UNITTEST::TestAllTypes* message); 53 inline void AddRepeatedFields1(UNITTEST::TestAllTypes* message); 54 inline void AddRepeatedFields2(UNITTEST::TestAllTypes* message); 55 inline void SetDefaultFields(UNITTEST::TestAllTypes* message); 56 inline void SetOneofFields(UNITTEST::TestAllTypes* message); 57 inline void SetAllExtensions(UNITTEST::TestAllExtensions* message); 58 inline void SetOneofFields(UNITTEST::TestAllExtensions* message); [all …]
|
D | reflection_ops_unittest.cc | 53 unittest::TestAllTypes message; in TEST() local 55 TestUtil::SetAllFields(&message); in TEST() 56 TestUtil::ExpectAllFieldsSet(message); in TEST() 60 unittest::TestAllTypes message, message2; in TEST() local 62 TestUtil::SetAllFields(&message); in TEST() 64 ReflectionOps::Copy(message, &message2); in TEST() 74 unittest::TestAllExtensions message, message2; in TEST() local 76 TestUtil::SetAllExtensions(&message); in TEST() 78 ReflectionOps::Copy(message, &message2); in TEST() 84 unittest::TestOneof2 message, message2; in TEST() local [all …]
|
D | test_util.h | 67 void SetAllFieldsViaReflection(Message* message); 68 void ModifyRepeatedFieldsViaReflection(Message* message); 69 void ExpectAllFieldsSetViaReflection(const Message& message); 70 void ExpectClearViaReflection(const Message& message); 72 void SetPackedFieldsViaReflection(Message* message); 73 void ExpectPackedFieldsSetViaReflection(const Message& message); 75 void RemoveLastRepeatedsViaReflection(Message* message); 76 void ReleaseLastRepeatedsViaReflection(Message* message, 78 void SwapRepeatedsViaReflection(Message* message); 79 void SetAllocatedOptionalMessageFieldsToNullViaReflection(Message* message); [all …]
|
/external/cronet/third_party/protobuf/js/experimental/benchmarks/code_size/kernel/ |
D | all_types.js | 20 const message = new TestMessage(Kernel.createEmpty()); 22 message.addPackedBoolElement(1, true); 23 message.addPackedBoolIterable(1, [true]); 24 message.addUnpackedBoolElement(1, true); 25 message.addUnpackedBoolIterable(1, [true]); 26 message.addRepeatedBytesElement(1, ByteString.EMPTY); 27 message.addRepeatedBytesIterable(1, [ByteString.EMPTY]); 28 message.addPackedDoubleElement(1, 1.0); 29 message.addPackedDoubleIterable(1, [1.0]); 30 message.addUnpackedDoubleElement(1, 1.0); [all …]
|
/external/cronet/third_party/protobuf/python/google/protobuf/internal/ |
D | more_messages.proto | 39 // A message where tag numbers are listed out of order, to allow us to test our 42 message OutOfOrderFields { 60 message class { // message keyword 70 message try { 87 message ExtendClass { 93 message TestFullKeyword { 103 message LotsNestedMessage { 104 message B0 {} 105 message B1 {} 106 message B2 {} [all …]
|
D | test_util.py | 55 def IsProto2(message): argument 56 return message.DESCRIPTOR.syntax == "proto2" 59 def SetAllNonLazyFields(message): argument 70 message.optional_int32 = 101 71 message.optional_int64 = 102 72 message.optional_uint32 = 103 73 message.optional_uint64 = 104 74 message.optional_sint32 = 105 75 message.optional_sint64 = 106 76 message.optional_fixed32 = 107 [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | more_messages.proto | 39 // A message where tag numbers are listed out of order, to allow us to test our 42 message OutOfOrderFields { 60 message class { // message keyword 70 message try { 87 message ExtendClass { 93 message TestFullKeyword { 103 message LotsNestedMessage { 104 message B0 {} 105 message B1 {} 106 message B2 {} [all …]
|
D | test_util.py | 55 def IsProto2(message): argument 56 return message.DESCRIPTOR.syntax == "proto2" 59 def SetAllNonLazyFields(message): argument 70 message.optional_int32 = 101 71 message.optional_int64 = 102 72 message.optional_uint32 = 103 73 message.optional_uint64 = 104 74 message.optional_sint32 = 105 75 message.optional_sint64 = 106 76 message.optional_fixed32 = 107 [all …]
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | TestUtil.java | 271 public static void resetMemoizedSize(AbstractMessage message) { in resetMemoizedSize() argument 272 message.memoizedSize = -1; in resetMemoizedSize() 325 public static void setAllFields(TestAllTypes.Builder message) { in setAllFields() argument 326 message.setOptionalInt32(101); in setAllFields() 327 message.setOptionalInt64(102); in setAllFields() 328 message.setOptionalUint32(103); in setAllFields() 329 message.setOptionalUint64(104); in setAllFields() 330 message.setOptionalSint32(105); in setAllFields() 331 message.setOptionalSint64(106); in setAllFields() 332 message.setOptionalFixed32(107); in setAllFields() [all …]
|
/external/cronet/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | TestUtil.java | 269 public static void resetMemoizedSize(AbstractMessage message) { in resetMemoizedSize() argument 270 message.memoizedSize = -1; in resetMemoizedSize() 323 public static void setAllFields(TestAllTypes.Builder message) { in setAllFields() argument 324 message.setOptionalInt32(101); in setAllFields() 325 message.setOptionalInt64(102); in setAllFields() 326 message.setOptionalUint32(103); in setAllFields() 327 message.setOptionalUint64(104); in setAllFields() 328 message.setOptionalSint32(105); in setAllFields() 329 message.setOptionalSint64(106); in setAllFields() 330 message.setOptionalFixed32(107); in setAllFields() [all …]
|
/external/protobuf/php/tests/proto/ |
D | test_reserved_message_lower.proto | 5 message abstract {} 6 message and {} 7 message array {} 8 message as {} 9 message break {} 10 message callable {} 11 message case {} 12 message catch {} 13 message class {} 14 message clone {} [all …]
|
D | test_reserved_message_upper.proto | 5 message ABSTRACT {} 6 message AND {} 7 message ARRAY {} 8 message AS {} 9 message BREAK {} 10 message CALLABLE {} 11 message CASE {} 12 message CATCH {} 13 message CLASS {} 14 message CLONE {} [all …]
|
/external/cronet/third_party/protobuf/php/tests/proto/ |
D | test_reserved_message_upper.proto | 5 message ABSTRACT {} 6 message AND {} 7 message ARRAY {} 8 message AS {} 9 message BREAK {} 10 message CALLABLE {} 11 message CASE {} 12 message CATCH {} 13 message CLASS {} 14 message CLONE {} [all …]
|
D | test_reserved_message_lower.proto | 5 message abstract {} 6 message and {} 7 message array {} 8 message as {} 9 message break {} 10 message callable {} 11 message case {} 12 message catch {} 13 message class {} 14 message clone {} [all …]
|
/external/protobuf/objectivec/Tests/ |
D | GPBTestUtilities.m | 95 - (void)modifyRepeatedExtensions:(TestAllExtensions *)message { 96 [message setExtension:[UnittestRoot repeatedInt32Extension] 99 [message setExtension:[UnittestRoot repeatedInt64Extension] 102 [message setExtension:[UnittestRoot repeatedUint32Extension] 105 [message setExtension:[UnittestRoot repeatedUint64Extension] 108 [message setExtension:[UnittestRoot repeatedSint32Extension] 111 [message setExtension:[UnittestRoot repeatedSint64Extension] 114 [message setExtension:[UnittestRoot repeatedFixed32Extension] 117 [message setExtension:[UnittestRoot repeatedFixed64Extension] 120 [message setExtension:[UnittestRoot repeatedSfixed32Extension] [all …]
|
/external/cronet/third_party/protobuf/objectivec/Tests/ |
D | GPBTestUtilities.m | 95 - (void)modifyRepeatedExtensions:(TestAllExtensions *)message { 96 [message setExtension:[UnittestRoot repeatedInt32Extension] 99 [message setExtension:[UnittestRoot repeatedInt64Extension] 102 [message setExtension:[UnittestRoot repeatedUint32Extension] 105 [message setExtension:[UnittestRoot repeatedUint64Extension] 108 [message setExtension:[UnittestRoot repeatedSint32Extension] 111 [message setExtension:[UnittestRoot repeatedSint64Extension] 114 [message setExtension:[UnittestRoot repeatedFixed32Extension] 117 [message setExtension:[UnittestRoot repeatedFixed64Extension] 120 [message setExtension:[UnittestRoot repeatedSfixed32Extension] [all …]
|
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | GeneratedMessageTest.Proto2.cs | 17 var message = new TestAllTypes(); in DefaultProto2Values() 18 Assert.AreEqual(false, message.OptionalBool); in DefaultProto2Values() 19 Assert.AreEqual(ByteString.Empty, message.OptionalBytes); in DefaultProto2Values() 20 Assert.AreEqual(0.0, message.OptionalDouble); in DefaultProto2Values() 21 Assert.AreEqual(0, message.OptionalFixed32); in DefaultProto2Values() 22 Assert.AreEqual(0L, message.OptionalFixed64); in DefaultProto2Values() 23 Assert.AreEqual(0.0f, message.OptionalFloat); in DefaultProto2Values() 24 Assert.AreEqual(ForeignEnum.ForeignFoo, message.OptionalForeignEnum); in DefaultProto2Values() 25 Assert.IsNull(message.OptionalForeignMessage); in DefaultProto2Values() 26 Assert.AreEqual(ImportEnum.ImportFoo, message.OptionalImportEnum); in DefaultProto2Values() [all …]
|
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
D | GeneratedMessageTest.Proto2.cs | 17 var message = new TestAllTypes(); in DefaultProto2Values() 18 Assert.AreEqual(false, message.OptionalBool); in DefaultProto2Values() 19 Assert.AreEqual(ByteString.Empty, message.OptionalBytes); in DefaultProto2Values() 20 Assert.AreEqual(0.0, message.OptionalDouble); in DefaultProto2Values() 21 Assert.AreEqual(0, message.OptionalFixed32); in DefaultProto2Values() 22 Assert.AreEqual(0L, message.OptionalFixed64); in DefaultProto2Values() 23 Assert.AreEqual(0.0f, message.OptionalFloat); in DefaultProto2Values() 24 Assert.AreEqual(ForeignEnum.ForeignFoo, message.OptionalForeignEnum); in DefaultProto2Values() 25 Assert.IsNull(message.OptionalForeignMessage); in DefaultProto2Values() 26 Assert.AreEqual(ImportEnum.ImportFoo, message.OptionalImportEnum); in DefaultProto2Values() [all …]
|