blob: f9928bd2b39b9beac634a6fcbca1ceef2e4c4ec6 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// Copyright (c) 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "net/third_party/quiche/src/quic/core/quic_error_codes.h"
6
7#include "net/third_party/quiche/src/quic/platform/api/quic_test.h"
8
9namespace quic {
10namespace test {
11namespace {
12
13class QuicErrorCodesTest : public QuicTest {};
14
15TEST_F(QuicErrorCodesTest, QuicRstStreamErrorCodeToString) {
16 EXPECT_STREQ("QUIC_BAD_APPLICATION_PAYLOAD",
17 QuicRstStreamErrorCodeToString(QUIC_BAD_APPLICATION_PAYLOAD));
18}
19
20TEST_F(QuicErrorCodesTest, QuicErrorCodeToString) {
21 EXPECT_STREQ("QUIC_NO_ERROR", QuicErrorCodeToString(QUIC_NO_ERROR));
22}
23
24} // namespace
25} // namespace test
26} // namespace quic