OLD | NEW |
(Empty) | |
| 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/quic/core/quic_error_codes.h" |
| 6 |
| 7 #include "base/strings/string_piece.h" |
| 8 #include "net/quic/core/quic_flags.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 |
| 12 using base::StringPiece; |
| 13 using std::string; |
| 14 |
| 15 namespace net { |
| 16 namespace test { |
| 17 namespace { |
| 18 |
| 19 TEST(QuicUtilsTest, QuicRstStreamErrorCodeToString) { |
| 20 EXPECT_STREQ("QUIC_BAD_APPLICATION_PAYLOAD", |
| 21 QuicRstStreamErrorCodeToString(QUIC_BAD_APPLICATION_PAYLOAD)); |
| 22 } |
| 23 |
| 24 TEST(QuicUtilsTest, QuicErrorCodeToString) { |
| 25 EXPECT_STREQ("QUIC_NO_ERROR", QuicErrorCodeToString(QUIC_NO_ERROR)); |
| 26 } |
| 27 |
| 28 } // namespace |
| 29 } // namespace test |
| 30 } // namespace net |
OLD | NEW |