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

Side by Side Diff: net/quic/congestion_control/quic_send_scheduler_test.cc

Issue 11313021: Disable QuicSendSchedulerTest.AvailableCongestionWindow (failing on linux 32 bit) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/congestion_control/quic_send_scheduler.h" 5 #include "net/quic/congestion_control/quic_send_scheduler.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 double advance_time = sender_->TimeUntilSend(false) / 1000000.0; 58 double advance_time = sender_->TimeUntilSend(false) / 1000000.0;
59 clock_.AdvanceTime(advance_time); 59 clock_.AdvanceTime(advance_time);
60 acc_advance_time += advance_time; 60 acc_advance_time += advance_time;
61 // Ack the packet we sent. 61 // Ack the packet we sent.
62 ack.received_info.largest_received = i; 62 ack.received_info.largest_received = i;
63 sender_->OnIncomingAckFrame(ack); 63 sender_->OnIncomingAckFrame(ack);
64 } 64 }
65 EXPECT_EQ(1200, floor((acc_advance_time * 1000) + 0.5)); 65 EXPECT_EQ(1200, floor((acc_advance_time * 1000) + 0.5));
66 } 66 }
67 67
68 TEST_F(QuicSendSchedulerTest, AvailableCongestionWindow) { 68 // TODO(rch): fix this on linux32
69 TEST_F(QuicSendSchedulerTest, DISABLED_AvailableCongestionWindow) {
69 SetUpCongestionType(kFixRate); 70 SetUpCongestionType(kFixRate);
70 QuicAckFrame ack; 71 QuicAckFrame ack;
71 ack.congestion_info.type = kFixRate; 72 ack.congestion_info.type = kFixRate;
72 ack.congestion_info.fix_rate.bitrate_in_bytes_per_second = 100000; 73 ack.congestion_info.fix_rate.bitrate_in_bytes_per_second = 100000;
73 sender_->OnIncomingAckFrame(ack); 74 sender_->OnIncomingAckFrame(ack);
74 EXPECT_EQ(0, sender_->TimeUntilSend(false)); 75 EXPECT_EQ(0, sender_->TimeUntilSend(false));
75 EXPECT_EQ(kMaxPacketSize, sender_->AvailableCongestionWindow()); 76 EXPECT_EQ(kMaxPacketSize, sender_->AvailableCongestionWindow());
76 for (int i = 1; i <= 12; i++) { 77 for (int i = 1; i <= 12; i++) {
77 sender_->SentPacket(i, 100, false); 78 sender_->SentPacket(i, 100, false);
78 double advance_time = sender_->TimeUntilSend(false) / 1000000.0; 79 double advance_time = sender_->TimeUntilSend(false) / 1000000.0;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // Ack the packet we sent. 141 // Ack the packet we sent.
141 ack.received_info.largest_received = i + 100; 142 ack.received_info.largest_received = i + 100;
142 sender_->OnIncomingAckFrame(ack); 143 sender_->OnIncomingAckFrame(ack);
143 } 144 }
144 EXPECT_EQ(100000, sender_->BandwidthEstimate()); 145 EXPECT_EQ(100000, sender_->BandwidthEstimate());
145 EXPECT_EQ(100000, sender_->PeakSustainedBandwidth()); 146 EXPECT_EQ(100000, sender_->PeakSustainedBandwidth());
146 EXPECT_EQ(50000, sender_->SentBandwidth()); 147 EXPECT_EQ(50000, sender_->SentBandwidth());
147 } 148 }
148 149
149 } // namespace net 150 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698