Home
last modified time | relevance | path

Searched refs:optional_int32 (Results 1 – 25 of 57) sorted by relevance

123

/external/protobuf/ruby/tests/
Dbasic.rb123 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 …]
Dgenerated_code.proto6 int32 optional_int32 = 1; field
/external/protobuf/src/google/protobuf/
Ddynamic_message_unittest.cc265 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()
Dno_field_presence_test.cc46 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()
Dmessage_unittest.cc325 EXPECT_EQ(3, message.optional_int32()); in ExpectMessageMerged()
423 EXPECT_EQ(1, dest.optional_int32()); // only source: use source in TEST()
Dproto3_lite_unittest.cc80 EXPECT_EQ(100, m.optional_int32()); in ExpectAllFieldsSet()
Dproto3_arena_lite_unittest.cc80 EXPECT_EQ(100, m.optional_int32()); in ExpectAllFieldsSet()
Darena_unittest.cc282 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/
Dwell_known_types_test.py450 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 …]
Dreflection_test.py121 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 …]
Dunknown_fields_test.py185 self.assertEqual(self.all_fields.optional_int32, value)
214 message.optional_int32 = 1
229 self.assertEqual(message.optional_int32, 1)
Dmessage_test.py977 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 …]
Dmore_messages.proto45 optional int32 optional_int32 = 1; field
/external/protobuf/src/google/protobuf/util/
Dfield_mask_util_test.cc353 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/
Dtest.proto11 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/
Dfield_presence_test.proto51 int32 optional_int32 = 1; field
78 int32 optional_int32 = 1; field
/external/protobuf/objectivec/Tests/
Dtext_format_unittest_data.txt1 optional_int32: 101
/external/protobuf/src/google/protobuf/testdata/
Dtext_format_unittest_data_pointy_oneof.txt1 optional_int32: 101
Dtext_format_unittest_data_oneof_implemented.txt1 optional_int32: 101
Dtext_format_unittest_data_pointy.txt1 optional_int32: 101
Dtext_format_unittest_data.txt1 optional_int32: 101
/external/protobuf/src/google/protobuf/compiler/ruby/
Druby_generated_code.proto6 int32 optional_int32 = 1; field
/external/libprotobuf-mutator/src/
Dmutator_test_proto3.proto20 int32 optional_int32 = 20; field
Dmutator_test_proto2.proto42 optional int32 optional_int32 = 20; field
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
Dunittest_reference_types_nano.proto19 optional int32 optional_int32 = 1; field

123