OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/quic_protocol.h" | 5 #include "net/quic/core/quic_protocol.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "net/quic/quic_flags.h" | 10 #include "net/quic/core/quic_flags.h" |
11 #include "net/quic/quic_utils.h" | 11 #include "net/quic/core/quic_utils.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 namespace test { | 15 namespace test { |
16 namespace { | 16 namespace { |
17 | 17 |
18 TEST(QuicProtocolTest, AdjustErrorForVersion) { | 18 TEST(QuicProtocolTest, AdjustErrorForVersion) { |
19 ASSERT_EQ(14, QUIC_STREAM_LAST_ERROR) | 19 ASSERT_EQ(14, QUIC_STREAM_LAST_ERROR) |
20 << "Any additions to QuicRstStreamErrorCode require an addition to " | 20 << "Any additions to QuicRstStreamErrorCode require an addition to " |
21 << "AdjustErrorForVersion and this associated test."; | 21 << "AdjustErrorForVersion and this associated test."; |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 EXPECT_EQ(2u, queue.NumIntervals()); | 422 EXPECT_EQ(2u, queue.NumIntervals()); |
423 EXPECT_TRUE(queue.Contains(10)); | 423 EXPECT_TRUE(queue.Contains(10)); |
424 EXPECT_TRUE(queue.Contains(11)); | 424 EXPECT_TRUE(queue.Contains(11)); |
425 EXPECT_TRUE(queue.Contains(20)); | 425 EXPECT_TRUE(queue.Contains(20)); |
426 EXPECT_TRUE(queue.Contains(21)); | 426 EXPECT_TRUE(queue.Contains(21)); |
427 } | 427 } |
428 | 428 |
429 } // namespace | 429 } // namespace |
430 } // namespace test | 430 } // namespace test |
431 } // namespace net | 431 } // namespace net |
OLD | NEW |