QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 1 | // 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 | |
| 9 | namespace quic { |
| 10 | namespace test { |
| 11 | namespace { |
| 12 | |
| 13 | class QuicErrorCodesTest : public QuicTest {}; |
| 14 | |
| 15 | TEST_F(QuicErrorCodesTest, QuicRstStreamErrorCodeToString) { |
| 16 | EXPECT_STREQ("QUIC_BAD_APPLICATION_PAYLOAD", |
| 17 | QuicRstStreamErrorCodeToString(QUIC_BAD_APPLICATION_PAYLOAD)); |
| 18 | } |
| 19 | |
| 20 | TEST_F(QuicErrorCodesTest, QuicErrorCodeToString) { |
| 21 | EXPECT_STREQ("QUIC_NO_ERROR", QuicErrorCodeToString(QUIC_NO_ERROR)); |
| 22 | } |
| 23 | |
| 24 | } // namespace |
| 25 | } // namespace test |
| 26 | } // namespace quic |