Home | History | Annotate | Download | only in quic

Lines Matching defs:recorder

16   QuicSustainedBandwidthRecorder recorder;
17 EXPECT_FALSE(recorder.HasEstimate());
30 recorder.RecordEstimate(in_recovery, in_slow_start, bandwidth, estimate_time,
32 EXPECT_FALSE(recorder.HasEstimate());
37 recorder.RecordEstimate(in_recovery, in_slow_start, bandwidth, estimate_time,
39 EXPECT_FALSE(recorder.HasEstimate());
44 recorder.RecordEstimate(in_recovery, in_slow_start, bandwidth, estimate_time,
46 EXPECT_TRUE(recorder.HasEstimate());
47 EXPECT_EQ(recorder.BandwidthEstimate(), bandwidth);
48 EXPECT_EQ(recorder.BandwidthEstimate(), recorder.MaxBandwidthEstimate());
54 // Reset the recorder by passing in a measurement while in recovery.
56 recorder.RecordEstimate(in_recovery, in_slow_start, bandwidth, estimate_time,
59 recorder.RecordEstimate(in_recovery, in_slow_start, bandwidth, estimate_time,
61 EXPECT_EQ(recorder.BandwidthEstimate(), bandwidth);
67 recorder.RecordEstimate(in_recovery, in_slow_start, second_bandwidth,
69 EXPECT_EQ(recorder.BandwidthEstimate(), second_bandwidth);
70 EXPECT_EQ(recorder.BandwidthEstimate(), recorder.MaxBandwidthEstimate());
71 EXPECT_EQ(recorder.MaxBandwidthTimestamp(), kSeconds);
76 // Reset the recorder by passing in an unreliable measurement.
77 recorder.RecordEstimate(in_recovery, in_slow_start, third_bandwidth,
79 recorder.RecordEstimate(in_recovery, in_slow_start, third_bandwidth,
81 EXPECT_EQ(recorder.BandwidthEstimate(), third_bandwidth);
84 recorder.RecordEstimate(in_recovery, in_slow_start, third_bandwidth,
86 EXPECT_EQ(recorder.BandwidthEstimate(), third_bandwidth);
90 EXPECT_EQ(recorder.MaxBandwidthEstimate(), second_bandwidth);
91 EXPECT_EQ(recorder.MaxBandwidthTimestamp(), kSeconds);
96 QuicSustainedBandwidthRecorder recorder;
97 EXPECT_FALSE(recorder.HasEstimate());
110 recorder.RecordEstimate(in_recovery, in_slow_start, bandwidth, estimate_time,
115 recorder.RecordEstimate(in_recovery, in_slow_start, bandwidth, estimate_time,
117 EXPECT_TRUE(recorder.HasEstimate());
118 EXPECT_TRUE(recorder.EstimateRecordedDuringSlowStart());
123 recorder.RecordEstimate(in_recovery, in_slow_start, bandwidth, estimate_time,
125 EXPECT_TRUE(recorder.HasEstimate());
126 EXPECT_FALSE(recorder.EstimateRecordedDuringSlowStart());