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

Side by Side Diff: net/spdy/core/priority_write_scheduler_test.cc

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. Created 3 years, 8 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/core/priority_write_scheduler.h ('k') | net/spdy/core/spdy_alt_svc_wire_format.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 (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
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
OLDNEW
« no previous file with comments | « net/spdy/core/priority_write_scheduler.h ('k') | net/spdy/core/spdy_alt_svc_wire_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698