OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/quic/core/quic_error_codes.h" | 5 #include "net/quic/core/quic_error_codes.h" |
6 | 6 |
7 #include "testing/gmock/include/gmock/gmock.h" | 7 #include "net/quic/platform/api/quic_test.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | |
9 | 8 |
10 namespace net { | 9 namespace net { |
11 namespace test { | 10 namespace test { |
12 namespace { | 11 namespace { |
13 | 12 |
14 TEST(QuicUtilsTest, QuicRstStreamErrorCodeToString) { | 13 class QuicErrorCodesTest : public QuicTest {}; |
| 14 |
| 15 TEST_F(QuicErrorCodesTest, QuicRstStreamErrorCodeToString) { |
15 EXPECT_STREQ("QUIC_BAD_APPLICATION_PAYLOAD", | 16 EXPECT_STREQ("QUIC_BAD_APPLICATION_PAYLOAD", |
16 QuicRstStreamErrorCodeToString(QUIC_BAD_APPLICATION_PAYLOAD)); | 17 QuicRstStreamErrorCodeToString(QUIC_BAD_APPLICATION_PAYLOAD)); |
17 } | 18 } |
18 | 19 |
19 TEST(QuicUtilsTest, QuicErrorCodeToString) { | 20 TEST_F(QuicErrorCodesTest, QuicErrorCodeToString) { |
20 EXPECT_STREQ("QUIC_NO_ERROR", QuicErrorCodeToString(QUIC_NO_ERROR)); | 21 EXPECT_STREQ("QUIC_NO_ERROR", QuicErrorCodeToString(QUIC_NO_ERROR)); |
21 } | 22 } |
22 | 23 |
23 } // namespace | 24 } // namespace |
24 } // namespace test | 25 } // namespace test |
25 } // namespace net | 26 } // namespace net |
OLD | NEW |