Move ExtensionNumber from protos to hpb

PiperOrigin-RevId: 666453855
pull/17922/head
Hong Shin 3 months ago committed by Copybara-Service
parent caa8f9dbf8
commit a33a81b163
  1. 2
      hpb_generator/tests/test_generated.cc
  2. 1
      protos/protos.h

@ -1234,7 +1234,7 @@ TEST(CppGeneratedCode, FieldNumberConstants) {
}
TEST(CppGeneratedCode, ExtensionFieldNumberConstant) {
EXPECT_EQ(12003, ::protos::ExtensionNumber(ThemeExtension::theme_extension));
EXPECT_EQ(12003, ::hpb::ExtensionNumber(ThemeExtension::theme_extension));
}
TEST(CppGeneratedCode, ClearConstMessageShouldFailForConstChild) {

@ -24,7 +24,6 @@ typename T::CProxy CreateMessage(const upb_Message* msg, upb_Arena* arena) {
using hpb::Parse;
using hpb::Serialize;
using hpb::ExtensionNumber;
using hpb::GetExtension;
using hpb::HasExtension;
using hpb::SetExtension;

Loading…
Cancel
Save