Home
last modified time | relevance | path

Searched refs:message (Results 1 – 25 of 7709) sorted by relevance

12345678910>>...309

/external/protobuf/src/google/protobuf/
Dtest_util_lite.cc44 void TestUtilLite::SetAllFields(unittest::TestAllTypesLite* message) { in SetAllFields() argument
45 message->set_optional_int32(101); in SetAllFields()
46 message->set_optional_int64(102); in SetAllFields()
47 message->set_optional_uint32(103); in SetAllFields()
48 message->set_optional_uint64(104); in SetAllFields()
49 message->set_optional_sint32(105); in SetAllFields()
50 message->set_optional_sint64(106); in SetAllFields()
51 message->set_optional_fixed32(107); in SetAllFields()
52 message->set_optional_fixed64(108); in SetAllFields()
53 message->set_optional_sfixed32(109); in SetAllFields()
[all …]
Dmap_test_util_impl.h51 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 …]
Dtest_util.inc43 #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 …]
Dtest_util.h66 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 …]
Dreflection_ops_unittest.cc53 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 …]
Dmap_test_util.cc39 void MapTestUtil::SetMapFields(unittest::TestMap* message) { in SetMapFields() argument
41 unittest::MAP_ENUM_BAZ>(message); in SetMapFields()
44 void MapTestUtil::SetArenaMapFields(unittest::TestArenaMap* message) { in SetArenaMapFields() argument
46 unittest::MAP_ENUM_BAZ>(message); in SetArenaMapFields()
49 void MapTestUtil::SetMapFieldsInitialized(unittest::TestMap* message) { in SetMapFieldsInitialized() argument
50 MapTestUtilImpl::SetMapFieldsInitialized(message); in SetMapFieldsInitialized()
53 void MapTestUtil::ModifyMapFields(unittest::TestMap* message) { in ModifyMapFields() argument
55 message); in ModifyMapFields()
58 void MapTestUtil::ExpectClear(const unittest::TestMap& message) { in ExpectClear() argument
59 MapTestUtilImpl::ExpectClear(message); in ExpectClear()
[all …]
Dno_field_presence_test.cc234 proto2_nofieldpresence_unittest::TestAllTypes message; in TEST() local
238 CheckDefaultValues(message); in TEST()
239 FillValues(&message); in TEST()
240 CheckNonDefaultValues(message); in TEST()
243 message.Clear(); in TEST()
244 CheckDefaultValues(message); in TEST()
249 proto2_nofieldpresence_unittest::TestAllTypes message; in TEST() local
250 EXPECT_EQ(false, message.has_optional_nested_message()); in TEST()
253 EXPECT_EQ(0, message.optional_nested_message().bb()); in TEST()
254 EXPECT_EQ(false, message.has_optional_nested_message()); in TEST()
[all …]
Dpreserve_unknown_enum_test.cc43 proto3_preserve_unknown_enum_unittest::MyMessagePlusExtra* message) { in FillMessage() argument
44 message->set_e(proto3_preserve_unknown_enum_unittest::E_EXTRA); in FillMessage()
45 message->add_repeated_e(proto3_preserve_unknown_enum_unittest::E_EXTRA); in FillMessage()
46 message->add_repeated_packed_e( in FillMessage()
48 message->add_repeated_packed_unexpected_e( in FillMessage()
50 message->set_oneof_e_1(proto3_preserve_unknown_enum_unittest::E_EXTRA); in FillMessage()
54 const proto3_preserve_unknown_enum_unittest::MyMessagePlusExtra& message) { in CheckMessage() argument
55 EXPECT_EQ(proto3_preserve_unknown_enum_unittest::E_EXTRA, message.e()); in CheckMessage()
56 EXPECT_EQ(1, message.repeated_e_size()); in CheckMessage()
58 message.repeated_e(0)); in CheckMessage()
[all …]
/external/protobuf/python/google/protobuf/internal/
Dmore_messages.proto39 // 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 …]
Dtest_util.py55 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 …]
Djson_format_test.py63 def FillAllFields(self, message): argument
64 message.int32_value = 20
65 message.int64_value = -20
66 message.uint32_value = 3120987654
67 message.uint64_value = 12345678900
68 message.float_value = float('-inf')
69 message.double_value = 3.1415
70 message.bool_value = True
71 message.string_value = 'foo'
72 message.bytes_value = b'bar'
[all …]
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DTestUtil.java226 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()
233 message.setOptionalFixed32 (107); in setAllFields()
234 message.setOptionalFixed64 (108); in setAllFields()
235 message.setOptionalSfixed32(109); in setAllFields()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DTestUtil.java269 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/
Dtest_reserved_message_lower.proto5 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 …]
Dtest_reserved_message_upper.proto5 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/
DGPBTestUtilities.m95 - (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 …]
DGPBPerfTests.m57 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 …]
DGPBMessageTests.m55 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 …]
/external/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dtest_util.py45 def SetAllNonLazyFields(message): argument
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
63 message.optional_fixed64 = 108
64 message.optional_sfixed32 = 109
[all …]
Dmessage_test.py56 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]))
216 message = unittest_pb2.TestPackedTypes()
217 message.ParseFromString(serialized)
[all …]
Dtext_format_test.py68 message = unittest_pb2.TestAllTypes()
69 test_util.SetAllFields(message)
71 self.RemoveRedundantZeros(text_format.MessageToString(message)),
75 message = unittest_pb2.TestAllExtensions()
76 test_util.SetAllExtensions(message)
78 self.RemoveRedundantZeros(text_format.MessageToString(message)),
82 message = unittest_mset_pb2.TestMessageSetContainer()
85 message.message_set.Extensions[ext1].i = 23
86 message.message_set.Extensions[ext2].str = 'foo'
87 self.CompareToGoldenText(text_format.MessageToString(message),
[all …]
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/lang/
Dwpa_gui_de.ts6 <message>
10 </message>
11 <message>
15 </message>
16 <message>
20 </message>
21 <message>
25 </message>
26 <message>
30 </message>
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs46 var message = SampleMessages.CreateFullTestAllTypes(); 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/
DFieldAccessTest.cs46 var message = SampleMessages.CreateFullTestAllTypes(); 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/autotest/client/cros/cellular/mbim_compliance/
Dmbim_message_unittest.py55 message = TestMessage()
66 message = TestMessage(message_type=4, fake=5)
74 message = TestMessage(message_type=3)
75 self.assertEqual(message.message_length, 0)
76 self.assertEqual(message.transaction_id, 0)
77 self.assertEqual(message.message_type, 3)
86 message = TestMessage(message_type=3, transaction_id=4)
87 self.assertEqual(message.message_length, 0)
88 self.assertEqual(message.transaction_id, 4)
89 self.assertEqual(message.message_type, 3)
[all …]

12345678910>>...309