diff options
author | lizatretyakova <lizatretyakova@google.com> | 2021-09-28 02:13:17 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2021-09-28 02:13:50 -0700 |
commit | 5b83aed8c5a20ab0b39e397df709d2c9a31978bc (patch) | |
tree | f96ac179e8c8067bf99ec49be9a2b0bc1856b5dd /cc/experimental | |
parent | e8996eca4550433a1911b245eb75739a2805b5a6 (diff) | |
download | tink-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.cc | 4 |
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(); |