/external/perfetto/src/ipc/ |
D | deferred_unittest.cc | 28 using ::perfetto::ipc::gen::TestMessage; 37 Deferred<TestMessage> deferred; in TEST() 39 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST() 48 AsyncResult<TestMessage> res = AsyncResult<TestMessage>::Create(); in TEST() 64 Deferred<TestMessage> deferred; in TEST() 66 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST() 74 AsyncResult<TestMessage> res = AsyncResult<TestMessage>::Create(); in TEST() 86 Deferred<TestMessage> deferred; in TEST() 87 deferred.Bind([num_callbacks](AsyncResult<TestMessage> msg) { in TEST() 100 Deferred<TestMessage> deferred; in TEST() [all …]
|
/external/protobuf/php/tests/ |
D | EncodeDecodeTest.php | 18 use Foo\TestMessage; alias 19 use Foo\TestMessage\Sub; 43 $m = new TestMessage(); 52 $m = new TestMessage(); 58 $m = new TestMessage(); 247 $from = new TestMessage(); 259 $to = new TestMessage(); 266 $from = new TestMessage(); 273 $to = new TestMessage(); 280 $from = new TestMessage(); [all …]
|
D | memory_leak_test.php | 12 new Foo\TestMessage(); 24 use Foo\TestMessage; alias 25 use Foo\TestMessage\Sub; 27 $from = new TestMessage(); 33 $to = new TestMessage(); 38 $from = new TestMessage(); 48 $arr = new RepeatedField(GPBType::MESSAGE, TestMessage::class); 49 $arr[] = new TestMessage; 53 $m = new TestMessage(); 61 $n = new TestMessage(); [all …]
|
D | GeneratedClassTest.php | 16 use Foo\TestMessage; alias 17 use Foo\TestMessage\Sub; 19 use Foo\TestMessage\NestedEnum; 42 $m = new TestMessage(); 53 $m = new TestMessage(); 86 $m = new TestMessage(); 113 $m = new TestMessage(); 135 $m = new TestMessage(); 174 $m = new TestMessage(); 226 $m = new TestMessage(); [all …]
|
/external/cronet/third_party/protobuf/php/tests/ |
D | EncodeDecodeTest.php | 18 use Foo\TestMessage; alias 19 use Foo\TestMessage\Sub; 43 $m = new TestMessage(); 52 $m = new TestMessage(); 58 $m = new TestMessage(); 247 $from = new TestMessage(); 259 $to = new TestMessage(); 266 $from = new TestMessage(); 273 $to = new TestMessage(); 280 $from = new TestMessage(); [all …]
|
D | memory_leak_test.php | 12 new Foo\TestMessage(); 24 use Foo\TestMessage; alias 25 use Foo\TestMessage\Sub; 27 $from = new TestMessage(); 33 $to = new TestMessage(); 38 $from = new TestMessage(); 48 $arr = new RepeatedField(GPBType::MESSAGE, TestMessage::class); 49 $arr[] = new TestMessage; 53 $m = new TestMessage(); 61 $n = new TestMessage(); [all …]
|
D | GeneratedClassTest.php | 16 use Foo\TestMessage; alias 17 use Foo\TestMessage\Sub; 19 use Foo\TestMessage\NestedEnum; 42 $m = new TestMessage(); 53 $m = new TestMessage(); 86 $m = new TestMessage(); 113 $m = new TestMessage(); 135 $m = new TestMessage(); 174 $m = new TestMessage(); 226 $m = new TestMessage(); [all …]
|
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/ |
D | OldExtensions1.cs | 33 …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 …]
|
/external/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/ |
D | OldExtensions1.cs | 33 …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 …]
|
/external/cronet/third_party/protobuf/ruby/tests/ |
D | repeated_field_test.rb | 9 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) 31 m = TestMessage.new 32 repeated_field_names(TestMessage).each do |field_name| 59 m = TestMessage.new 60 repeated_field_names(TestMessage).each do |field_name| 79 m = TestMessage.new 80 repeated_field_names(TestMessage).each do |field_name| [all …]
|
D | basic_proto2.rb | 37 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 …]
|
D | stress.rb | 18 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
|
/external/cronet/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/ |
D | repeated_field_test.rb | 9 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) 31 m = TestMessage.new 32 repeated_field_names(TestMessage).each do |field_name| 51 m = TestMessage.new 52 repeated_field_names(TestMessage).each do |field_name| 71 m = TestMessage.new 72 repeated_field_names(TestMessage).each do |field_name| [all …]
|
D | basic.rb | 102 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 …]
|
D | stress.rb | 18 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
|
/external/protobuf/ruby/compatibility_tests/v3.0.0/tests/ |
D | repeated_field_test.rb | 9 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) 31 m = TestMessage.new 32 repeated_field_names(TestMessage).each do |field_name| 51 m = TestMessage.new 52 repeated_field_names(TestMessage).each do |field_name| 71 m = TestMessage.new 72 repeated_field_names(TestMessage).each do |field_name| [all …]
|
D | basic.rb | 102 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 …]
|
/external/tensorflow/tensorflow/lite/testing/ |
D | message_test.cc | 28 class TestMessage : public Message { class 30 TestMessage() {} in TestMessage() function in tflite::testing::__anon395fd65c0111::TestMessage 31 explicit TestMessage(const std::string& text_to_parse) { in TestMessage() function in tflite::testing::__anon395fd65c0111::TestMessage 39 TestMessage* m = new TestMessage; in AddChild() 47 const TestMessage* GetChild(int i) const { in GetChild() 48 return dynamic_cast<TestMessage*>(Children()[i].get()); in GetChild() 66 TestMessage message("x{a:1 b:2} y{} z{c:3} d:4"); in TEST() 91 TestMessage message("x{c:3} {} y{d:4}"); in TEST() 97 TestMessage message("x{c:3} } y{d:4}"); in TEST() 103 TestMessage message("x{c:3} z{test} y{d:4}"); in TEST() [all …]
|
/external/protobuf/ruby/tests/ |
D | repeated_field_test.rb | 9 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) 31 m = TestMessage.new 32 repeated_field_names(TestMessage).each do |field_name| 63 m = TestMessage.new 64 repeated_field_names(TestMessage).each do |field_name| 92 m = TestMessage.new 93 repeated_field_names(TestMessage).each do |field_name| [all …]
|
D | basic_proto2.rb | 37 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 …]
|
D | stress.rb | 18 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
|
/external/cronet/third_party/protobuf/js/experimental/runtime/kernel/ |
D | message_set_test.js | 10 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 …]
|
D | kernel_test.js | 12 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 …]
|
/external/cronet/third_party/protobuf/js/experimental/benchmarks/code_size/kernel/ |
D | popular_types.js | 24 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);
|
/external/skia/tests/ |
D | MessageBusTest.cpp | 20 struct TestMessage { struct 21 TestMessage(int i, float f) : x(i), y(f) {} in TestMessage() argument 27 static inline bool SkShouldPostMessageToBus(const TestMessage&, uint32_t) { in SkShouldPostMessageToBus() argument 33 DECLARE_SKMESSAGEBUS_MESSAGE(TestMessage, uint32_t, true) in DECLARE_SKMESSAGEBUS_MESSAGE() argument 36 using TestMessageBus = SkMessageBus<TestMessage, uint32_t>; in DECLARE_SKMESSAGEBUS_MESSAGE() 41 const TestMessage m1 = { 5, 4.2f }; in DECLARE_SKMESSAGEBUS_MESSAGE() 42 const TestMessage m2 = { 6, 4.3f }; in DECLARE_SKMESSAGEBUS_MESSAGE() 47 SkTArray<TestMessage> messages; in DECLARE_SKMESSAGEBUS_MESSAGE() 54 const TestMessage m3 = { 1, 0.3f }; in DECLARE_SKMESSAGEBUS_MESSAGE()
|