OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/spdy_priority_tree.h" | 5 #include "net/spdy/http2_write_scheduler.h" |
6 | 6 |
7 #include "testing/gmock/include/gmock/gmock.h" | 7 #include "testing/gmock/include/gmock/gmock.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 | 11 |
12 using ::testing::ElementsAre; | 12 using ::testing::ElementsAre; |
13 using ::testing::IsEmpty; | 13 using ::testing::IsEmpty; |
14 using ::testing::UnorderedElementsAre; | 14 using ::testing::UnorderedElementsAre; |
15 | 15 |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 EXPECT_EQ(3, tree.GetWeight(4)); | 598 EXPECT_EQ(3, tree.GetWeight(4)); |
599 EXPECT_EQ(3, tree.GetWeight(5)); | 599 EXPECT_EQ(3, tree.GetWeight(5)); |
600 // 2.5 rounded up = 3. | 600 // 2.5 rounded up = 3. |
601 EXPECT_EQ(3, tree.GetWeight(6)); | 601 EXPECT_EQ(3, tree.GetWeight(6)); |
602 EXPECT_EQ(3, tree.GetWeight(7)); | 602 EXPECT_EQ(3, tree.GetWeight(7)); |
603 // 0 is not a valid weight, so round up to 1. | 603 // 0 is not a valid weight, so round up to 1. |
604 EXPECT_EQ(1, tree.GetWeight(8)); | 604 EXPECT_EQ(1, tree.GetWeight(8)); |
605 } | 605 } |
606 } // namespace test | 606 } // namespace test |
607 } // namespace gfe_spdy | 607 } // namespace gfe_spdy |
OLD | NEW |