Internal change

PiperOrigin-RevId: 487029109
pull/10940/head
Mike Kruskal 2 years ago committed by Copybara-Service
parent 73855fde31
commit 53e4fa3279
  1. 2
      python/google/protobuf/internal/wire_format.py
  2. 2
      python/google/protobuf/text_format.py
  3. 2
      src/google/protobuf/compiler/cpp/bootstrap_unittest.cc
  4. 2
      src/google/protobuf/compiler/cpp/enum_field.cc
  5. 2
      src/google/protobuf/compiler/cpp/field.cc
  6. 4
      src/google/protobuf/compiler/cpp/helpers.cc
  7. 2
      src/google/protobuf/compiler/cpp/map_field.cc
  8. 2
      src/google/protobuf/compiler/cpp/message.cc
  9. 2
      src/google/protobuf/compiler/cpp/move_unittest.cc
  10. 2
      src/google/protobuf/compiler/cpp/parse_function_generator.cc
  11. 2
      src/google/protobuf/compiler/cpp/parse_function_generator.h
  12. 2
      src/google/protobuf/compiler/cpp/primitive_field.cc
  13. 2
      src/google/protobuf/extension_set_unittest.cc
  14. 2
      src/google/protobuf/generated_message_tctable_lite_test.cc
  15. 2
      src/google/protobuf/map_test.cc
  16. 2
      src/google/protobuf/map_test_util.h
  17. 2
      src/google/protobuf/unknown_field_set_unittest.cc
  18. 4
      src/google/protobuf/wire_format_unittest.inc

@ -43,7 +43,7 @@ TAG_TYPE_MASK = (1 << TAG_TYPE_BITS) - 1 # 0x7
# These numbers identify the wire type of a protocol buffer value.
# We use the least-significant TAG_TYPE_BITS bits of the varint-encoded
# tag-and-type to store one of these WIRETYPE_* constants.
# These values must match WireType enum in google/protobuf/wire_format.h.
# These values must match WireType enum in //net/proto2/public/wire_format.h.
WIRETYPE_VARINT = 0
WIRETYPE_FIXED64 = 1
WIRETYPE_LENGTH_DELIMITED = 2

@ -340,7 +340,7 @@ def _BuildMessageFromTypeName(type_name, descriptor_pool):
return message_type()
# These values must match WireType enum in google/protobuf/wire_format.h.
# These values must match WireType enum in //net/proto2/public/wire_format.h.
WIRETYPE_LENGTH_DELIMITED = 2
WIRETYPE_START_GROUP = 3

@ -49,7 +49,6 @@
#include "google/protobuf/testing/file.h"
#include "google/protobuf/compiler/cpp/generator.h"
#include "google/protobuf/compiler/importer.h"
#include "google/protobuf/test_util2.h"
#include "google/protobuf/io/zero_copy_stream_impl.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/testing/googletest.h"
@ -57,6 +56,7 @@
#include "absl/container/flat_hash_map.h"
#include "absl/strings/substitute.h"
#include "google/protobuf/compiler/cpp/helpers.h"
#include "google/protobuf/test_util2.h"
namespace google {
namespace protobuf {

@ -36,10 +36,10 @@
#include <string>
#include "google/protobuf/wire_format.h"
#include "absl/container/flat_hash_map.h"
#include "google/protobuf/compiler/cpp/field.h"
#include "google/protobuf/compiler/cpp/helpers.h"
#include "google/protobuf/wire_format.h"
namespace google {
namespace protobuf {

@ -47,11 +47,11 @@
#include "google/protobuf/compiler/cpp/string_field.h"
#include "google/protobuf/stubs/logging.h"
#include "google/protobuf/stubs/common.h"
#include "google/protobuf/wire_format.h"
#include "google/protobuf/compiler/cpp/enum_field.h"
#include "google/protobuf/compiler/cpp/map_field.h"
#include "google/protobuf/compiler/cpp/message_field.h"
#include "google/protobuf/descriptor.pb.h"
#include "google/protobuf/wire_format.h"
namespace google {
namespace protobuf {

@ -49,8 +49,6 @@
#include "google/protobuf/compiler/scc.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/dynamic_message.h"
#include "google/protobuf/wire_format.h"
#include "google/protobuf/wire_format_lite.h"
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/strings/ascii.h"
@ -65,6 +63,8 @@
#include "google/protobuf/compiler/cpp/options.h"
#include "google/protobuf/descriptor.pb.h"
#include "google/protobuf/io/strtod.h"
#include "google/protobuf/wire_format.h"
#include "google/protobuf/wire_format_lite.h"
// Must be last.

@ -32,11 +32,11 @@
#include <string>
#include "google/protobuf/wire_format.h"
#include "absl/container/flat_hash_map.h"
#include "absl/strings/ascii.h"
#include "absl/strings/str_cat.h"
#include "google/protobuf/compiler/cpp/helpers.h"
#include "google/protobuf/wire_format.h"
namespace google {
namespace protobuf {

@ -49,7 +49,6 @@
#include "google/protobuf/descriptor.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/map_entry_lite.h"
#include "google/protobuf/wire_format.h"
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/strings/ascii.h"
@ -68,6 +67,7 @@
#include "google/protobuf/compiler/cpp/parse_function_generator.h"
#include "google/protobuf/descriptor.pb.h"
#include "google/protobuf/io/printer.h"
#include "google/protobuf/wire_format.h"
// Must be included last.

@ -29,9 +29,9 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "google/protobuf/stubs/common.h"
#include "google/protobuf/test_util.h"
#include "google/protobuf/unittest.pb.h"
#include <gtest/gtest.h>
#include "google/protobuf/test_util.h"
#if LANG_CXX11
#include <type_traits>

@ -36,12 +36,12 @@
#include <utility>
#include <vector>
#include "google/protobuf/wire_format.h"
#include "absl/container/flat_hash_map.h"
#include "absl/strings/str_cat.h"
#include "google/protobuf/compiler/cpp/helpers.h"
#include "google/protobuf/generated_message_tctable_gen.h"
#include "google/protobuf/generated_message_tctable_impl.h"
#include "google/protobuf/wire_format.h"
namespace google {
namespace protobuf {

@ -36,11 +36,11 @@
#include "google/protobuf/io/printer.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/wire_format_lite.h"
#include "absl/container/flat_hash_map.h"
#include "google/protobuf/compiler/cpp/helpers.h"
#include "google/protobuf/compiler/cpp/options.h"
#include "google/protobuf/generated_message_tctable_gen.h"
#include "google/protobuf/wire_format_lite.h"
namespace google {
namespace protobuf {

@ -37,10 +37,10 @@
#include <string>
#include "google/protobuf/io/printer.h"
#include "google/protobuf/wire_format.h"
#include "absl/container/flat_hash_map.h"
#include "absl/strings/str_cat.h"
#include "google/protobuf/compiler/cpp/helpers.h"
#include "google/protobuf/wire_format.h"
namespace google {
namespace protobuf {

@ -45,7 +45,6 @@
#include "google/protobuf/descriptor.h"
#include "google/protobuf/dynamic_message.h"
#include "google/protobuf/text_format.h"
#include "google/protobuf/wire_format.h"
#include "google/protobuf/testing/googletest.h"
#include <gtest/gtest.h>
#include "absl/base/casts.h"
@ -53,6 +52,7 @@
#include "absl/strings/match.h"
#include "google/protobuf/test_util.h"
#include "google/protobuf/test_util2.h"
#include "google/protobuf/wire_format.h"
// Must be included last.

@ -31,9 +31,9 @@
#include <cstddef>
#include "google/protobuf/generated_message_tctable_impl.h"
#include "google/protobuf/wire_format_lite.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "google/protobuf/wire_format_lite.h"
namespace google {
namespace protobuf {

@ -28,12 +28,12 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "google/protobuf/reflection_tester.h"
#include "google/protobuf/unittest.pb.h"
#include "google/protobuf/unittest_import.pb.h"
#include "absl/container/flat_hash_set.h"
#include "google/protobuf/map_proto2_unittest.pb.h"
#include "google/protobuf/map_unittest.pb.h"
#include "google/protobuf/reflection_tester.h"
#define BRIDGE_UNITTEST ::google::protobuf::bridge_unittest

@ -31,9 +31,9 @@
#ifndef GOOGLE_PROTOBUF_MAP_TEST_UTIL_H__
#define GOOGLE_PROTOBUF_MAP_TEST_UTIL_H__
#include "google/protobuf/reflection_tester.h"
#include "google/protobuf/unittest.pb.h"
#include "google/protobuf/map_unittest.pb.h"
#include "google/protobuf/reflection_tester.h"
#define UNITTEST ::protobuf_unittest
#define BRIDGE_UNITTEST ::google::protobuf::bridge_unittest

@ -48,7 +48,6 @@
#include "google/protobuf/io/zero_copy_stream_impl.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/text_format.h"
#include "google/protobuf/wire_format.h"
#include <gmock/gmock.h>
#include "google/protobuf/testing/googletest.h"
#include <gtest/gtest.h>
@ -59,6 +58,7 @@
#include "absl/time/time.h"
#include "google/protobuf/test_util.h"
#include "google/protobuf/unittest_lite.pb.h"
#include "google/protobuf/wire_format.h"
namespace google {

@ -38,8 +38,6 @@
#include "google/protobuf/io/zero_copy_stream_impl.h"
#include "google/protobuf/io/zero_copy_stream_impl_lite.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/wire_format.h"
#include "google/protobuf/wire_format_lite.h"
#include <gmock/gmock.h>
#include "google/protobuf/testing/googletest.h"
#include <gtest/gtest.h>
@ -49,6 +47,8 @@
#include "absl/strings/match.h"
#include "google/protobuf/dynamic_message.h"
#include "google/protobuf/test_util2.h"
#include "google/protobuf/wire_format.h"
#include "google/protobuf/wire_format_lite.h"
// clang-format off
#include "google/protobuf/port_def.inc"

Loading…
Cancel
Save