Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc2101 TEST_F(ReservedDescriptorTest, IsReservedNumber) { in TEST_F() argument
2102 EXPECT_FALSE(foo_->IsReservedNumber(1)); in TEST_F()
2103 EXPECT_TRUE(foo_->IsReservedNumber(2)); in TEST_F()
2104 EXPECT_FALSE(foo_->IsReservedNumber(3)); in TEST_F()
2105 EXPECT_FALSE(foo_->IsReservedNumber(8)); in TEST_F()
2106 EXPECT_TRUE(foo_->IsReservedNumber(9)); in TEST_F()
2107 EXPECT_TRUE(foo_->IsReservedNumber(10)); in TEST_F()
2108 EXPECT_TRUE(foo_->IsReservedNumber(11)); in TEST_F()
2109 EXPECT_FALSE(foo_->IsReservedNumber(12)); in TEST_F()
2110 EXPECT_FALSE(foo_->IsReservedNumber(13)); in TEST_F()
[all …]
Ddescriptor.h412 bool IsReservedNumber(int number) const;
987 bool IsReservedNumber(int number) const;
2014 inline bool Descriptor::IsReservedNumber(int number) const { in IsReservedNumber() function
2033 inline bool EnumDescriptor::IsReservedNumber(int number) const { in IsReservedNumber() function
Dtext_format.cc471 } else if (descriptor->IsReservedNumber(field_number)) { in ConsumeField()