Home
last modified time | relevance | path

Searched refs:optional_nested_message (Results 1 – 25 of 51) sorted by relevance

123

/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_move_unittest.cc54 const auto* nested = &message1.optional_nested_message(); in TEST()
61 EXPECT_EQ(nested, &message2.optional_nested_message()); in TEST()
62 EXPECT_NE(nested, &message1.optional_nested_message()); in TEST()
68 const auto* nested = &message1.optional_nested_message(); in TEST()
76 EXPECT_EQ(nested, &message2.optional_nested_message()); in TEST()
77 EXPECT_NE(nested, &message1.optional_nested_message()); in TEST()
94 const auto* nested = &message1_on_arena->optional_nested_message(); in TEST()
101 EXPECT_EQ(nested, &message2_on_arena->optional_nested_message()); in TEST()
110 const auto* nested = &message1_on_arena->optional_nested_message(); in TEST()
117 EXPECT_NE(nested, &message2_on_arena->optional_nested_message()); in TEST()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/upb/tests/bindings/lua/
Dtest_upb.lua328 assert_nil(msg.optional_nested_message)
332 msg.optional_nested_message = test_messages_proto3.TestAllTypesProto3()
337 msg.optional_nested_message = nested
338 assert_equal(nested, msg.optional_nested_message)
341 assert_error_match("msg expected", function() msg.optional_nested_message = "abc" end)
342 assert_error_match("msg expected", function() msg.optional_nested_message = true end)
343 assert_error_match("msg expected", function() msg.optional_nested_message = false end)
344 assert_error_match("msg expected", function() msg.optional_nested_message = nil end)
345 assert_error_match("msg expected", function() msg.optional_nested_message = {} end)
346 assert_error_match("msg expected", function() msg.optional_nested_message = print end)
[all …]
/external/protobuf/python/google/protobuf/internal/
Dunknown_fields_test.py127 message.optional_nested_message.ParseFromString(
132 b'', message.optional_nested_message.SerializeToString())
136 self.assertEqual(b'', message.optional_nested_message.SerializeToString())
141 msg.map_int32_all_types[1].optional_nested_message.ParseFromString(
146 msg.map_int32_all_types[1].optional_nested_message.SerializeToString())
150 msg.map_int32_all_types[1].optional_nested_message.SerializeToString())
321 nested_message.payload.optional_nested_message.ParseFromString(
324 nested_message.payload.optional_nested_message.UnknownFields())
329 nested_message.payload.optional_nested_message.UnknownFields())
Dreflection_test.py202 optional_nested_message=None)
227 TypeError, unittest_pb2.TestAllTypes, optional_nested_message=1234)
246 optional_nested_message = unittest_pb2.TestAllTypes.NestedMessage())
354 nested = proto.optional_nested_message
362 nested = proto.optional_nested_message
364 self.assertTrue(nested is not proto.optional_nested_message)
367 self.assertEqual(0, proto.optional_nested_message.bb)
371 nested = proto.optional_nested_message
380 nested = proto.optional_nested_message
384 nested = proto.optional_nested_message
[all …]
Dmessage_test.py780 nested = m1.optional_nested_message
782 m2.optional_nested_message.bb = 1
791 nested = msg1.child.payload.optional_nested_message
793 msg2.child.payload.optional_nested_message.bb = 1
810 self.assertEqual(0, m1.optional_nested_message.bb)
811 m2.optional_nested_message.bb = 1
815 self.assertEqual(1, m1.optional_nested_message.bb)
849 self.assertEqual(0, m1.optional_nested_message.bb)
1323 self.assertEqual(0, message.optional_nested_message.bb)
1328 message.optional_nested_message.bb = 0
[all …]
Dtext_format_test.py167 message.optional_nested_message.bb = 3
635 self.assertEqual(message.optional_nested_message.bb, 45)
797 self.assertEqual(2, message.optional_nested_message.bb)
844 message.optional_nested_message.bb = 105
876 message.optional_nested_message.oo = 0
877 message.optional_nested_message.bb = 1
2039 msg = message.optional_nested_message
2053 message.optional_nested_message,
2065 message.optional_nested_message,
/external/protobuf/src/google/protobuf/
Dproto3_arena_unittest.cc79 EXPECT_EQ(42, m.optional_nested_message().bb()); in ExpectAllFieldsSet()
164 EXPECT_EQ(118, arena_message->optional_nested_message().bb()); in TEST()
197 EXPECT_EQ(0, message->optional_nested_message().bb()); in TEST()
Dproto3_arena_lite_unittest.cc77 EXPECT_EQ(42, m.optional_nested_message().bb()); in ExpectAllFieldsSet()
141 EXPECT_EQ(118, arena_message->optional_nested_message().bb()); in TEST()
Dreflection_ops_unittest.cc217 &message.optional_nested_message()); in TEST()
288 message.optional_nested_message().unknown_fields().field_count()); in TEST()
298 message.optional_nested_message().unknown_fields().field_count()); in TEST()
Dno_field_presence_test.cc64 EXPECT_EQ(0, m.optional_nested_message().bb()); in CheckDefaultValues()
171 EXPECT_EQ(42, m.optional_nested_message().bb()); in CheckNonDefaultValues()
253 EXPECT_EQ(0, message.optional_nested_message().bb()); in TEST()
375 EXPECT_EQ(0, message.optional_nested_message().bb()); in TEST()
Dmap_test.cc3401 const auto* nested_msg42_ptr = &original_map[42].optional_nested_message(); in TEST()
3402 const auto* nested_msg43_ptr = &original_map[43].optional_nested_message(); in TEST()
3407 EXPECT_EQ(42, moved_to_map[42].optional_nested_message().bb()); in TEST()
3408 EXPECT_EQ(43, moved_to_map[43].optional_nested_message().bb()); in TEST()
3411 EXPECT_EQ(nested_msg42_ptr, &moved_to_map[42].optional_nested_message()); in TEST()
3412 EXPECT_EQ(nested_msg43_ptr, &moved_to_map[43].optional_nested_message()); in TEST()
3419 const auto* nested_msg42_ptr = &original_map[42].optional_nested_message(); in TEST()
3420 const auto* nested_msg43_ptr = &original_map[43].optional_nested_message(); in TEST()
3425 EXPECT_EQ(42, moved_to_map[42].optional_nested_message().bb()); in TEST()
3426 EXPECT_EQ(43, moved_to_map[43].optional_nested_message().bb()); in TEST()
[all …]
/external/protobuf/java/core/src/test/proto/com/google/protobuf/
Dfield_presence_test.proto54 NestedMessage optional_nested_message = 5; field
82 TestAllTypes.NestedMessage optional_nested_message = 5; field
/external/protobuf/objectivec/Tests/
Dtext_format_unittest_data.txt19 optional_nested_message {
/external/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dtext_format_unittest_data.txt19 optional_nested_message {
Dtest_util.py79 message.optional_nested_message.bb = 118
391 test_case.assertTrue(message.optional_nested_message.HasField('bb'))
419 test_case.assertEqual(118, message.optional_nested_message.bb)
/external/protobuf/src/google/protobuf/testdata/
Dtext_format_unittest_data_pointy_oneof.txt19 optional_nested_message <
Dtext_format_unittest_data.txt19 optional_nested_message {
Dtext_format_unittest_data_pointy.txt19 optional_nested_message <
Dtext_format_unittest_data_oneof_implemented.txt19 optional_nested_message {
/external/tensorflow/tensorflow/tools/proto_text/
Dtest.proto42 NestedMessage optional_nested_message = 18; field
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
Dunittest_reference_types_nano.proto39 optional NestedMessage optional_nested_message = 18; field
Dunittest_has_nano.proto57 optional NestedMessage optional_nested_message = 18; field
Dunittest_accessors_nano.proto57 optional NestedMessage optional_nested_message = 18; field
/external/protobuf/python/google/protobuf/pyext/
Dpython.proto52 optional NestedMessage optional_nested_message = 2; field
/external/protobuf/src/google/protobuf/util/
Dfield_mask_util_test.cc457 TEST_MERGE_ONE_FIELD(optional_nested_message) in TEST()
604 TEST_TRIM_ONE_FIELD(optional_nested_message) in TEST()
809 EXPECT_EQ(trimed_msg.optional_nested_message().bb(), 123); in TEST()

123