Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(832)

Side by Side Diff: net/spdy/http2_write_scheduler_test.cc

Issue 1668773003: Rename spdy_priority_tree* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Oops. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/spdy/http2_write_scheduler.h ('k') | net/spdy/spdy_priority_tree.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/spdy/http2_write_scheduler.h ('k') | net/spdy/spdy_priority_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698