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

Side by Side Diff: net/quic/core/quic_flow_controller_test.cc

Issue 2603723002: Add a new QUIC platform API for text utilities. (Closed)
Patch Set: Tests Created 3 years, 12 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
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/quic/core/quic_flow_controller.h" 5 #include "net/quic/core/quic_flow_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/strings/stringprintf.h"
11 #include "net/quic/platform/api/quic_str_cat.h" 10 #include "net/quic/platform/api/quic_str_cat.h"
12 #include "net/quic/test_tools/quic_connection_peer.h" 11 #include "net/quic/test_tools/quic_connection_peer.h"
13 #include "net/quic/test_tools/quic_flow_controller_peer.h" 12 #include "net/quic/test_tools/quic_flow_controller_peer.h"
14 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" 13 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h"
15 #include "net/quic/test_tools/quic_test_utils.h" 14 #include "net/quic/test_tools/quic_test_utils.h"
16 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
17 16
18 using testing::_; 17 using testing::_;
19 18
20 namespace net { 19 namespace net {
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 EXPECT_FALSE(flow_controller_->FlowControlViolation()); 363 EXPECT_FALSE(flow_controller_->FlowControlViolation());
365 364
366 QuicByteCount new_threshold = 365 QuicByteCount new_threshold =
367 QuicFlowControllerPeer::WindowUpdateThreshold(flow_controller_.get()); 366 QuicFlowControllerPeer::WindowUpdateThreshold(flow_controller_.get());
368 367
369 EXPECT_EQ(new_threshold, threshold); 368 EXPECT_EQ(new_threshold, threshold);
370 } 369 }
371 370
372 } // namespace test 371 } // namespace test
373 } // namespace net 372 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698