38
38
#include " google/protobuf/text_format.h"
39
39
#include " google/protobuf/util/json_util.h"
40
40
#include " google/protobuf/util/type_resolver_util.h"
41
- #include " google/protobuf/stubs/logging .h"
42
- #include " google/protobuf/stubs/logging .h"
41
+ #include " absl/log/absl_check .h"
42
+ #include " absl/log/absl_log .h"
43
43
#include " absl/status/status.h"
44
44
#include " absl/strings/str_cat.h"
45
45
#include " json/json.h"
@@ -241,7 +241,7 @@ const FieldDescriptor* GetFieldForType(FieldDescriptor::Type type,
241
241
if (packed == Packed::kFalse ) {
242
242
packed_string = " Unpacked " ;
243
243
}
244
- GOOGLE_ABSL_LOG (FATAL) << " Couldn't find field with type: " << repeated_string
244
+ ABSL_LOG (FATAL) << " Couldn't find field with type: " << repeated_string
245
245
<< packed_string << FieldDescriptor::TypeName (type) << " for "
246
246
<< proto_string;
247
247
return nullptr ;
@@ -265,7 +265,7 @@ const FieldDescriptor* GetFieldForMapType(FieldDescriptor::Type key_type,
265
265
}
266
266
267
267
const absl::string_view proto_string = is_proto3 ? " Proto3" : " Proto2" ;
268
- GOOGLE_ABSL_LOG (FATAL) << " Couldn't find map field with type: "
268
+ ABSL_LOG (FATAL) << " Couldn't find map field with type: "
269
269
<< FieldDescriptor::TypeName (key_type) << " and "
270
270
<< FieldDescriptor::TypeName (key_type) << " for "
271
271
<< proto_string;
@@ -285,7 +285,7 @@ const FieldDescriptor* GetFieldForOneofType(FieldDescriptor::Type type,
285
285
}
286
286
287
287
const absl::string_view proto_string = is_proto3 ? " Proto3" : " Proto2" ;
288
- GOOGLE_ABSL_LOG (FATAL) << " Couldn't find oneof field with type: "
288
+ ABSL_LOG (FATAL) << " Couldn't find oneof field with type: "
289
289
<< FieldDescriptor::TypeName (type) << " for " << proto_string;
290
290
return nullptr ;
291
291
}
@@ -353,7 +353,7 @@ bool BinaryAndJsonConformanceSuite::ParseJsonResponse(
353
353
}
354
354
355
355
if (!test_message->ParseFromString (binary_protobuf)) {
356
- GOOGLE_ABSL_LOG (FATAL) << " INTERNAL ERROR: internal JSON->protobuf transcode "
356
+ ABSL_LOG (FATAL) << " INTERNAL ERROR: internal JSON->protobuf transcode "
357
357
<< " yielded unparseable proto." ;
358
358
return false ;
359
359
}
@@ -407,7 +407,7 @@ bool BinaryAndJsonConformanceSuite::ParseResponse(
407
407
}
408
408
409
409
default :
410
- GOOGLE_ABSL_LOG (FATAL) << test_name
410
+ ABSL_LOG (FATAL) << test_name
411
411
<< " : unknown payload type: " << response.result_case ();
412
412
}
413
413
@@ -652,7 +652,7 @@ void BinaryAndJsonConformanceSuite::ExpectSerializeFailureForJson(
652
652
const string& test_name, ConformanceLevel level,
653
653
const string& text_format) {
654
654
TestAllTypesProto3 payload_message;
655
- GOOGLE_ABSL_CHECK (TextFormat::ParseFromString (text_format, &payload_message))
655
+ ABSL_CHECK (TextFormat::ParseFromString (text_format, &payload_message))
656
656
<< " Failed to parse: " << text_format;
657
657
658
658
TestAllTypesProto3 prototype;
@@ -1414,7 +1414,7 @@ void BinaryAndJsonConformanceSuite::RunSuiteImpl() {
1414
1414
req.set_protobuf_payload (" " );
1415
1415
req.set_requested_output_format (conformance::WireFormat::PROTOBUF);
1416
1416
RunTest (" FindFailures" , req, &res);
1417
- GOOGLE_ABSL_CHECK (failure_set.MergeFromString (res.protobuf_payload ()));
1417
+ ABSL_CHECK (failure_set.MergeFromString (res.protobuf_payload ()));
1418
1418
for (const string& failure : failure_set.failure ()) {
1419
1419
AddExpectedFailedTest (failure);
1420
1420
}
0 commit comments