Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/
Dpreserve_unknown_enum_test.cc228 const google::protobuf::FieldDescriptor* singular_field = d->FindFieldByName("e"); in TEST() local
232 r->SetEnumValue(&message, singular_field, 42); in TEST()
233 EXPECT_EQ(42, r->GetEnumValue(message, singular_field)); in TEST()
240 singular_field); in TEST()
259 const google::protobuf::FieldDescriptor* singular_field = in TEST() local
264 r->SetEnumValue(&message, singular_field, 4242); in TEST()
265 r->GetEnum(message, singular_field)->number(); in TEST()
Dunknown_field_set_unittest.cc412 const FieldDescriptor* singular_field = in TEST_F() local
416 ASSERT_TRUE(singular_field != NULL); in TEST_F()
424 unknown_fields->AddVarint(singular_field->number(), TestAllTypes::BAR); in TEST_F()
425 unknown_fields->AddVarint(singular_field->number(), 5); // not valid in TEST_F()
444 EXPECT_EQ(singular_field->number(), unknown_fields.field(0).number()); in TEST_F()
474 EXPECT_EQ(singular_field->number(), unknown_fields.field(0).number()); in TEST_F()