• Home
  • Raw
  • Download

Lines Matching refs:tracker

27   RateTrackerForTest tracker;  in TEST()  local
30 tracker.AddSamples(1); in TEST()
31 tracker.AdvanceTime(33); in TEST()
33 tracker.AdvanceTime(1); in TEST()
36 EXPECT_DOUBLE_EQ(30.0, tracker.ComputeRateForInterval(50000u)); in TEST()
40 RateTrackerForTest tracker; in TEST() local
43 tracker.AddSamples(1); in TEST()
44 tracker.AdvanceTime(16); in TEST()
46 tracker.AdvanceTime(1); in TEST()
49 EXPECT_DOUBLE_EQ(60.0, tracker.ComputeRateForInterval(1000u)); in TEST()
53 RateTrackerForTest tracker; in TEST() local
54 EXPECT_DOUBLE_EQ(0.0, tracker.ComputeRateForInterval(1000u)); in TEST()
57 tracker.AddSamples(1234); in TEST()
59 tracker.AdvanceTime(100); in TEST()
60 EXPECT_DOUBLE_EQ(12340.0, tracker.ComputeRateForInterval(1000u)); in TEST()
61 EXPECT_DOUBLE_EQ(12340.0, tracker.ComputeRate()); in TEST()
62 EXPECT_EQ(1234U, tracker.TotalSampleCount()); in TEST()
63 EXPECT_DOUBLE_EQ(12340.0, tracker.ComputeTotalRate()); in TEST()
66 tracker.AddSamples(1234); in TEST()
67 tracker.AdvanceTime(100); in TEST()
68 EXPECT_DOUBLE_EQ(12340.0, tracker.ComputeRateForInterval(1000u)); in TEST()
69 EXPECT_DOUBLE_EQ(12340.0, tracker.ComputeRate()); in TEST()
70 EXPECT_EQ(1234U * 2, tracker.TotalSampleCount()); in TEST()
71 EXPECT_DOUBLE_EQ(12340.0, tracker.ComputeTotalRate()); in TEST()
75 tracker.AdvanceTime(800); in TEST()
76 EXPECT_DOUBLE_EQ(1234.0 * 2.0, tracker.ComputeRateForInterval(1000u)); in TEST()
77 EXPECT_DOUBLE_EQ(1234.0 * 2.0, tracker.ComputeRate()); in TEST()
78 EXPECT_EQ(1234U * 2, tracker.TotalSampleCount()); in TEST()
79 EXPECT_DOUBLE_EQ(1234.0 * 2.0, tracker.ComputeTotalRate()); in TEST()
82 EXPECT_DOUBLE_EQ(1234.0 * 2.0, tracker.ComputeRateForInterval(1000u)); in TEST()
83 EXPECT_DOUBLE_EQ(1234.0 * 2.0, tracker.ComputeRate()); in TEST()
84 EXPECT_EQ(1234U * 2, tracker.TotalSampleCount()); in TEST()
85 EXPECT_DOUBLE_EQ(1234.0 * 2.0, tracker.ComputeTotalRate()); in TEST()
88 tracker.AdvanceTime(1000); in TEST()
89 EXPECT_DOUBLE_EQ(0.0, tracker.ComputeRateForInterval(1000u)); in TEST()
90 EXPECT_DOUBLE_EQ(0.0, tracker.ComputeRate()); in TEST()
91 EXPECT_EQ(1234U * 2, tracker.TotalSampleCount()); in TEST()
92 EXPECT_DOUBLE_EQ(1234.0, tracker.ComputeTotalRate()); in TEST()
97 tracker.AddSamples(9876U); in TEST()
98 tracker.AdvanceTime(100); in TEST()
100 EXPECT_DOUBLE_EQ(9876.0 * 10.0, tracker.ComputeRateForInterval(1000u)); in TEST()
101 EXPECT_DOUBLE_EQ(9876.0 * 10.0, tracker.ComputeRate()); in TEST()
102 EXPECT_EQ(1234U * 2 + 9876U * 55, tracker.TotalSampleCount()); in TEST()
104 tracker.ComputeTotalRate()); in TEST()
108 tracker.AdvanceTime(500); in TEST()
109 EXPECT_DOUBLE_EQ(9876.0 * 5.0, tracker.ComputeRateForInterval(1000u)); in TEST()
110 EXPECT_DOUBLE_EQ(9876.0 * 5.0, tracker.ComputeRate()); in TEST()
111 EXPECT_EQ(1234U * 2 + 9876U * 55, tracker.TotalSampleCount()); in TEST()
113 tracker.ComputeTotalRate()); in TEST()
116 EXPECT_DOUBLE_EQ(0.0, tracker.ComputeRateForInterval(500u)); in TEST()
120 RateTrackerForTest tracker; in TEST() local
121 tracker.AddSamples(1); in TEST()
122 tracker.AdvanceTime(1000); in TEST()
123 EXPECT_DOUBLE_EQ(1.0, tracker.ComputeRate()); in TEST()
125 tracker.AdvanceTime(2000); in TEST()
126 EXPECT_DOUBLE_EQ(0.0, tracker.ComputeRate()); in TEST()
128 tracker.AdvanceTime(2000); in TEST()
129 tracker.AddSamples(1); in TEST()
130 EXPECT_DOUBLE_EQ(1.0, tracker.ComputeRate()); in TEST()
134 RateTrackerForTest tracker; in TEST() local
136 tracker.AddSamples(1U); in TEST()
137 tracker.AdvanceTime(100); in TEST()
139 EXPECT_DOUBLE_EQ(10.0, tracker.ComputeRate()); in TEST()
142 tracker.AddSamples(1U); in TEST()
143 tracker.AdvanceTime(50); in TEST()
145 EXPECT_DOUBLE_EQ(15.0, tracker.ComputeRate()); in TEST()
146 EXPECT_DOUBLE_EQ(20.0, tracker.ComputeRateForInterval(500u)); in TEST()
149 tracker.AddSamples(1U); in TEST()
150 tracker.AdvanceTime(50); in TEST()
152 EXPECT_DOUBLE_EQ(20.0, tracker.ComputeRate()); in TEST()
156 RateTrackerForTest tracker; in TEST() local
157 tracker.AddSamples(1234); in TEST()
158 tracker.AdvanceTime(1000); in TEST()
159 EXPECT_DOUBLE_EQ(1234.0, tracker.ComputeRateForInterval(1000u)); in TEST()