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

Unified Diff: net/tools/quic/quic_server_session_base_test.cc

Issue 2002083002: Add QuicSentPacketManagerInterface, and QuicSentPacketManager implements it. No functional change e… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_server_session_base.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_server_session_base_test.cc
diff --git a/net/tools/quic/quic_server_session_base_test.cc b/net/tools/quic/quic_server_session_base_test.cc
index ff9e7ceaa4d1c87bdf61803d13534fd14b119c0e..034d6890201902314bfc6e0175a2c8df91a4e7b0 100644
--- a/net/tools/quic/quic_server_session_base_test.cc
+++ b/net/tools/quic/quic_server_session_base_test.cc
@@ -393,6 +393,9 @@ TEST_P(QuicServerSessionBaseTest, BandwidthEstimates) {
// and we don't have any other data to write.
// Client has sent kBWRE connection option to trigger bandwidth resumption.
+ // Disable this flag because if connection uses multipath sent packet manager,
+ // static_cast here does not work.
+ FLAGS_quic_enable_multipath = false;
QuicTagVector copt;
copt.push_back(kBWRE);
QuicConfigPeer::SetReceivedConnectionOptions(session_->config(), copt);
@@ -412,7 +415,8 @@ TEST_P(QuicServerSessionBaseTest, BandwidthEstimates) {
// Set some initial bandwidth values.
QuicSentPacketManager* sent_packet_manager =
- QuicConnectionPeer::GetSentPacketManager(session_->connection());
+ static_cast<QuicSentPacketManager*>(
+ QuicConnectionPeer::GetSentPacketManager(session_->connection()));
QuicSustainedBandwidthRecorder& bandwidth_recorder =
QuicSentPacketManagerPeer::GetBandwidthRecorder(sent_packet_manager);
// Seed an rtt measurement equal to the initial default rtt.
« no previous file with comments | « net/tools/quic/quic_server_session_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698