Replace the deprecated crypto::tink::util::error::INTERNAL usages with its absl version absl::StatusCode::kInternal in third_party/tink/cc.
This CL is a part of Tink migration to using absl::Status{,Or} and absl::StatusCode.
PiperOrigin-RevId: 406805638
diff --git a/cc/internal/fips_utils_test.cc b/cc/internal/fips_utils_test.cc
index a59a8e9..e16f635 100644
--- a/cc/internal/fips_utils_test.cc
+++ b/cc/internal/fips_utils_test.cc
@@ -17,6 +17,7 @@
#include "gmock/gmock.h"
#include "gtest/gtest.h"
+#include "absl/status/status.h"
#include "openssl/crypto.h"
#include "tink/util/status.h"
#include "tink/util/test_matchers.h"
@@ -59,7 +60,7 @@
}
EXPECT_THAT(internal::CheckFipsCompatibility<FipsIncompatible>(),
- StatusIs(util::error::INTERNAL));
+ StatusIs(absl::StatusCode::kInternal));
EXPECT_THAT(
internal::CheckFipsCompatibility<FipsCompatibleWithBoringCrypto>(),
IsOk());
@@ -73,13 +74,13 @@
// In FIPS only mode compatibility checks should disallow algorithms
// with the FipsCompatibility::kNone flag.
EXPECT_THAT(internal::CheckFipsCompatibility<FipsIncompatible>(),
- StatusIs(util::error::INTERNAL));
+ StatusIs(absl::StatusCode::kInternal));
// FIPS validated implementations are not allowed if BoringCrypto is not
// available.
EXPECT_THAT(
internal::CheckFipsCompatibility<FipsCompatibleWithBoringCrypto>(),
- StatusIs(util::error::INTERNAL));
+ StatusIs(absl::StatusCode::kInternal));
}
} // namespace