Home
last modified time | relevance | path

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

12345678910>>...212

/third_party/protobuf/src/google/protobuf/
Dtest_util_lite.cc45 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 …]
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 …]
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 …]
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 …]
/third_party/protobuf/js/experimental/benchmarks/code_size/kernel/
Dall_types.js20 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/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.py65 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/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 …]
/third_party/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 …]
/third_party/protobuf/php/tests/proto/
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 …]
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 …]
/third_party/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 …]
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 …]
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 …]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DGeneratedMessageTest.Proto2.cs17 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 …]
/third_party/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 …]
/third_party/node/deps/undici/src/lib/core/
Derrors.js4 constructor (message) { argument
5 super(message)
12 constructor (message) { argument
13 super(message)
16 this.message = message || 'Connect Timeout Error'
22 constructor (message) { argument
23 super(message)
26 this.message = message || 'Headers Timeout Error'
32 constructor (message) { argument
33 super(message)
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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 …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/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 …]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs50 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/node/test/parallel/
Dtest-eslint-avoid-prototype-pollution.js61 errors: [{ message: /prototype pollution/ }], property
65 errors: [{ message: /prototype pollution/ }], property
69 errors: [{ message: /null-prototype/ }], property
73 errors: [{ message: /null-prototype/ }], property
77 errors: [{ message: /null-prototype/ }], property
81 errors: [{ message: /null-prototype/ }], property
85 errors: [{ message: /null-prototype/ }], property
89 errors: [{ message: /null-prototype/ }], property
93 errors: [{ message: /null-prototype/ }], property
97 errors: [{ message: /null-prototype/ }], property
[all …]

12345678910>>...212