Home
last modified time | relevance | path

Searched refs:repeated_int32 (Results 1 – 25 of 54) sorted by relevance

123

/external/protobuf/python/google/protobuf/internal/
Dreflection_test.py134 repeated_int32=[1, 2, 3, 4],
140 self.assertEqual([1, 2, 3, 4], list(proto.repeated_int32))
223 TypeError, unittest_pb2.TestAllTypes, repeated_int32=1234)
225 TypeError, unittest_pb2.TestAllTypes, repeated_int32=["foo"])
243 message = unittest_pb2.TestAllTypes(repeated_int32 = [12])
477 proto.repeated_int32.append(5)
478 proto.repeated_int32.append(11)
669 self.assertRaises(TypeError, proto.repeated_int32.append, 1.1)
670 self.assertRaises(TypeError, proto.repeated_int32.append, 'foo')
674 proto.repeated_int32.append(10)
[all …]
Dmessage_test.py369 message.repeated_int32.append(1)
370 message.repeated_int32.append(3)
371 message.repeated_int32.append(2)
372 message.repeated_int32.sort()
373 self.assertEqual(message.repeated_int32[0], 1)
374 self.assertEqual(message.repeated_int32[1], 2)
375 self.assertEqual(message.repeated_int32[2], 3)
405 message.repeated_int32.append(-3)
406 message.repeated_int32.append(-2)
407 message.repeated_int32.append(-1)
[all …]
Dwell_known_types_test.py502 nested_src.payload.repeated_int32.append(1234)
503 nested_dst.payload.repeated_int32.append(5678)
507 self.assertEqual(2, len(nested_dst.payload.repeated_int32))
508 self.assertEqual(5678, nested_dst.payload.repeated_int32[0])
509 self.assertEqual(1234, nested_dst.payload.repeated_int32[1])
513 self.assertEqual(1, len(nested_dst.payload.repeated_int32))
514 self.assertEqual(1234, nested_dst.payload.repeated_int32[0])
Dpacked_field_test.proto42 repeated int32 repeated_int32 = 1; field
59 repeated int32 repeated_int32 = 1 [packed = false]; field
Dtest_util.py99 message.repeated_int32.append(201)
131 message.repeated_int32.append(301)
457 test_case.assertEqual(2, len(message.repeated_int32))
486 test_case.assertEqual(201, message.repeated_int32[0])
517 test_case.assertEqual(301, message.repeated_int32[1])
/external/protobuf/src/google/protobuf/
Drepeated_field_reflection_unittest.cc140 EXPECT_EQ(message.repeated_int32(i), Func(i, -1)); in TEST()
305 EXPECT_EQ(message.repeated_int32(i), Func(i, -1)); in TEST()
316 &TestAllTypes::repeated_int32); in TEST()
361 EXPECT_EQ(1234, message.repeated_int32(10)); in TEST()
381 EXPECT_EQ(Func(9, -1), message.repeated_int32(0)); in TEST()
382 EXPECT_EQ(Func(0, -1), message.repeated_int32(9)); in TEST()
615 EXPECT_EQ(Func(i, 11), m0.repeated_int32(i)); in TEST()
636 EXPECT_EQ(Func(i, 21), m0.repeated_int32(i + 10)); in TEST()
659 EXPECT_EQ(Func(i, 21), m0.repeated_int32(i)); in TEST()
666 EXPECT_EQ(Func(i, 11), m2.repeated_int32(i)); in TEST()
[all …]
Dtext_format_unittest.cc640 EXPECT_EQ(1, proto_.repeated_int32(0)); in TEST_F()
641 EXPECT_EQ(456, proto_.repeated_int32(1)); in TEST_F()
642 EXPECT_EQ(789, proto_.repeated_int32(2)); in TEST_F()
868 EXPECT_EQ(-1, message.repeated_int32(0)); in TEST_F()
874 EXPECT_EQ(-2147483648u, message.repeated_int32(1)); in TEST_F()
Dproto3_lite_unittest.cc95 EXPECT_EQ(100, m.repeated_int32(0)); in ExpectAllFieldsSet()
Dunittest_proto3_arena.proto101 repeated int32 repeated_int32 = 31; field
168 repeated int32 repeated_int32 = 1 [packed = false]; field
Dmessage_unittest.cc436 EXPECT_EQ(5, dest.repeated_int32(0)); in TEST()
437 EXPECT_EQ(6, dest.repeated_int32(1)); in TEST()
Dunittest_proto3_arena_lite.proto102 repeated int32 repeated_int32 = 31; field
169 repeated int32 repeated_int32 = 1 [packed = false]; field
Dunittest_proto3_lite.proto101 repeated int32 repeated_int32 = 31; field
168 repeated int32 repeated_int32 = 1 [packed = false]; field
Dproto3_arena_lite_unittest.cc95 EXPECT_EQ(100, m.repeated_int32(0)); in ExpectAllFieldsSet()
/external/protobuf/objectivec/Tests/
Dtext_format_unittest_data.txt33 repeated_int32: 201
34 repeated_int32: 301
/external/protobuf/src/google/protobuf/testdata/
Dtext_format_unittest_data_pointy_oneof.txt39 repeated_int32: 201
40 repeated_int32: 301
Dtext_format_unittest_data_oneof_implemented.txt39 repeated_int32: 201
40 repeated_int32: 301
Dtext_format_unittest_data.txt39 repeated_int32: 201
40 repeated_int32: 301
Dtext_format_unittest_data_pointy.txt39 repeated_int32: 201
40 repeated_int32: 301
/external/protobuf/ruby/tests/
Drepeated_field_test.rb33 assert_equal -10, m.repeated_int32.first
53 assert_equal -11, m.repeated_int32.last
74 assert_equal -11, m.repeated_int32.pop
75 assert_equal -10, m.repeated_int32.pop
579 test_msg.repeated_int32 += [-10, -11]
Dgenerated_code.proto18 repeated int32 repeated_int32 = 21; field
Dbasic.rb242 m.repeated_int32 = [] # needs RepeatedField
246 m.repeated_int32.push "hello"
319 m.repeated_int32 = l
320 assert m.repeated_int32 == [5, 2, 3, 4, 7, 8]
321 assert m.repeated_int32.object_id == l.object_id
323 assert m.repeated_int32.pop == 42
/external/protobuf/java/core/src/test/proto/com/google/protobuf/
Dfield_presence_test.proto68 repeated int32 repeated_int32 = 21; field
87 repeated int32 repeated_int32 = 21; field
/external/protobuf/src/google/protobuf/util/
Dfield_mask_util_test.cc387 TEST_MERGE_ONE_FIELD(repeated_int32) in TEST()
477 EXPECT_EQ(5678, nested_dst.payload().repeated_int32(0)); in TEST()
478 EXPECT_EQ(1234, nested_dst.payload().repeated_int32(1)); in TEST()
484 EXPECT_EQ(1234, nested_dst.payload().repeated_int32(0)); in TEST()
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
Dunittest_extension_repeated_nano.proto13 repeated int32 repeated_int32 = 10; field
/external/protobuf/src/google/protobuf/compiler/ruby/
Druby_generated_code.proto18 repeated int32 repeated_int32 = 21; field

123