Lines Matching defs:stats
78 struct Stats {
111 Stats GetStats() {
113 Stats stats;
114 stats.captured_frames = captured_frames_;
115 stats.dropped_frames = dropped_frames_;
116 stats.last_adapt_was_no_op = last_adapt_was_no_op_;
118 stats.adapted_width = adapted_format_.width;
119 stats.adapted_height = adapted_format_.height;
121 stats.adapted_width = stats.adapted_height = -1;
124 return stats;
145 void VerifyAdaptedResolution(const VideoCapturerListener::Stats& stats,
148 EXPECT_EQ(width, stats.adapted_width);
149 EXPECT_EQ(height, stats.adapted_height);
177 VideoCapturerListener::Stats stats = listener_->GetStats();
178 EXPECT_GE(stats.captured_frames, 10);
179 EXPECT_EQ(0, stats.dropped_frames);
180 VerifyAdaptedResolution(stats, capture_format_.width, capture_format_.height);
192 VideoCapturerListener::Stats stats = listener_->GetStats();
193 EXPECT_GE(stats.captured_frames, 10);
194 EXPECT_EQ(0, stats.dropped_frames);
195 VerifyAdaptedResolution(stats, capture_format_.width, capture_format_.height);
196 EXPECT_TRUE(stats.last_adapt_was_no_op);
209 VideoCapturerListener::Stats stats = listener_->GetStats();
210 EXPECT_GE(stats.captured_frames, 10);
211 EXPECT_EQ(0, stats.dropped_frames);
212 VerifyAdaptedResolution(stats, capture_format_.width, capture_format_.height);
226 VideoCapturerListener::Stats stats = listener_->GetStats();
227 EXPECT_GE(stats.captured_frames, 10);
228 EXPECT_EQ(stats.captured_frames / 2, stats.dropped_frames);
229 VerifyAdaptedResolution(stats, capture_format_.width, capture_format_.height);
243 VideoCapturerListener::Stats stats = listener_->GetStats();
244 EXPECT_GE(stats.captured_frames, 30);
246 EXPECT_EQ(stats.captured_frames * 1 / 3, stats.dropped_frames);
247 VerifyAdaptedResolution(stats, capture_format_.width, capture_format_.height);
332 VideoCapturerListener::Stats stats = listener_->GetStats();
333 EXPECT_EQ(0, stats.dropped_frames);
334 VerifyAdaptedResolution(stats, request_format.width, request_format.height);
404 VideoCapturerListener::Stats stats = listener_->GetStats();
405 EXPECT_GE(stats.captured_frames, 10);
406 EXPECT_EQ(stats.captured_frames, stats.dropped_frames);