message: Replace the deprecated crypto::tink::util::Status::CanonicalCode() method with its absl-compatible version crypto::tink::util::Status::code().
diff: @@ -119,9 +119,11 @@ IsOkAndHolds(InnerMatcher&& inner_matcher) {
  }
  // Matches a Status with the specified 'code' as error_code().
  +// TODO(lizatretyakova): remove the static_cast and fix the comment above to
  +// use code() after all StatusIs usages are migrated to use absl::StatusCode.
  MATCHER_P(StatusIs, code,
  "is a Status with a " + util::ErrorCodeString(code) + " code") {
  - if (arg.CanonicalCode() == code) {
  + if (arg.code() == static_cast<absl::StatusCode>(code)) {
  return true;
  }
  *result_listener << ::testing::PrintToString(arg);
  @@ -130,8 +132,10 @@ MATCHER_P(StatusIs, code,
  // Matches a Status whose error_code() equals 'code', and whose
  // error_message() matches 'message_macher'.
  +// TODO(lizatretyakova): remove the static_cast and fix the comment above to
  +// use code() after all StatusIs usages are migrated to use absl::StatusCode.
  MATCHER_P2(StatusIs, code, message_matcher, "") {
  - return (arg.CanonicalCode() == code) &&
  + return (arg.code() == static_cast<absl::StatusCode>(code)) &&
  testing::Matches(message_matcher)(arg.error_message());
  }
  