aboutsummaryrefslogtreecommitdiff
path: root/cc/experimental
diff options
context:
space:
mode:
authorlizatretyakova <lizatretyakova@google.com>2021-09-28 02:13:17 -0700
committerCopybara-Service <copybara-worker@google.com>2021-09-28 02:13:50 -0700
commit5b83aed8c5a20ab0b39e397df709d2c9a31978bc (patch)
treef96ac179e8c8067bf99ec49be9a2b0bc1856b5dd /cc/experimental
parente8996eca4550433a1911b245eb75739a2805b5a6 (diff)
downloadtink-5b83aed8c5a20ab0b39e397df709d2c9a31978bc.tar.gz
Replace the third batch of the deprecated crypto::tink::util::Status::error_code() calls with calls to an absl-compatible crypto::tink::util::Status::code().
PiperOrigin-RevId: 399387336
Diffstat (limited to 'cc/experimental')
-rw-r--r--cc/experimental/pqcrypto/cecpq2/hybrid/internal/cecpq2_aead_hkdf_hybrid_decrypt_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/experimental/pqcrypto/cecpq2/hybrid/internal/cecpq2_aead_hkdf_hybrid_decrypt_test.cc b/cc/experimental/pqcrypto/cecpq2/hybrid/internal/cecpq2_aead_hkdf_hybrid_decrypt_test.cc
index 20e3a67eb..1908a52f4 100644
--- a/cc/experimental/pqcrypto/cecpq2/hybrid/internal/cecpq2_aead_hkdf_hybrid_decrypt_test.cc
+++ b/cc/experimental/pqcrypto/cecpq2/hybrid/internal/cecpq2_aead_hkdf_hybrid_decrypt_test.cc
@@ -142,8 +142,8 @@ class Cecpq2AeadHkdfHybridDecryptTest : public ::testing::Test {
{ // Short bad ciphertext
auto decrypt_result =
hybrid_decrypt->Decrypt(Random::GetRandomBytes(16), context_info);
- if (decrypt_result.status().error_code() !=
- util::error::INVALID_ARGUMENT ||
+ if (decrypt_result.status().code() !=
+ absl::StatusCode::kInvalidArgument ||
!absl::StrContains(decrypt_result.status().error_message(),
"ciphertext too short")) {
return decrypt_result.status();