superficial file rename protos_* -> hpb_*

PiperOrigin-RevId: 650640353
pull/17330/head
Hong Shin 8 months ago committed by Copybara-Service
parent 7f798cd8b9
commit 36dc83f066
  1. 38
      hpb/BUILD
  2. 2
      hpb/extension_lock.cc
  3. 0
      hpb/extension_lock.h
  4. 4
      hpb/extension_lock_test.cc
  5. 4
      hpb/hpb.cc
  6. 0
      hpb/hpb.h
  7. 0
      hpb/internal.h
  8. 2
      hpb/internal_test.cc
  9. 4
      hpb/repeated_field.h
  10. 2
      hpb/repeated_field_iterator.h
  11. 0
      hpb/traits.h
  12. 6
      protos/BUILD
  13. 2
      protos/protos.h
  14. 2
      protos/protos_extension_lock.h
  15. 2
      protos/protos_internal.h
  16. 2
      protos/protos_traits.h

@ -31,7 +31,7 @@ cc_library(
visibility = ["//visibility:public"],
deps = [
":hpb",
":protos_traits",
":traits",
"//upb:base",
"//upb:mem",
"//upb:message",
@ -44,16 +44,16 @@ cc_library(
cc_library(
name = "hpb",
srcs = [
"protos.cc",
"hpb.cc",
],
hdrs = [
"protos.h",
"hpb.h",
],
compatible_with = ["//buildenv/target:non_prod"],
copts = UPB_DEFAULT_CPPOPTS,
visibility = ["//visibility:public"],
deps = [
":protos_extension_lock",
":extension_lock",
"//upb:base",
"//upb:mem",
"//upb:message",
@ -71,9 +71,9 @@ cc_library(
# Internally used type traits.
cc_library(
name = "protos_traits",
name = "traits",
hdrs = [
"protos_traits.h",
"traits.h",
],
compatible_with = ["//buildenv/target:non_prod"],
copts = UPB_DEFAULT_CPPOPTS,
@ -82,8 +82,8 @@ cc_library(
)
cc_library(
name = "protos_internal",
hdrs = ["protos_internal.h"],
name = "internal",
hdrs = ["internal.h"],
compatible_with = ["//buildenv/target:non_prod"],
copts = UPB_DEFAULT_CPPOPTS,
visibility = ["//upb:friends"],
@ -99,10 +99,10 @@ cc_library(
)
cc_library(
name = "protos_extension_lock",
srcs = ["protos_extension_lock.cc"],
name = "extension_lock",
srcs = ["extension_lock.cc"],
hdrs = [
"protos_extension_lock.h",
"extension_lock.h",
],
compatible_with = ["//buildenv/target:non_prod"],
copts = UPB_DEFAULT_CPPOPTS,
@ -118,14 +118,14 @@ cc_library(
cc_library(
name = "generated_protos_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me",
hdrs = [
"protos_internal.h",
"internal.h",
],
compatible_with = ["//buildenv/target:non_prod"],
copts = UPB_DEFAULT_CPPOPTS,
visibility = ["//visibility:public"],
deps = [
":hpb",
":protos_internal",
":internal",
":repeated_field",
"//upb:mem",
"//upb:message",
@ -133,11 +133,11 @@ cc_library(
)
cc_test(
name = "protos_internal_test",
srcs = ["protos_internal_test.cc"],
name = "internal_test",
srcs = ["internal_test.cc"],
copts = UPB_DEFAULT_CPPOPTS,
deps = [
":protos_internal",
":internal",
"//src/google/protobuf/compiler/hpb/tests:test_model_upb_cc_proto",
"//src/google/protobuf/compiler/hpb/tests:test_model_upb_proto",
"//upb:mem",
@ -163,11 +163,11 @@ cc_test(
)
cc_test(
name = "protos_extension_lock_test",
srcs = ["protos_extension_lock_test.cc"],
name = "extension_lock_test",
srcs = ["extension_lock_test.cc"],
deps = [
"//hpb",
"//hpb:protos_extension_lock",
"//hpb:extension_lock",
"//src/google/protobuf/compiler/hpb/tests:test_model_upb_cc_proto",
"//upb:mem",
"@com_google_absl//absl/hash",

@ -5,7 +5,7 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "google/protobuf/hpb/protos_extension_lock.h"
#include "google/protobuf/hpb/extension_lock.h"
#include <atomic>

@ -5,7 +5,7 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "google/protobuf/hpb/protos_extension_lock.h"
#include "google/protobuf/hpb/extension_lock.h"
#include <atomic>
#include <mutex>
@ -17,7 +17,7 @@
#include "absl/hash/hash.h"
#include "absl/log/absl_check.h"
#include "google/protobuf/compiler/hpb/tests/test_model.upb.proto.h"
#include "google/protobuf/hpb/protos.h"
#include "google/protobuf/hpb/hpb.h"
#include "upb/mem/arena.hpp"
#ifndef ASSERT_OK

@ -5,7 +5,7 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "google/protobuf/hpb/protos.h"
#include "google/protobuf/hpb/hpb.h"
#include <atomic>
#include <cstddef>
@ -14,7 +14,7 @@
#include "absl/status/statusor.h"
#include "absl/strings/str_format.h"
#include "absl/strings/string_view.h"
#include "google/protobuf/hpb/protos_extension_lock.h"
#include "google/protobuf/hpb/extension_lock.h"
#include "upb/mem/arena.h"
#include "upb/message/accessors.h"
#include "upb/message/copy.h"

@ -5,7 +5,7 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "google/protobuf/hpb/protos_internal.h"
#include "google/protobuf/hpb/internal.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>

@ -15,9 +15,9 @@
#include <type_traits>
#include "absl/strings/string_view.h"
#include "google/protobuf/hpb/protos.h"
#include "google/protobuf/hpb/protos_traits.h"
#include "google/protobuf/hpb/hpb.h"
#include "google/protobuf/hpb/repeated_field_iterator.h"
#include "google/protobuf/hpb/traits.h"
#include "upb/base/string_view.h"
#include "upb/mem/arena.h"
#include "upb/message/array.h"

@ -14,7 +14,7 @@
#include <type_traits>
#include "absl/strings/string_view.h"
#include "google/protobuf/hpb/protos.h"
#include "google/protobuf/hpb/hpb.h"
#include "upb/base/string_view.h"
#include "upb/mem/arena.h"
#include "upb/message/array.h"

@ -53,7 +53,7 @@
# copts = UPB_DEFAULT_CPPOPTS,
# visibility = ["//visibility:private"],
# deps = [
# "//hpb:protos_traits",
# "//hpb:traits",
# ],
# )
#
@ -63,7 +63,7 @@
# copts = UPB_DEFAULT_CPPOPTS,
# visibility = ["//visibility:public"],
# deps = [
# "//hpb:protos_internal",
# "//hpb:internal",
# ],
# )
#
@ -73,7 +73,7 @@
# copts = UPB_DEFAULT_CPPOPTS,
# visibility = ["//visibility:public"],
# deps = [
# "//hpb:protos_extension_lock",
# "//hpb:extension_lock",
# ],
# )
#

@ -7,5 +7,5 @@
#ifndef UPB_PROTOS_PROTOS_H_
#define UPB_PROTOS_PROTOS_H_
#include "google/protobuf/hpb/protos.h"
#include "google/protobuf/hpb/hpb.h"
#endif

@ -7,5 +7,5 @@
#ifndef UPB_PROTOS_PROTOS_EXTENSION_LOCK_H_
#define UPB_PROTOS_PROTOS_EXTENSION_LOCK_H_
#include "google/protobuf/hpb/protos_extension_lock.h"
#include "google/protobuf/hpb/extension_lock.h"
#endif

@ -7,5 +7,5 @@
#ifndef UPB_PROTOS_PROTOS_INTERNAL_H_
#define UPB_PROTOS_PROTOS_INTERNAL_H_
#include "google/protobuf/hpb/protos_internal.h"
#include "google/protobuf/hpb/internal.h"
#endif

@ -7,5 +7,5 @@
#ifndef UPB_PROTOS_PROTOS_TRAITS_H_
#define UPB_PROTOS_PROTOS_TRAITS_H_
#include "google/protobuf/hpb/protos_traits.h"
#include "google/protobuf/hpb/traits.h"
#endif

Loading…
Cancel
Save