Home | History | Annotate | Download | only in base

Lines Matching refs:capturer_

65     capturer_.SignalVideoFrame.connect(this, &VideoCapturerTest::OnVideoFrame);
66 capturer_.SignalStateChange.connect(this,
88 cricket::FakeVideoCapturer capturer_;
97 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
102 EXPECT_TRUE(capturer_.IsRunning());
105 capturer_.Stop();
108 capturer_.Stop();
114 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
119 EXPECT_TRUE(capturer_.IsRunning());
122 EXPECT_TRUE(capturer_.Restart(cricket::VideoFormat(
128 EXPECT_TRUE(capturer_.IsRunning());
130 capturer_.Stop();
132 EXPECT_FALSE(capturer_.IsRunning());
136 EXPECT_FALSE(capturer_.IsRunning());
137 EXPECT_TRUE(capturer_.Restart(cricket::VideoFormat(
142 EXPECT_TRUE(capturer_.IsRunning());
150 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(format));
151 EXPECT_TRUE(capturer_.IsRunning());
154 EXPECT_TRUE(capturer_.Restart(format));
156 EXPECT_TRUE(capturer_.IsRunning());
161 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
166 EXPECT_TRUE(capturer_.IsRunning());
168 EXPECT_TRUE(capturer_.CaptureFrame());
170 EXPECT_FALSE(capturer_.IsMuted());
173 capturer_.MuteToBlackThenPause(true);
174 EXPECT_TRUE(capturer_.IsMuted());
176 EXPECT_TRUE(capturer_.CaptureFrame());
181 capturer_.capture_state(), kTimeout);
184 EXPECT_FALSE(capturer_.CaptureFrame());
188 capturer_.MuteToBlackThenPause(false);
189 EXPECT_FALSE(capturer_.IsMuted());
191 capturer_.capture_state(), kTimeout);
192 EXPECT_TRUE(capturer_.CaptureFrame());
202 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
208 EXPECT_FALSE(capturer_.GetBestCaptureFormat(desired, &best));
211 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
220 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
228 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
236 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
244 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
252 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
271 capturer_.ResetSupportedFormats(formats);
278 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
287 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
296 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
304 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
312 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
320 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
328 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
337 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
346 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
359 capturer_.ResetSupportedFormats(supported_formats);
370 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
380 capturer_.ResetSupportedFormats(supported_formats);
383 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
399 capturer_.ResetSupportedFormats(supported_formats);
408 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
421 capturer_.ResetSupportedFormats(supported_formats);
424 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
440 capturer_.ResetSupportedFormats(supported_formats);
445 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
465 capturer_.ResetSupportedFormats(supported_formats);
477 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[0], &best));
483 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[1], &best));
489 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best));
506 capturer_.ResetSupportedFormats(supported_formats);
509 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[0], &best));
515 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[1], &best));
521 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best));
536 capturer_.ResetSupportedFormats(supported_formats);
542 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
557 capturer_.ResetSupportedFormats(supported_formats);
561 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
576 capturer_.ResetSupportedFormats(supported_formats);
580 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
586 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best));
593 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
598 EXPECT_TRUE(capturer_.IsRunning());
600 EXPECT_TRUE(capturer_.CaptureFrame());
607 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
612 EXPECT_TRUE(capturer_.IsRunning());
615 capturer_.AddVideoProcessor(&processor0);
618 capturer_.AddVideoProcessor(&processor1);
619 EXPECT_TRUE(capturer_.CaptureFrame());
622 capturer_.RemoveVideoProcessor(&processor1);
623 EXPECT_TRUE(capturer_.CaptureFrame());
632 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
637 EXPECT_TRUE(capturer_.IsRunning());
640 capturer_.AddVideoProcessor(&dropping_processor_);
641 EXPECT_TRUE(capturer_.CaptureFrame());
667 std::vector<cricket::VideoFormat> formats = *capturer_.GetSupportedFormats();
671 capturer_.set_enable_camera_list(true);
672 capturer_.ResetSupportedFormats(formats);
673 EXPECT_TRUE(HdFormatInList(*capturer_.GetSupportedFormats()));
674 capturer_.ConstrainSupportedFormats(vga_format);
675 EXPECT_FALSE(HdFormatInList(*capturer_.GetSupportedFormats()));
678 capturer_.set_enable_camera_list(false);
679 capturer_.ResetSupportedFormats(formats);
680 EXPECT_TRUE(HdFormatInList(*capturer_.GetSupportedFormats()));
681 capturer_.ConstrainSupportedFormats(vga_format);
682 EXPECT_TRUE(HdFormatInList(*capturer_.GetSupportedFormats()));