Home
last modified time | relevance | path

Searched refs:oneof_message (Results 1 – 1 of 1) sorted by relevance

/external/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc671 DescriptorProto* oneof_message = AddMessage(&baz_file, "TestOneof"); in SetUp() local
672 oneof_message->add_oneof_decl()->set_name("foo"); in SetUp()
673 oneof_message->add_oneof_decl()->set_name("bar"); in SetUp()
675 AddField(oneof_message, "a", 1, in SetUp()
678 AddField(oneof_message, "b", 2, in SetUp()
681 oneof_message->mutable_field(1)->set_oneof_index(0); in SetUp()
682 AddField(oneof_message, "c", 3, in SetUp()
685 oneof_message->mutable_field(2)->set_oneof_index(0); in SetUp()
686 oneof_message->mutable_field(2)->set_type_name("TestOneof"); in SetUp()
688 AddField(oneof_message, "d", 4, in SetUp()
[all …]