| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/priority_write_scheduler.h" | 5 #include "net/spdy/core/priority_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 "net/test/gtest_util.h" | 9 #include "net/test/gtest_util.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 namespace test { | 12 namespace test { |
| 13 | 13 |
| 14 template <typename StreamIdType> | 14 template <typename StreamIdType> |
| 15 class PriorityWriteSchedulerPeer { | 15 class PriorityWriteSchedulerPeer { |
| 16 public: | 16 public: |
| 17 explicit PriorityWriteSchedulerPeer( | 17 explicit PriorityWriteSchedulerPeer( |
| 18 PriorityWriteScheduler<StreamIdType>* scheduler) | 18 PriorityWriteScheduler<StreamIdType>* scheduler) |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 scheduler_.RecordStreamEventTime(i, i * 100); | 367 scheduler_.RecordStreamEventTime(i, i * 100); |
| 368 } | 368 } |
| 369 for (int i = 1; i < 5; ++i) { | 369 for (int i = 1; i < 5; ++i) { |
| 370 EXPECT_EQ((i - 1) * 100, scheduler_.GetLatestEventWithPrecedence(i)); | 370 EXPECT_EQ((i - 1) * 100, scheduler_.GetLatestEventWithPrecedence(i)); |
| 371 } | 371 } |
| 372 } | 372 } |
| 373 | 373 |
| 374 } // namespace | 374 } // namespace |
| 375 } // namespace test | 375 } // namespace test |
| 376 } // namespace net | 376 } // namespace net |
| OLD | NEW |