| OLD | NEW |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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/spdy/lifo_write_scheduler.h" | 5 #include "net/spdy/core/lifo_write_scheduler.h" |
| 6 | 6 |
| 7 #include "net/spdy/spdy_protocol.h" | 7 #include "net/spdy/core/spdy_protocol.h" |
| 8 #include "net/spdy/spdy_test_utils.h" | 8 #include "net/spdy/core/spdy_test_utils.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 namespace test { | 13 namespace test { |
| 14 | 14 |
| 15 template <typename StreamIdType> | 15 template <typename StreamIdType> |
| 16 class LifoWriteSchedulerPeer { | 16 class LifoWriteSchedulerPeer { |
| 17 public: | 17 public: |
| 18 explicit LifoWriteSchedulerPeer(LifoWriteScheduler<StreamIdType>* scheduler) | 18 explicit LifoWriteSchedulerPeer(LifoWriteScheduler<StreamIdType>* scheduler) |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 EXPECT_EQ(3, lifo.GetLatestEventWithPrecedence(5)); | 137 EXPECT_EQ(3, lifo.GetLatestEventWithPrecedence(5)); |
| 138 EXPECT_EQ(4, lifo.GetLatestEventWithPrecedence(3)); | 138 EXPECT_EQ(4, lifo.GetLatestEventWithPrecedence(3)); |
| 139 EXPECT_EQ(8, lifo.GetLatestEventWithPrecedence(1)); | 139 EXPECT_EQ(8, lifo.GetLatestEventWithPrecedence(1)); |
| 140 EXPECT_SPDY_BUG(lifo.GetLatestEventWithPrecedence(11), | 140 EXPECT_SPDY_BUG(lifo.GetLatestEventWithPrecedence(11), |
| 141 "Stream 11 is not registered"); | 141 "Stream 11 is not registered"); |
| 142 } | 142 } |
| 143 | 143 |
| 144 } // namespace test | 144 } // namespace test |
| 145 | 145 |
| 146 } // namespace net | 146 } // namespace net |
| OLD | NEW |