From a33a81b163610c9faf93f48d01285c4826df432d Mon Sep 17 00:00:00 2001 From: Hong Shin Date: Thu, 22 Aug 2024 12:46:33 -0700 Subject: [PATCH] Move ExtensionNumber from protos to hpb PiperOrigin-RevId: 666453855 --- hpb_generator/tests/test_generated.cc | 2 +- protos/protos.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hpb_generator/tests/test_generated.cc b/hpb_generator/tests/test_generated.cc index aa2957eb15..f7954c78cf 100644 --- a/hpb_generator/tests/test_generated.cc +++ b/hpb_generator/tests/test_generated.cc @@ -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) { diff --git a/protos/protos.h b/protos/protos.h index 69849cacad..617447e9d5 100644 --- a/protos/protos.h +++ b/protos/protos.h @@ -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;