chromium/net/third_party/quiche/src/quiche/quic/core/quic_error_codes.cc

// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "quiche/quic/core/quic_error_codes.h"

#include <cstdint>
#include <cstring>
#include <ostream>
#include <string>

#include "absl/strings/str_cat.h"
#include "openssl/ssl.h"
#include "quiche/quic/platform/api/quic_logging.h"

namespace quic {

#define RETURN_STRING_LITERAL

const char* QuicRstStreamErrorCodeToString(QuicRstStreamErrorCode error) {}

const char* QuicErrorCodeToString(QuicErrorCode error) {}

std::string QuicIetfTransportErrorCodeString(QuicIetfTransportErrorCodes c) {}

std::ostream& operator<<(std::ostream& os,
                         const QuicIetfTransportErrorCodes& c) {}

QuicErrorCodeToIetfMapping QuicErrorCodeToTransportErrorCode(
    QuicErrorCode error) {}

QuicErrorCode TlsAlertToQuicErrorCode(uint8_t desc) {}

// Convert a QuicRstStreamErrorCode to an application error code to be used in
// an IETF QUIC RESET_STREAM frame
uint64_t RstStreamErrorCodeToIetfResetStreamErrorCode(
    QuicRstStreamErrorCode rst_stream_error_code) {}

// Convert the application error code of an IETF QUIC RESET_STREAM frame
// to QuicRstStreamErrorCode.
QuicRstStreamErrorCode IetfResetStreamErrorCodeToRstStreamErrorCode(
    uint64_t ietf_error_code) {}

// static
QuicResetStreamError QuicResetStreamError::FromInternal(
    QuicRstStreamErrorCode code) {}

// static
QuicResetStreamError QuicResetStreamError::FromIetf(uint64_t code) {}

// static
QuicResetStreamError QuicResetStreamError::FromIetf(QuicHttp3ErrorCode code) {}

// static
QuicResetStreamError QuicResetStreamError::FromIetf(
    QuicHttpQpackErrorCode code) {}

#undef RETURN_STRING_LITERAL  // undef for jumbo builds

}  // namespace quic