Home
last modified time | relevance | path

Searched refs:repeated_bytes (Results 1 - 21 of 21) sorted by relevance

/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
H A Dmessage_test.py340 message.repeated_bytes.append('a')
341 message.repeated_bytes.append('c')
342 message.repeated_bytes.append('b')
343 message.repeated_bytes.sort()
344 self.assertEqual(message.repeated_bytes[0], 'a')
345 self.assertEqual(message.repeated_bytes[1], 'b')
346 self.assertEqual(message.repeated_bytes[2], 'c')
H A Dtest_util.py109 message.repeated_bytes.append('216')
139 message.repeated_bytes.append('316')
448 test_case.assertEqual(2, len(message.repeated_bytes))
475 test_case.assertEqual('216', message.repeated_bytes[0])
504 test_case.assertEqual('316', message.repeated_bytes[1])
/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/
H A Drepeated_field_test.rb43 assert_equal "bar".encode!('ASCII-8BIT'), m.repeated_bytes.first
63 assert_equal "foo".encode!('ASCII-8BIT'), m.repeated_bytes.last
92 assert_equal "foo".encode!('ASCII-8BIT'), m.repeated_bytes.pop
93 assert_equal "bar".encode!('ASCII-8BIT'), m.repeated_bytes.pop
190 m.repeated_bytes[3] = "bar".encode!('ASCII-8BIT')
191 assert_equal ['', '', '', "bar".encode!('ASCII-8BIT')], m.repeated_bytes
589 test_msg.repeated_bytes += ["bar".encode!('ASCII-8BIT'), "foo".encode!('ASCII-8BIT')]
621 repeated :repeated_bytes, :bytes, 20
H A Dbasic.rb45 repeated :repeated_bytes, :bytes, 20
179 expected = '<BasicTest::TestMessage: optional_int32: -42, optional_int64: 0, optional_uint32: 0, optional_uint64: 0, optional_bool: false, optional_float: 0.0, optional_double: 0.0, optional_string: "", optional_bytes: "", optional_msg: <BasicTest::TestMessage2: foo: 0>, optional_enum: :A, repeated_int32: [], repeated_int64: [], repeated_uint32: [], repeated_uint64: [], repeated_bool: [], repeated_float: [], repeated_double: [], repeated_string: ["hello", "there", "world"], repeated_bytes: [], repeated_msg: [], repeated_enum: []>'
996 :repeated_bytes=>[],
/third_party/protobuf/ruby/tests/
H A Drepeated_field_test.rb46 assert_equal "bar".encode!('ASCII-8BIT'), m.repeated_bytes.first
71 assert_equal "foo".encode!('ASCII-8BIT'), m.repeated_bytes.last
100 assert_equal "foo".encode!('ASCII-8BIT'), m.repeated_bytes.pop
101 assert_equal "bar".encode!('ASCII-8BIT'), m.repeated_bytes.pop
204 m.repeated_bytes[3] = "bar".encode!('ASCII-8BIT')
205 assert_equal ['', '', '', "bar".encode!('ASCII-8BIT')], m.repeated_bytes
611 test_msg.repeated_bytes += ["bar".encode!('ASCII-8BIT'), "foo".encode!('ASCII-8BIT')]
643 repeated :repeated_bytes, :bytes, 20
H A Dgc_test.rb38 :repeated_bytes => ["b"],
74 :repeated_bytes => ["b"],
H A Dtype_errors.rb150 "Expected array as initializer value for repeated field 'repeated_bytes' (given Symbol)." do
151 A::B::C::TestMessage.new(repeated_bytes: :T22)
H A Dbasic.rb450 :repeated_bytes=>[],
H A Dcommon_tests.rb120 expected = "<#{proto_module}::TestMessage: optional_int32: -42, optional_int64: 0, optional_uint32: 0, optional_uint64: 0, optional_bool: false, optional_float: 0.0, optional_double: 0.0, optional_string: \"\", optional_bytes: \"\", optional_msg: <#{proto_module}::TestMessage2: foo: 0>, optional_enum: :A, repeated_int32: [], repeated_int64: [], repeated_uint32: [], repeated_uint64: [], repeated_bool: [], repeated_float: [], repeated_double: [], repeated_string: [\"hello\", \"there\", \"world\"], repeated_bytes: [], repeated_msg: [], repeated_enum: []>"
1382 assert_equal 'fun', m.repeated_bytes[0].value
1394 repeated_bytes: [Google::Protobuf::BytesValue.new(value: 'fun')],
1764 assert_raise(FrozenErrorType) { m.repeated_bytes = nil }
/third_party/protobuf/python/google/protobuf/internal/
H A Dtest_util.py119 message.repeated_bytes.append(b'216')
151 message.repeated_bytes.append(b'0')
166 message.repeated_bytes[1] = b'316'
493 test_case.assertEqual(2, len(message.repeated_bytes))
522 test_case.assertEqual(b'216', message.repeated_bytes[0])
553 test_case.assertEqual(b'316', message.repeated_bytes[1])
H A Dmessage_test.py618 message.repeated_bytes.append(b'a')
619 message.repeated_bytes.append(b'c')
620 message.repeated_bytes.append(b'b')
621 message.repeated_bytes.sort()
622 self.assertEqual(message.repeated_bytes[0], b'a')
623 self.assertEqual(message.repeated_bytes[1], b'b')
624 self.assertEqual(message.repeated_bytes[2], b'c')
625 self.assertEqual(str(message.repeated_bytes), str([b'a', b'b', b'c']))
850 m2.repeated_bytes.append(b'repeated bytes')
857 self.assertEqual(m1.repeated_bytes, [
[all...]
H A Dtext_format_test.py853 repeated_bytes: '\\303\\201 short des\\303\\247ription'
854 repeated_bytes: '\\x12\\x34\\x56\\x78\\x90\\xab\\xcd\\xef'
868 self.assertEqual(m.repeated_bytes[0], self._GOLDEN_BYTES)
869 # repeated_bytes[1] contained simple \ escaped non-UTF-8 raw binary data.
870 self.assertEqual(m.repeated_bytes[1], self._GOLDEN_BYTES_1)
880 self.assertEqual(m.repeated_bytes[0], self._GOLDEN_BYTES)
881 # repeated_bytes[1] contained simple \ escaped non-UTF-8 raw binary data.
882 self.assertEqual(m.repeated_bytes[1], self._GOLDEN_BYTES_1)
893 self.assertEqual(m.repeated_bytes[0], self._GOLDEN_BYTES)
901 self.assertEqual(m.repeated_bytes[
[all...]
H A Dreflection_test.py490 self.assertRaises(TypeError, proto.repeated_bytes, 10)
/third_party/protobuf/src/google/protobuf/compiler/ruby/
H A Druby_generated_code_proto2_pb.rb28 repeated :repeated_bytes, :bytes, 29
H A Druby_generated_code_pb.rb28 repeated :repeated_bytes, :bytes, 29
/third_party/protobuf/src/google/protobuf/
H A Dproto3_arena_lite_unittest.cc88 EXPECT_EQ("jkl;", m.repeated_bytes(0)); in ExpectAllFieldsSet()
H A Dtest_util_lite.cc300 EXPECT_EQ("216", message.repeated_bytes(0)); in ExpectAllFieldsSet()
327 EXPECT_EQ("316", message.repeated_bytes(1)); in ExpectAllFieldsSet()
584 EXPECT_EQ("216", message.repeated_bytes(0)); in ExpectRepeatedFieldsModified()
612 EXPECT_EQ("516", message.repeated_bytes(1)); in ExpectRepeatedFieldsModified()
H A Dno_field_presence_test.cc212 EXPECT_EQ("jkl;", m.repeated_bytes(0)); in CheckNonDefaultValues()
H A Dproto3_arena_unittest.cc93 EXPECT_EQ("jkl;", m.repeated_bytes(0)); in ExpectAllFieldsSet()
/third_party/protobuf/src/google/protobuf/util/
H A Dfield_mask_util_test.cc268 EXPECT_TRUE(FieldMaskUtil::IsPathInFieldMask("repeated_bytes", mask)); in TEST()
490 TEST_MERGE_ONE_FIELD(repeated_bytes) in TEST()
637 TEST_TRIM_ONE_FIELD(repeated_bytes) in TEST()
/third_party/protobuf/ruby/ext/google/protobuf_c/
H A Dupb.c12990 static size_t repeated_bytes(void *closure, const void *handler_data, in repeated_bytes() function
13736 upb_handlers_setstring(h, f, repeated_bytes, &empty_attr); in printer_sethandlers()

Completed in 54 milliseconds