Home
last modified time | relevance | path

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

/third_party/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc2117 TEST_F(ReservedDescriptorTest, IsReservedNumber) { in TEST_F() argument
2118 EXPECT_FALSE(foo_->IsReservedNumber(1)); in TEST_F()
2119 EXPECT_TRUE(foo_->IsReservedNumber(2)); in TEST_F()
2120 EXPECT_FALSE(foo_->IsReservedNumber(3)); in TEST_F()
2121 EXPECT_FALSE(foo_->IsReservedNumber(8)); in TEST_F()
2122 EXPECT_TRUE(foo_->IsReservedNumber(9)); in TEST_F()
2123 EXPECT_TRUE(foo_->IsReservedNumber(10)); in TEST_F()
2124 EXPECT_TRUE(foo_->IsReservedNumber(11)); in TEST_F()
2125 EXPECT_FALSE(foo_->IsReservedNumber(12)); in TEST_F()
2126 EXPECT_FALSE(foo_->IsReservedNumber(13)); in TEST_F()
[all …]
Ddescriptor.h470 bool IsReservedNumber(int number) const;
1078 bool IsReservedNumber(int number) const;
2124 inline bool Descriptor::IsReservedNumber(int number) const { in IsReservedNumber() function
2143 inline bool EnumDescriptor::IsReservedNumber(int number) const { in IsReservedNumber() function
Dtext_format.cc457 } else if (descriptor->IsReservedNumber(field_number)) { in ConsumeField()