Convert CHECK macro to ABSL_CHECK.

Chrome can't use Absl's CHECK because of collisions with its own version.

PiperOrigin-RevId: 561740965
This commit is contained in:
MediaPipe Team
2023-08-31 13:20:29 -07:00
committed by Copybara-Service
parent 30802b80cd
commit 7c2d654d67
262 changed files with 1881 additions and 1474 deletions
+3 -2
View File
@@ -47,6 +47,7 @@
#include <cmath>
#include <string>
#include "absl/log/absl_check.h"
#include "mediapipe/framework/deps/safe_int.h"
#include "mediapipe/framework/port/integral_types.h"
#include "mediapipe/framework/port/logging.h"
@@ -270,14 +271,14 @@ std::ostream& operator<<(std::ostream& os, TimestampDiff arg);
inline Timestamp::Timestamp() : timestamp_(kint64min) {}
inline Timestamp::Timestamp(int64 timestamp) : timestamp_(timestamp) {
CHECK(!IsSpecialValue())
ABSL_CHECK(!IsSpecialValue())
<< "Cannot directly create a Timestamp with a special value: "
<< CreateNoErrorChecking(timestamp);
}
inline Timestamp::Timestamp(TimestampBaseType timestamp)
: timestamp_(timestamp) {
CHECK(!IsSpecialValue())
ABSL_CHECK(!IsSpecialValue())
<< "Cannot directly create a Timestamp with a special value: "
<< CreateNoErrorChecking(timestamp.value());
}