Skip to content

Commit

Permalink
Move ExtensionNumber from protos to hpb
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 666453855
  • Loading branch information
honglooker authored and copybara-github committed Aug 22, 2024
1 parent caa8f9d commit a33a81b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion hpb_generator/tests/test_generated.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion protos/protos.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a33a81b

Please sign in to comment.