/external/protobuf/ruby/tests/ |
D | basic.rb | 123 assert m.optional_int32 == 0 138 m.optional_int32 = -42 139 assert m.optional_int32 == -42 166 assert m.optional_int32 == -42 226 m.optional_int32 = "hello" 382 l3[0].optional_int32 = 1000 383 assert l[0].optional_int32 == 1000 388 new_msg.optional_int32 = 1000 389 assert l4[1].optional_int32 == 1000 589 assert m.values.map{|msg| msg.optional_int32}.sort == [42, 84] [all …]
|
D | generated_code.proto | 6 int32 optional_int32 = 1; field
|
/external/protobuf/src/google/protobuf/ |
D | dynamic_message_unittest.cc | 265 const FieldDescriptor* optional_int32 = in TEST_F() local 269 EXPECT_TRUE(optional_int32 != NULL); in TEST_F() 272 EXPECT_EQ(false, refl->HasField(*message, optional_int32)); in TEST_F() 273 refl->SetInt32(message, optional_int32, 42); in TEST_F() 274 EXPECT_EQ(true, refl->HasField(*message, optional_int32)); in TEST_F() 275 refl->SetInt32(message, optional_int32, 0); in TEST_F() 276 EXPECT_EQ(false, refl->HasField(*message, optional_int32)); in TEST_F()
|
D | no_field_presence_test.cc | 46 EXPECT_EQ(0, m.optional_int32()); in CheckDefaultValues() 157 EXPECT_EQ(100, m.optional_int32()); in CheckNonDefaultValues() 177 EXPECT_EQ(44, m.optional_proto2_message().optional_int32()); in CheckNonDefaultValues() 220 EXPECT_EQ(48, m.repeated_proto2_message(0).optional_int32()); in CheckNonDefaultValues() 363 EXPECT_EQ(0, message.optional_int32()); in TEST() 474 EXPECT_EQ(42, dest.optional_int32()); in TEST() 480 EXPECT_EQ(84, dest.optional_int32()); in TEST()
|
D | message_unittest.cc | 325 EXPECT_EQ(3, message.optional_int32()); in ExpectMessageMerged() 423 EXPECT_EQ(1, dest.optional_int32()); // only source: use source in TEST()
|
D | proto3_lite_unittest.cc | 80 EXPECT_EQ(100, m.optional_int32()); in ExpectAllFieldsSet()
|
D | proto3_arena_lite_unittest.cc | 80 EXPECT_EQ(100, m.optional_int32()); in ExpectAllFieldsSet()
|
D | arena_unittest.cc | 282 EXPECT_EQ(42, copied.optional_int32()); in TEST() 291 EXPECT_EQ(42, copied.optional_int32()); in TEST() 960 EXPECT_EQ(i, field1.Get(i).optional_int32()); in TestSwapRepeatedField() 963 EXPECT_EQ(i, field2.Get(i).optional_int32()); in TestSwapRepeatedField() 1172 EXPECT_EQ(42, deserialized->optional_int32()); in TEST()
|
/external/protobuf/python/google/protobuf/internal/ |
D | well_known_types_test.py | 450 nested_src.child.payload.optional_int32 = 1234 451 nested_src.child.child.payload.optional_int32 = 5678 455 self.assertEqual(1234, nested_dst.child.payload.optional_int32) 456 self.assertEqual(0, nested_dst.child.child.payload.optional_int32) 460 self.assertEqual(1234, nested_dst.child.payload.optional_int32) 461 self.assertEqual(5678, nested_dst.child.child.payload.optional_int32) 466 self.assertEqual(0, nested_dst.child.payload.optional_int32) 467 self.assertEqual(5678, nested_dst.child.child.payload.optional_int32) 472 self.assertEqual(1234, nested_dst.child.payload.optional_int32) 473 self.assertEqual(5678, nested_dst.child.child.payload.optional_int32) [all …]
|
D | reflection_test.py | 121 optional_int32=24, 126 self.assertEqual(24, proto.optional_int32) 183 optional_int32=24, 198 self.assertEqual(24, proto.optional_int32) 217 TypeError, unittest_pb2.TestAllTypes, optional_int32="foo") 236 message = unittest_pb2.TestAllTypes(optional_int32 = 12) 254 self.assertEqual(0, proto.optional_int32) 258 proto.optional_int32 = 1 440 self.assertEqual(0, recursive_proto.bb.a.bb.a.bb.optional_int32) 442 recursive_proto.bb.a.bb.a.bb.optional_int32 = 5 [all …]
|
D | unknown_fields_test.py | 185 self.assertEqual(self.all_fields.optional_int32, value) 214 message.optional_int32 = 1 229 self.assertEqual(message.optional_int32, 1)
|
D | message_test.py | 977 self.assertEqual(0, message.optional_int32) 982 message.optional_int32 = 0 990 message.optional_int32 = 5 1006 self.assertEqual(0, message.optional_int32) 1066 messages[0].optional_int32 = 1 1068 messages[2].optional_int32 = 3 1072 merged_message.optional_int32 = 3 1110 optional_int32=100, 1123 self.assertEqual(100, message.optional_int32) 1207 self.assertEqual(0, message.optional_int32) [all …]
|
D | more_messages.proto | 45 optional int32 optional_int32 = 1; field
|
/external/protobuf/src/google/protobuf/util/ |
D | field_mask_util_test.cc | 353 TEST_MERGE_ONE_PRIMITIVE_FIELD(optional_int32) in TEST() 420 EXPECT_EQ(1234, nested_dst.child().payload().optional_int32()); in TEST() 421 EXPECT_EQ(0, nested_dst.child().child().payload().optional_int32()); in TEST() 425 EXPECT_EQ(1234, nested_dst.child().payload().optional_int32()); in TEST() 426 EXPECT_EQ(5678, nested_dst.child().child().payload().optional_int32()); in TEST() 431 EXPECT_EQ(0, nested_dst.child().payload().optional_int32()); in TEST() 432 EXPECT_EQ(5678, nested_dst.child().child().payload().optional_int32()); in TEST() 437 EXPECT_EQ(1234, nested_dst.child().payload().optional_int32()); in TEST() 438 EXPECT_EQ(5678, nested_dst.child().child().payload().optional_int32()); in TEST() 447 EXPECT_EQ(1234, nested_dst.child().payload().optional_int32()); in TEST() [all …]
|
/external/tensorflow/tensorflow/tools/proto_text/ |
D | test.proto | 11 int32 optional_int32 = 1; field 26 int32 optional_int32 = 1000; // use large tag to test output order. field
|
/external/protobuf/java/core/src/test/proto/com/google/protobuf/ |
D | field_presence_test.proto | 51 int32 optional_int32 = 1; field 78 int32 optional_int32 = 1; field
|
/external/protobuf/objectivec/Tests/ |
D | text_format_unittest_data.txt | 1 optional_int32: 101
|
/external/protobuf/src/google/protobuf/testdata/ |
D | text_format_unittest_data_pointy_oneof.txt | 1 optional_int32: 101
|
D | text_format_unittest_data_oneof_implemented.txt | 1 optional_int32: 101
|
D | text_format_unittest_data_pointy.txt | 1 optional_int32: 101
|
D | text_format_unittest_data.txt | 1 optional_int32: 101
|
/external/protobuf/src/google/protobuf/compiler/ruby/ |
D | ruby_generated_code.proto | 6 int32 optional_int32 = 1; field
|
/external/libprotobuf-mutator/src/ |
D | mutator_test_proto3.proto | 20 int32 optional_int32 = 20; field
|
D | mutator_test_proto2.proto | 42 optional int32 optional_int32 = 20; field
|
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/ |
D | unittest_reference_types_nano.proto | 19 optional int32 optional_int32 = 1; field
|