| /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 { 61 message class { // message keyword 71 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 | 52 # Tests whether the given TestAllTypes message is proto2 or not. 54 # for the proto2 version of the message. 55 def IsProto2(message): argument 56 return message.DESCRIPTOR.syntax == "proto2" 59 def SetAllNonLazyFields(message): argument 60 """Sets every non-lazy field in the message to a unique value. 63 message: A TestAllTypes instance. 70 message.optional_int32 = 101 71 message.optional_int64 = 102 72 message.optional_uint32 = 103 [all …]
|
| D | json_format_test.py | 65 def FillAllFields(self, message): argument 66 message.int32_value = 20 67 message.int64_value = -20 68 message.uint32_value = 3120987654 69 message.uint64_value = 12345678900 70 message.float_value = float('-inf') 71 message.double_value = 3.1415 72 message.bool_value = True 73 message.string_value = 'foo' 74 message.bytes_value = b'bar' [all …]
|
| /third_party/protobuf/src/google/protobuf/ |
| 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 | 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 | 48 // Set every field in the TestMap message to a unique value. 51 static void SetMapFields(MapMessage* message); 53 // Set every field in the TestArenaMap message to a unique value. 56 static void SetArenaMapFields(MapMessage* message); 58 // Set every field in the message to a default value. 60 static void SetMapFieldsInitialized(MapMessage* message); 62 // Modify all the map fields of the message (which should already have been 65 static void ModifyMapFields(MapMessage* message); 71 static void ExpectMapFieldsSet(const MapMessage& message); 77 static void ExpectArenaMapFieldsSet(const MapMessage& message); [all …]
|
| D | test_util.h | 66 void SetAllFieldsViaReflection(Message* message); 67 void ModifyRepeatedFieldsViaReflection(Message* message); 68 void ExpectAllFieldsSetViaReflection(const Message& message); 69 void ExpectClearViaReflection(const Message& message); 71 void SetPackedFieldsViaReflection(Message* message); 72 void ExpectPackedFieldsSetViaReflection(const Message& message); 74 void RemoveLastRepeatedsViaReflection(Message* message); 75 void ReleaseLastRepeatedsViaReflection(Message* message, 77 void SwapRepeatedsViaReflection(Message* message); 78 void SetAllocatedOptionalMessageFieldsToNullViaReflection(Message* message); [all …]
|
| D | map_test_util.inc | 33 #include <google/protobuf/message.h> 40 // Set every field in the TestMap message to a unique value. 41 static void SetMapFields(UNITTEST::TestMap* message); 43 // Set every field in the TestArenaMap message to a unique value. 44 static void SetArenaMapFields(UNITTEST::TestArenaMap* message); 46 // Set every field in the message to a default value. 47 static void SetMapFieldsInitialized(UNITTEST::TestMap* message); 49 // Modify all the map fields of the message (which should already have been 51 static void ModifyMapFields(UNITTEST::TestMap* message); 55 static void ExpectMapFieldsSet(const UNITTEST::TestMap& 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 | message.h | 35 // Defines Message, the abstract interface implemented by non-lite 36 // protocol message objects. Although it's possible to implement this 42 // Say you have a message defined as: 44 // message Foo { 52 // std::string data; // Will store a serialized version of the message. 55 // // Create a message and serialize it. 66 // // Parse the serialized message and check that it contains the 79 // // Same as the last block, but do it dynamically via the Message 81 // Message* foo = new Foo; 96 // // Parse the message. [all …]
|
| /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 …]
|
| D | GPBPerfTests.m | 57 TestAllTypes* message = [[TestAllTypes alloc] init]; 58 [self setAllFields:message repeatedCount:kRepeatedCount]; 59 NSData* rawBytes = [message data]; 60 [message release]; 61 message = [[TestAllTypes alloc] initWithData:rawBytes error:NULL]; 62 [message release]; 72 TestAllTypes *allTypesMessage = [TestAllTypes message]; 89 TestAllTypes *allTypesMessage = [TestAllTypes message]; 121 TestAllExtensions *allExtensionsMessage = [TestAllExtensions message]; 142 TestAllExtensions *allExtensionsMessage = [TestAllExtensions message]; [all …]
|
| D | GPBMessageTests.m | 55 TestAllTypes *message = [TestAllTypes message]; 56 [message setOptionalInt32:1]; 57 [message setOptionalString:@"foo"]; 58 [message setOptionalForeignMessage:[ForeignMessage message]]; 59 [message.repeatedStringArray addObject:@"bar"]; 60 return message; 64 TestAllTypes *message = [TestAllTypes message]; 65 [message setOptionalInt64:2]; 66 [message setOptionalString:@"baz"]; 67 ForeignMessage *foreignMessage = [ForeignMessage message]; [all …]
|
| /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 …]
|
| /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 …]
|
| /third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
| D | GeneratedMessageTest.Proto2.cs | 10 /// Tests around the generated TestAllTypes message in unittest.proto 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() [all …]
|
| /third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
| D | TestUtil.java | 247 * protocol message features, e.g. set all fields of a message, serialize it, parse it, and check 268 /** Dirties the message by resetting the momoized serialized size. */ 269 public static void resetMemoizedSize(AbstractMessage message) { in resetMemoizedSize() argument 270 message.memoizedSize = -1; in resetMemoizedSize() 322 /** Set every field of {@code message} to the values expected by {@code assertAllFieldsSet()}. */ 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() [all …]
|
| /third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
| D | TestUtil.java | 153 * These are useful for testing various protocol message features, e.g. 154 * set all fields of a message, serialize it, parse it, and check that all 223 * Set every field of {@code message} to the values expected by 226 public static void setAllFields(TestAllTypes.Builder message) { in setAllFields() argument 227 message.setOptionalInt32 (101); in setAllFields() 228 message.setOptionalInt64 (102); in setAllFields() 229 message.setOptionalUint32 (103); in setAllFields() 230 message.setOptionalUint64 (104); in setAllFields() 231 message.setOptionalSint32 (105); in setAllFields() 232 message.setOptionalSint64 (106); in setAllFields() [all …]
|
| /third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/ |
| D | test_util.py | 45 def SetAllNonLazyFields(message): argument 46 """Sets every non-lazy field in the message to a unique value. 49 message: A unittest_pb2.TestAllTypes instance. 56 message.optional_int32 = 101 57 message.optional_int64 = 102 58 message.optional_uint32 = 103 59 message.optional_uint64 = 104 60 message.optional_sint32 = 105 61 message.optional_sint64 = 106 62 message.optional_fixed32 = 107 [all …]
|
| D | message_test.py | 33 """Tests python protocol buffers against the golden message. 40 sense to call this a test of the "message" module, which only declares an 56 from google.protobuf import message 137 self.assertRaises(message.EncodeError, unpickled_message.SerializeToString) 182 message = unittest_pb2.TestAllTypes() 183 message.ParseFromString(serialized) 184 self.assertTrue(isnan(message.optional_float)) 185 self.assertTrue(isnan(message.optional_double)) 186 self.assertTrue(isnan(message.repeated_float[0])) 187 self.assertTrue(isnan(message.repeated_double[0])) [all …]
|
| /third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/wpa_gui-qt4/lang/ |
| D | wpa_gui_de.ts | 6 <message> 10 </message> 11 <message> 15 </message> 16 <message> 20 </message> 21 <message> 25 </message> 26 <message> 30 </message> [all …]
|
| /third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/wpa_gui-qt4/lang/ |
| D | wpa_gui_de.ts | 6 <message> 10 </message> 11 <message> 15 </message> 16 <message> 20 </message> 21 <message> 25 </message> 26 <message> 30 </message> [all …]
|
| /third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/ |
| D | FieldAccessTest.cs | 50 var message = SampleMessages.CreateFullTestAllTypes(); in GetValue() 52 …Assert.AreEqual(message.SingleBool, fields[TestProtos.TestAllTypes.SingleBoolFieldNumber].Accessor… in GetValue() 53 …Assert.AreEqual(message.SingleBytes, fields[TestProtos.TestAllTypes.SingleBytesFieldNumber].Access… in GetValue() 54 …Assert.AreEqual(message.SingleDouble, fields[TestProtos.TestAllTypes.SingleDoubleFieldNumber].Acce… in GetValue() 55 …Assert.AreEqual(message.SingleFixed32, fields[TestProtos.TestAllTypes.SingleFixed32FieldNumber].Ac… in GetValue() 56 …Assert.AreEqual(message.SingleFixed64, fields[TestProtos.TestAllTypes.SingleFixed64FieldNumber].Ac… in GetValue() 57 …Assert.AreEqual(message.SingleFloat, fields[TestProtos.TestAllTypes.SingleFloatFieldNumber].Access… in GetValue() 58 …Assert.AreEqual(message.SingleForeignEnum, fields[TestProtos.TestAllTypes.SingleForeignEnumFieldNu… in GetValue() 59 …Assert.AreEqual(message.SingleForeignMessage, fields[TestProtos.TestAllTypes.SingleForeignMessageF… in GetValue() 60 …Assert.AreEqual(message.SingleImportEnum, fields[TestProtos.TestAllTypes.SingleImportEnumFieldNumb… in GetValue() [all …]
|
| /third_party/gstreamer/gstreamer/gst/ |
| D | gstmessage.c | 37 * The basic use pattern of posting a message on a #GstBus is as follows: 61 GstMessage message; member 142 * @type: the message type 144 * Get a printable name for the given message type. Do not modify or free. 146 * Returns: a reference to the static name of the message. 162 * @type: the message type 164 * Get the unique quark for the given message type. 166 * Returns: the quark associated with the message type 181 _gst_message_dispose (GstMessage * message) in _gst_message_dispose() argument 185 if (GST_MINI_OBJECT_FLAG_IS_SET (message, GST_MESSAGE_FLAG_ASYNC_DELIVERY)) { in _gst_message_dispose() [all …]
|