Home
last modified time | relevance | path

Searched refs:GetExtension (Results 1 – 25 of 31) sorted by relevance

12

/external/protobuf/src/google/protobuf/
Dtest_util_lite.cc987 …EXPECT_TRUE(message.GetExtension(unittest::optionalgroup_extension_lite ).has_a()); in ExpectAllExtensionsSet()
988 …EXPECT_TRUE(message.GetExtension(unittest::optional_nested_message_extension_lite ).has_bb()… in ExpectAllExtensionsSet()
989 …EXPECT_TRUE(message.GetExtension(unittest::optional_foreign_message_extension_lite ).has_c()); in ExpectAllExtensionsSet()
990 …EXPECT_TRUE(message.GetExtension(unittest::optional_import_message_extension_lite ).has_d()); in ExpectAllExtensionsSet()
991 …EXPECT_TRUE(message.GetExtension(unittest::optional_public_import_message_extension_lite).has_e()); in ExpectAllExtensionsSet()
992 …EXPECT_TRUE(message.GetExtension(unittest::optional_lazy_message_extension_lite ).has_bb()… in ExpectAllExtensionsSet()
999 EXPECT_EQ(101 , message.GetExtension(unittest::optional_int32_extension_lite )); in ExpectAllExtensionsSet()
1000 EXPECT_EQ(102 , message.GetExtension(unittest::optional_int64_extension_lite )); in ExpectAllExtensionsSet()
1001 EXPECT_EQ(103 , message.GetExtension(unittest::optional_uint32_extension_lite )); in ExpectAllExtensionsSet()
1002 EXPECT_EQ(104 , message.GetExtension(unittest::optional_uint64_extension_lite )); in ExpectAllExtensionsSet()
[all …]
Dtest_util.cc1186 EXPECT_TRUE(message.GetExtension(unittest::optionalgroup_extension ).has_a()); in ExpectAllExtensionsSet()
1187 EXPECT_TRUE(message.GetExtension(unittest::optional_nested_message_extension ).has_bb()); in ExpectAllExtensionsSet()
1188 EXPECT_TRUE(message.GetExtension(unittest::optional_foreign_message_extension ).has_c()); in ExpectAllExtensionsSet()
1189 EXPECT_TRUE(message.GetExtension(unittest::optional_import_message_extension ).has_d()); in ExpectAllExtensionsSet()
1190 EXPECT_TRUE(message.GetExtension(unittest::optional_public_import_message_extension).has_e()); in ExpectAllExtensionsSet()
1191 EXPECT_TRUE(message.GetExtension(unittest::optional_lazy_message_extension ).has_bb()); in ExpectAllExtensionsSet()
1200 EXPECT_EQ(101 , message.GetExtension(unittest::optional_int32_extension )); in ExpectAllExtensionsSet()
1201 EXPECT_EQ(102 , message.GetExtension(unittest::optional_int64_extension )); in ExpectAllExtensionsSet()
1202 EXPECT_EQ(103 , message.GetExtension(unittest::optional_uint32_extension )); in ExpectAllExtensionsSet()
1203 EXPECT_EQ(104 , message.GetExtension(unittest::optional_uint64_extension )); in ExpectAllExtensionsSet()
[all …]
Dreflection_ops_unittest.cc131 message.GetExtension(unittest::optional_int32_extension)); in TEST()
136 message.GetExtension(unittest::optional_string_extension)); in TEST()
141 message.GetExtension(unittest::repeated_int32_extension, 1)); in TEST()
142 int32 i = message.GetExtension(unittest::repeated_int32_extension, 0); in TEST()
234 &message.GetExtension(unittest::optionalgroup_extension)); in TEST()
236 &message.GetExtension(unittest::optional_nested_message_extension)); in TEST()
238 &message.GetExtension( in TEST()
241 &message.GetExtension(unittest::optional_import_message_extension)); in TEST()
318 message.GetExtension(unittest::optional_nested_message_extension) in TEST()
321 message.GetExtension(unittest::repeated_nested_message_extension, 0) in TEST()
[all …]
Ddescriptor_unittest.cc2715 file->options().GetExtension(protobuf_unittest::file_opt1)); in TEST()
2717 message->options().GetExtension(protobuf_unittest::message_opt1)); in TEST()
2719 field->options().GetExtension(protobuf_unittest::field_opt1)); in TEST()
2721 field->options().GetExtension(protobuf_unittest::field_opt2)); in TEST()
2723 enm->options().GetExtension(protobuf_unittest::enum_opt1)); in TEST()
2725 enm->value(1)->options().GetExtension( in TEST()
2728 service->options().GetExtension(protobuf_unittest::service_opt1)); in TEST()
2730 method->options().GetExtension(protobuf_unittest::method_opt1)); in TEST()
2742 EXPECT_EQ(false , options->GetExtension(protobuf_unittest::bool_opt)); in TEST()
2743 EXPECT_EQ(kint32min, options->GetExtension(protobuf_unittest::int32_opt)); in TEST()
[all …]
Dextension_set_unittest.cc73 &message.GetExtension(unittest::optionalgroup_extension)); in TEST()
75 &message.GetExtension(unittest::optional_nested_message_extension)); in TEST()
77 &message.GetExtension( in TEST()
80 &message.GetExtension(unittest::optional_import_message_extension)); in TEST()
109 &message.GetExtension(unittest::optionalgroup_extension)); in TEST()
111 &message.GetExtension(unittest::optional_nested_message_extension)); in TEST()
113 &message.GetExtension( in TEST()
116 &message.GetExtension(unittest::optional_import_message_extension)); in TEST()
131 message.GetExtension(unittest::optional_int64_extension); in TEST()
136 EXPECT_EQ(0, message.GetExtension(unittest::optional_int64_extension)); in TEST()
[all …]
Dunknown_field_set_unittest.cc464 message.GetExtension(optional_nested_enum_extension)); in TEST_F()
467 message.GetExtension(repeated_nested_enum_extension, 0)); in TEST_F()
469 message.GetExtension(repeated_nested_enum_extension, 1)); in TEST_F()
Dwire_format_unittest.cc548 EXPECT_EQ(123, message_set.GetExtension( in TEST()
550 EXPECT_EQ("foo", message_set.GetExtension( in TEST()
592 EXPECT_EQ(123, message_set.GetExtension( in TEST()
603 EXPECT_EQ(123, message_set.GetExtension( in TEST()
Dmessage_unittest.cc385 parsing_merge.GetExtension(unittest::TestParsingMerge::optional_ext)); in TEST()
Drepeated_field_reflection_unittest.cc188 extended_message.GetExtension(unittest::repeated_int64_extension, i)); in TEST()
545 extended_message.GetExtension(unittest::repeated_int64_extension, i)); in TEST()
Dtext_format_unittest.cc1469 EXPECT_EQ(23, proto.message_set().GetExtension( in TEST_F()
1471 EXPECT_EQ("foo", proto.message_set().GetExtension( in TEST_F()
Dextension_set.h1141 inline typename _proto_TypeTraits::Singular::ConstType GetExtension( \
1192 inline typename _proto_TypeTraits::Repeated::ConstType GetExtension( \
Dlite_unittest.cc208 ExpectMessageMerged(parsing_merge.GetExtension( in main()
/external/golang-protobuf/proto/
Dextensions_test.go78 _, err := proto.GetExtension(msg, pb.E_Ext_More)
136 if b, err := proto.GetExtension(msg, &proto.ExtensionDesc{Field: extdesc1.Field}); err != nil {
150 if b, err := proto.GetExtension(msg, &proto.ExtensionDesc{Field: extdesc2.Field}); err != nil {
166 if b, err := proto.GetExtension(msg, &proto.ExtensionDesc{Field: extdesc3.Field}); err != nil {
227 ext1, err := proto.GetExtension(m, pb.E_Ext_More)
231 ext2, err := proto.GetExtension(m, pb.E_Ext_More)
315 val, err := proto.GetExtension(msg, test.ext)
398 if got, err := proto.GetExtension(nil, pb.E_Ext_More); err == nil {
452 e, err := proto.GetExtension(msg, pb.E_Ext_More)
463 if _, err = proto.GetExtension(msg, pb.E_Ext_More); err != proto.ErrMissingExtension {
[all …]
Dclone_test.go96 x1, err := proto.GetExtension(m, pb.E_Ext_More)
100 x2, err := proto.GetExtension(m, pb.E_Ext_Text)
104 x3, err := proto.GetExtension(m, pb.E_Greeting)
Dextensions.go319 func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) { func
454 extensions[i], err = GetExtension(epb, e)
Dtext.go712 pb, err := GetExtension(ep, desc)
Dtext_parser.go554 old, err := GetExtension(ep, desc)
/external/golang-protobuf/protoc-gen-go/testdata/
Dextension_test.go68 vol_out, err := proto.GetExtension(bm_new, user.E_LoudMessage_Volume)
106 um_out, err := proto.GetExtension(bm_new, user.E_LoginMessage_UserMessage)
143 width_out, err := proto.GetExtension(bm_new, user.E_Width)
187 osp_out, err := proto.GetExtension(osm, user.E_OldStyleParcel_MessageSetExtension)
/external/nos/host/generic/libnos/generator/
Dmain.cpp171 vars["app_id"] = "APP_ID_" + service.options().GetExtension(app_id); in GenerateClientHeader()
226 const uint32_t max_request_size = service.options().GetExtension(request_buffer_size); in GenerateClientSource()
227 const uint32_t max_response_size = service.options().GetExtension(response_buffer_size); in GenerateClientSource()
/external/syzkaller/vendor/github.com/golang/protobuf/proto/
Dextensions.go303 func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) { func
438 extensions[i], err = GetExtension(epb, e)
Dtext.go712 pb, err := GetExtension(ep, desc)
Dtext_parser.go554 old, err := GetExtension(ep, desc)
/external/flatbuffers/src/
Dflatc.cpp344 if (flatbuffers::GetExtension(conform_to_schema) == in Compile()
364 auto ext = flatbuffers::GetExtension(filename); in Compile()
Dutil.cpp131 std::string GetExtension(const std::string &filepath) { in GetExtension() function
/external/flatbuffers/include/flatbuffers/
Dutil.h441 std::string GetExtension(const std::string &filepath);

12