Lines Matching refs:mon
24 BandwidthSmoother mon(1000, // initial_bandwidth_guess in TEST() local
31 EXPECT_EQ(bandwidth_sample, mon.get_bandwidth_estimation()); in TEST()
34 EXPECT_FALSE(mon.Sample(9, bandwidth_sample)); in TEST()
35 EXPECT_TRUE(mon.Sample(10, bandwidth_sample)); in TEST()
36 EXPECT_EQ(bandwidth_sample, mon.get_bandwidth_estimation()); in TEST()
40 EXPECT_TRUE(mon.Sample(20, bandwidth_sample)); in TEST()
41 EXPECT_EQ(next_expected_est, mon.get_bandwidth_estimation()); in TEST()
45 BandwidthSmoother mon(0, // initial_bandwidth_guess in TEST() local
52 EXPECT_EQ(0, mon.get_bandwidth_estimation()); in TEST()
53 EXPECT_FALSE(mon.Sample(9, kBandwidthSample)); in TEST()
54 EXPECT_TRUE(mon.Sample(10, kBandwidthSample)); in TEST()
55 EXPECT_EQ(kBandwidthSample, mon.get_bandwidth_estimation()); in TEST()
59 BandwidthSmoother mon(1000, // initial_bandwidth_guess in TEST() local
66 EXPECT_EQ(1000, mon.get_bandwidth_estimation()); in TEST()
67 EXPECT_FALSE(mon.Sample(1, kBandwidthSample)); in TEST()
68 EXPECT_EQ(1000, mon.get_bandwidth_estimation()); in TEST()
69 EXPECT_TRUE(mon.Sample(2, kBandwidthSample)); in TEST()
70 EXPECT_EQ(kBandwidthSample, mon.get_bandwidth_estimation()); in TEST()
74 BandwidthSmoother mon(1000, // initial_bandwidth_guess in TEST() local
81 EXPECT_EQ(1000, mon.get_bandwidth_estimation()); in TEST()
82 EXPECT_FALSE(mon.Sample(1, kBandwidthSample)); in TEST()
83 EXPECT_FALSE(mon.Sample(2, kBandwidthSample)); in TEST()
84 EXPECT_FALSE(mon.Sample(3, kBandwidthSample)); in TEST()
85 EXPECT_FALSE(mon.Sample(4, kBandwidthSample)); in TEST()
86 EXPECT_EQ(1000, mon.get_bandwidth_estimation()); in TEST()
87 EXPECT_TRUE(mon.Sample(5, kBandwidthSample)); in TEST()
88 EXPECT_EQ(kBandwidthSample, mon.get_bandwidth_estimation()); in TEST()
93 BandwidthSmoother mon(kHugeBandwidth, in TEST() local
99 EXPECT_FALSE(mon.Sample(10, INT_MAX)); in TEST()
100 EXPECT_FALSE(mon.Sample(11, INT_MAX)); in TEST()
101 EXPECT_EQ(kHugeBandwidth, mon.get_bandwidth_estimation()); in TEST()
105 BandwidthSmoother mon(1000, // initial_bandwidth_guess in TEST() local
111 EXPECT_FALSE(mon.Sample(10, -1)); in TEST()
112 EXPECT_FALSE(mon.Sample(11, -1)); in TEST()
113 EXPECT_EQ(1000, mon.get_bandwidth_estimation()); in TEST()