Searched refs:singular_field (Results 1 – 2 of 2) sorted by relevance
/external/protobuf/src/google/protobuf/ |
D | preserve_unknown_enum_test.cc | 228 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()
|
D | unknown_field_set_unittest.cc | 412 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()
|