|
|
@ -1572,7 +1572,7 @@ TEST(MESSAGE_TEST_NAME, TestEnumParsers) { |
|
|
|
|
|
|
|
|
|
|
|
constexpr int kInvalidValue = 0x900913; |
|
|
|
constexpr int kInvalidValue = 0x900913; |
|
|
|
auto* ref = obj.GetReflection(); |
|
|
|
auto* ref = obj.GetReflection(); |
|
|
|
PROTOBUF_UNUSED auto* descriptor = obj.descriptor(); |
|
|
|
[[maybe_unused]] auto* descriptor = obj.descriptor(); |
|
|
|
for (bool use_packed : {false, true}) { |
|
|
|
for (bool use_packed : {false, true}) { |
|
|
|
SCOPED_TRACE(use_packed); |
|
|
|
SCOPED_TRACE(use_packed); |
|
|
|
for (bool use_tail_field : {false, true}) { |
|
|
|
for (bool use_tail_field : {false, true}) { |
|
|
@ -1669,7 +1669,7 @@ TEST(MESSAGE_TEST_NAME, TestEnumParserForUnknownEnumValue) { |
|
|
|
// For unknown enum values, for consistency we must include the |
|
|
|
// For unknown enum values, for consistency we must include the |
|
|
|
// int32_t enum value in the unknown field set, which might not be exactly the |
|
|
|
// int32_t enum value in the unknown field set, which might not be exactly the |
|
|
|
// same as the input. |
|
|
|
// same as the input. |
|
|
|
PROTOBUF_UNUSED auto* descriptor = non_dynamic.descriptor(); |
|
|
|
[[maybe_unused]] auto* descriptor = non_dynamic.descriptor(); |
|
|
|
|
|
|
|
|
|
|
|
const std::vector<const FieldDescriptor*> fields = |
|
|
|
const std::vector<const FieldDescriptor*> fields = |
|
|
|
GetFields<UNITTEST::EnumParseTester>(); |
|
|
|
GetFields<UNITTEST::EnumParseTester>(); |
|
|
@ -1722,7 +1722,7 @@ TEST(MESSAGE_TEST_NAME, TestBoolParsers) { |
|
|
|
GetFields<UNITTEST::BoolParseTester>(); |
|
|
|
GetFields<UNITTEST::BoolParseTester>(); |
|
|
|
|
|
|
|
|
|
|
|
auto* ref = obj.GetReflection(); |
|
|
|
auto* ref = obj.GetReflection(); |
|
|
|
PROTOBUF_UNUSED auto* descriptor = obj.descriptor(); |
|
|
|
[[maybe_unused]] auto* descriptor = obj.descriptor(); |
|
|
|
for (bool use_tail_field : {false, true}) { |
|
|
|
for (bool use_tail_field : {false, true}) { |
|
|
|
SCOPED_TRACE(use_tail_field); |
|
|
|
SCOPED_TRACE(use_tail_field); |
|
|
|
for (int non_canonical_bytes = 0; non_canonical_bytes < 10; |
|
|
|
for (int non_canonical_bytes = 0; non_canonical_bytes < 10; |
|
|
@ -1786,7 +1786,7 @@ TEST(MESSAGE_TEST_NAME, TestInt32Parsers) { |
|
|
|
GetFields<UNITTEST::Int32ParseTester>(); |
|
|
|
GetFields<UNITTEST::Int32ParseTester>(); |
|
|
|
|
|
|
|
|
|
|
|
auto* ref = obj.GetReflection(); |
|
|
|
auto* ref = obj.GetReflection(); |
|
|
|
PROTOBUF_UNUSED auto* descriptor = obj.descriptor(); |
|
|
|
[[maybe_unused]] auto* descriptor = obj.descriptor(); |
|
|
|
for (bool use_tail_field : {false, true}) { |
|
|
|
for (bool use_tail_field : {false, true}) { |
|
|
|
SCOPED_TRACE(use_tail_field); |
|
|
|
SCOPED_TRACE(use_tail_field); |
|
|
|
for (int non_canonical_bytes = 0; non_canonical_bytes < 10; |
|
|
|
for (int non_canonical_bytes = 0; non_canonical_bytes < 10; |
|
|
@ -1851,7 +1851,7 @@ TEST(MESSAGE_TEST_NAME, TestInt64Parsers) { |
|
|
|
GetFields<UNITTEST::Int64ParseTester>(); |
|
|
|
GetFields<UNITTEST::Int64ParseTester>(); |
|
|
|
|
|
|
|
|
|
|
|
auto* ref = obj.GetReflection(); |
|
|
|
auto* ref = obj.GetReflection(); |
|
|
|
PROTOBUF_UNUSED auto* descriptor = obj.descriptor(); |
|
|
|
[[maybe_unused]] auto* descriptor = obj.descriptor(); |
|
|
|
for (bool use_tail_field : {false, true}) { |
|
|
|
for (bool use_tail_field : {false, true}) { |
|
|
|
SCOPED_TRACE(use_tail_field); |
|
|
|
SCOPED_TRACE(use_tail_field); |
|
|
|
for (int non_canonical_bytes = 0; non_canonical_bytes < 10; |
|
|
|
for (int non_canonical_bytes = 0; non_canonical_bytes < 10; |
|
|
@ -1955,7 +1955,7 @@ TEST(MESSAGE_TEST_NAME, TestRepeatedStringParsers) { |
|
|
|
"abcdefghijklmnopqrstuvwxyz" |
|
|
|
"abcdefghijklmnopqrstuvwxyz" |
|
|
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"; |
|
|
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"; |
|
|
|
|
|
|
|
|
|
|
|
PROTOBUF_UNUSED const auto* const descriptor = |
|
|
|
[[maybe_unused]] const auto* const descriptor = |
|
|
|
UNITTEST::StringParseTester::descriptor(); |
|
|
|
UNITTEST::StringParseTester::descriptor(); |
|
|
|
|
|
|
|
|
|
|
|
const std::vector<const FieldDescriptor*> fields = |
|
|
|
const std::vector<const FieldDescriptor*> fields = |
|
|
|