Home
last modified time | relevance | path

Searched refs:TestMessage (Results 1 – 25 of 64) sorted by relevance

123

/third_party/protobuf/php/tests/
DEncodeDecodeTest.php17 use Foo\TestMessage; alias
18 use Foo\TestMessage\Sub;
42 $m = new TestMessage();
231 $from = new TestMessage();
243 $to = new TestMessage();
250 $from = new TestMessage();
257 $to = new TestMessage();
264 $from = new TestMessage();
269 $to = new TestMessage();
276 $m = new TestMessage();
[all …]
Dundefined_test.php7 use Foo\TestMessage; alias
8 use Foo\TestMessage\Sub;
344 $arr[] = new TestMessage;
427 $m = new TestMessage();
428 $m->setOptionalInt32(new TestMessage());
436 $m = new TestMessage();
445 $m = new TestMessage();
446 $m->setOptionalUint32(new TestMessage());
454 $m = new TestMessage();
463 $m = new TestMessage();
[all …]
Dmemory_leak_test.php61 use Foo\TestMessage; alias
62 use Foo\TestMessage\Sub;
64 $from = new TestMessage();
70 $to = new TestMessage();
75 $from = new TestMessage();
85 $arr = new RepeatedField(GPBType::MESSAGE, TestMessage::class);
86 $arr[] = new TestMessage;
90 $m = new TestMessage();
98 $n = new TestMessage();
108 $n = new TestMessage();
[all …]
DGeneratedClassTest.php17 use Foo\TestMessage; alias
18 use Foo\TestMessage\Sub;
20 use Foo\TestMessage\NestedEnum;
36 $m = new TestMessage();
47 $m = new TestMessage();
80 $m = new TestMessage();
102 $m = new TestMessage();
141 $m = new TestMessage();
193 $m = new TestMessage();
240 $m = new TestMessage();
[all …]
/third_party/protobuf/ruby/tests/
Drepeated_field_test.rb9 m = TestMessage.new
10 (Enumerable.instance_methods - TestMessage.new.repeated_string.methods).each do |method_name|
16 m = TestMessage.new
17 arr_methods = ([].methods - TestMessage.new.repeated_string.methods)
30 m = TestMessage.new
31 repeated_field_names(TestMessage).each do |field_name|
58 m = TestMessage.new
59 repeated_field_names(TestMessage).each do |field_name|
78 m = TestMessage.new
79 repeated_field_names(TestMessage).each do |field_name|
[all …]
Dbasic_proto2.rb37 m = TestMessage.new
39 assert !TestMessage.descriptor.lookup('optional_int32').has?(m)
41 assert !TestMessage.descriptor.lookup('optional_int64').has?(m)
43 assert !TestMessage.descriptor.lookup('optional_uint32').has?(m)
45 assert !TestMessage.descriptor.lookup('optional_uint64').has?(m)
47 assert !TestMessage.descriptor.lookup('optional_bool').has?(m)
49 assert !TestMessage.descriptor.lookup('optional_float').has?(m)
51 assert !TestMessage.descriptor.lookup('optional_double').has?(m)
53 assert !TestMessage.descriptor.lookup('optional_string').has?(m)
55 assert !TestMessage.descriptor.lookup('optional_bytes').has?(m)
[all …]
Dstress.rb18 TestMessage = pool.lookup("TestMessage").msgclass constant
23 TestMessage.new(:a => 1000,
29 data = TestMessage.encode(m)
31 mnew = TestMessage.decode(data)
34 assert TestMessage.encode(mnew) == data
Dgenerated_code_proto2.proto5 message TestMessage { message
16 optional TestMessage optional_msg = 11;
28 repeated TestMessage repeated_msg = 31;
40 required TestMessage required_msg = 51;
53 TestMessage oneof_msg = 71;
Dgenerated_code.proto5 message TestMessage { message
16 TestMessage optional_msg = 11;
28 repeated TestMessage repeated_msg = 31;
41 TestMessage oneof_msg = 51;
50 map<string, TestMessage> map_string_msg = 67;
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
DOldExtensions1.cs33 …Google.Protobuf.TestProtos.OldGenerator.TestMessage), global::Google.Protobuf.TestProtos.OldGenera… in OldExtensions1Reflection()
43 public sealed partial class TestMessage : pb::IMessage<TestMessage> { class
44 …te static readonly pb::MessageParser<TestMessage> _parser = new pb::MessageParser<TestMessage>(() …
47 public static pb::MessageParser<TestMessage> Parser { get { return _parser; } }
60 public TestMessage() { in TestMessage() method in Google.Protobuf.TestProtos.OldGenerator.TestMessage
67 public TestMessage(TestMessage other) : this() { in TestMessage() method in Google.Protobuf.TestProtos.OldGenerator.TestMessage
72 public TestMessage Clone() { in Clone()
73 return new TestMessage(this); in Clone()
78 return Equals(other as TestMessage); in Equals()
82 public bool Equals(TestMessage other) { in Equals()
[all …]
/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/
Drepeated_field_test.rb9 m = TestMessage.new
10 (Enumerable.instance_methods - TestMessage.new.repeated_string.methods).each do |method_name|
16 m = TestMessage.new
17 arr_methods = ([].methods - TestMessage.new.repeated_string.methods)
30 m = TestMessage.new
31 repeated_field_names(TestMessage).each do |field_name|
50 m = TestMessage.new
51 repeated_field_names(TestMessage).each do |field_name|
70 m = TestMessage.new
71 repeated_field_names(TestMessage).each do |field_name|
[all …]
Dbasic.rb102 TestMessage = pool.lookup("TestMessage").msgclass constant
121 m = TestMessage.new
136 m = TestMessage.new
161 m = TestMessage.new(:optional_int32 => -42,
175 m = TestMessage.new(:optional_int32 => -42,
184 m1 = TestMessage.new(:optional_int32 => 42)
185 m2 = TestMessage.new(:optional_int32 => 102)
195 TestMessage.new.hello
200 TestMessage.new.hello = "world"
207 TestMessage.new(:hello => "world")
[all …]
Dstress.rb18 TestMessage = pool.lookup("TestMessage").msgclass constant
23 TestMessage.new(:a => 1000,
29 data = TestMessage.encode(m)
31 mnew = TestMessage.decode(data)
34 assert TestMessage.encode(mnew) == data
Dgenerated_code.proto5 message TestMessage { message
16 TestMessage optional_msg = 11;
28 repeated TestMessage repeated_msg = 31;
41 TestMessage oneof_msg = 51;
50 map<string, TestMessage> map_string_msg = 67;
/third_party/protobuf/js/experimental/runtime/kernel/
Dmessage_set_test.js10 const TestMessage = goog.require('protobuf.testing.binary.TestMessage'); constant
23 expect(messageSet.getMessageOrNull(12345, TestMessage.instanceCreator))
34 const message = TestMessage.createEmpty();
36 expect(messageSet.getMessageOrNull(12345, TestMessage.instanceCreator))
42 const message = TestMessage.createEmpty();
55 const message = TestMessage.createEmpty();
62 const message = TestMessage.createEmpty();
76 const message = TestMessage.createEmpty();
89 messageSet.getMessageOrNull(12345, TestMessage.instanceCreator, 2);
96 messageSet.getMessageAttach(12345, TestMessage.instanceCreator, 2);
[all …]
Dkernel_test.js12 const TestMessage = goog.require('protobuf.testing.binary.TestMessage'); constant
363 const msg = accessor.getMessageOrNull(1, TestMessage.instanceCreator);
370 const msg = accessor.getMessageOrNull(1, TestMessage.instanceCreator);
383 accessor.getMessageOrNull(1, TestMessage.instanceCreator);
391 const msg = accessor.getMessageOrNull(1, TestMessage.instanceCreator);
408 accessor.getMessageOrNull(1, TestMessage.instanceCreator);
441 accessor.getMessageOrNull(1, TestMessage.instanceCreator);
461 const submsg1 = new TestMessage(subaccessor);
463 const submsg2 = accessor.getMessage(1, TestMessage.instanceCreator);
472 const subsubmsg = new TestMessage(subsubaccessor);
[all …]
Dkernel_compatibility_test.js20 const TestMessage = goog.require('protobuf.testing.binary.TestMessage'); constant
53 const message = new TestMessage(Kernel.createEmpty());
62 expect(newAccessor.getRepeatedMessageSize(1, TestMessage.instanceCreator))
65 newAccessor.getRepeatedMessageElement(1, TestMessage.instanceCreator, 0)
71 const message = new TestMessage(Kernel.createEmpty());
128 const message1 = new TestMessage(Kernel.createEmpty());
130 const message2 = new TestMessage(Kernel.createEmpty());
136 1, message1, TestMessage.instanceCreator);
138 1, message2, TestMessage.instanceCreator);
146 const newMessage = newAccessor.getMessage(1, TestMessage.instanceCreator);
[all …]
Dkernel_repeated_test.js12 const TestMessage = goog.require('protobuf.testing.binary.TestMessage'); constant
7019 accessor.getRepeatedMessageIterable(1, TestMessage.instanceCreator),
7031 accessor.getRepeatedMessageIterable(1, TestMessage.instanceCreator);
7033 accessor.getRepeatedMessageIterable(1, TestMessage.instanceCreator);
7039 expect(accessor.getRepeatedMessageSize(1, TestMessage.instanceCreator))
7046 const msg1 = new TestMessage(Kernel.fromArrayBuffer(bytes1));
7047 const msg2 = new TestMessage(Kernel.fromArrayBuffer(bytes2));
7053 accessor.getRepeatedMessageIterable(1, TestMessage.instanceCreator),
7062 accessor.getRepeatedMessageIterable(1, TestMessage.instanceCreator);
7064 accessor.getRepeatedMessageIterable(1, TestMessage.instanceCreator);
[all …]
/third_party/protobuf/js/experimental/benchmarks/code_size/kernel/
Dpopular_types.js24 const TestMessage = goog.require('protobuf.testing.binary.TestMessage'); constant
34 const message = new TestMessage(Kernel.createEmpty());
36 message.addRepeatedMessageElement(1, message, TestMessage.instanceCreator);
37 message.addRepeatedMessageIterable(1, [message], TestMessage.instanceCreator);
45 message.setRepeatedMessageElement(1, message, TestMessage.instanceCreator, 0);
53 s += message.getMessage(1, TestMessage.instanceCreator);
54 s += message.getMessageOrNull(1, TestMessage.instanceCreator);
58 s += message.getRepeatedMessageElement(1, TestMessage.instanceCreator, 0);
59 s += message.getRepeatedMessageIterable(1, TestMessage.instanceCreator);
60 s += message.getRepeatedMessageSize(1, TestMessage.instanceCreator);
Dall_types.js10 const TestMessage = goog.require('protobuf.testing.binary.TestMessage'); constant
20 const message = new TestMessage(Kernel.createEmpty());
52 message.addRepeatedMessageElement(1, message, TestMessage.instanceCreator);
53 message.addRepeatedMessageIterable(1, [message], TestMessage.instanceCreator);
127 message.setRepeatedMessageElement(1, message, TestMessage.instanceCreator, 0);
165 s += message.getMessage(1, TestMessage.instanceCreator);
197 s += message.getRepeatedMessageElement(1, TestMessage.instanceCreator, 0);
198 s += message.getRepeatedMessageIterable(1, TestMessage.instanceCreator);
199 s += message.getRepeatedMessageSize(1, TestMessage.instanceCreator);
/third_party/skia/tests/
DMessageBusTest.cpp14 struct TestMessage { struct
15 TestMessage(int i, float f) : x(i), y(f) {} in TestMessage() argument
21 static inline bool SkShouldPostMessageToBus(const TestMessage&, uint32_t) { in SkShouldPostMessageToBus() argument
27 DECLARE_SKMESSAGEBUS_MESSAGE(TestMessage, uint32_t, true) in DECLARE_SKMESSAGEBUS_MESSAGE() argument
30 using TestMessageBus = SkMessageBus<TestMessage, uint32_t>; in DECLARE_SKMESSAGEBUS_MESSAGE()
35 const TestMessage m1 = { 5, 4.2f }; in DECLARE_SKMESSAGEBUS_MESSAGE()
36 const TestMessage m2 = { 6, 4.3f }; in DECLARE_SKMESSAGEBUS_MESSAGE()
41 SkTArray<TestMessage> messages; in DECLARE_SKMESSAGEBUS_MESSAGE()
48 const TestMessage m3 = { 1, 0.3f }; in DECLARE_SKMESSAGEBUS_MESSAGE()
/third_party/protobuf/python/google/protobuf/internal/
Djson_format_test.py108 message = json_format_proto3_pb2.TestMessage()
118 message = json_format_proto3_pb2.TestMessage()
121 parsed_message = json_format_proto3_pb2.TestMessage()
125 message = json_format_proto3_pb2.TestMessage(
131 parsed_message = json_format_proto3_pb2.TestMessage()
135 message = json_format_proto3_pb2.TestMessage()
163 parsed_message = json_format_proto3_pb2.TestMessage()
169 message = json_format_proto3_pb2.TestMessage()
173 parsed_message = json_format_proto3_pb2.TestMessage()
298 message = json_format_proto3_pb2.TestMessage()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/ruby/
Druby_generated_code.proto5 message TestMessage { message
16 TestMessage optional_msg = 11;
28 repeated TestMessage repeated_msg = 31;
41 TestMessage oneof_msg = 51;
50 map<string, TestMessage> map_string_msg = 67;
Druby_generated_code_proto2.proto5 message TestMessage { message
16 optional TestMessage optional_msg = 11;
28 repeated TestMessage repeated_msg = 31;
40 required TestMessage required_msg = 51;
53 TestMessage oneof_msg = 71;
/third_party/protobuf/src/google/protobuf/util/
Djson_util_test.cc57 using proto3::TestMessage;
89 TestMessage m; in TEST_F()
103 TestMessage m; in TEST_F()
190 TestMessage m; in TEST_F()
199 TestMessage orig; in TEST_F()
210 TestMessage parsed; in TEST_F()
258 TestMessage m; in TEST_F()
305 TestMessage m; in TEST_F()
312 TestMessage m; in TEST_F()
345 TestMessage generated; in TEST_F()
[all …]

123