Home | History | Annotate | Download | only in base

Lines Matching refs:capturer_

59     capturer_.SignalVideoFrame.connect(this, &VideoCapturerTest::OnVideoFrame);
60 capturer_.SignalStateChange.connect(this,
74 EXPECT_EQ(capturer_.GetRotation(), frame->GetRotation());
89 cricket::FakeVideoCapturer capturer_;
98 EXPECT_TRUE(capturer_.enable_video_adapter());
99 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
104 EXPECT_TRUE(capturer_.IsRunning());
107 capturer_.Stop();
110 capturer_.Stop();
116 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
121 EXPECT_TRUE(capturer_.IsRunning());
124 EXPECT_TRUE(capturer_.Restart(cricket::VideoFormat(
130 EXPECT_TRUE(capturer_.IsRunning());
132 capturer_.Stop();
134 EXPECT_FALSE(capturer_.IsRunning());
138 EXPECT_FALSE(capturer_.IsRunning());
139 EXPECT_TRUE(capturer_.Restart(cricket::VideoFormat(
144 EXPECT_TRUE(capturer_.IsRunning());
152 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(format));
153 EXPECT_TRUE(capturer_.IsRunning());
156 EXPECT_TRUE(capturer_.Restart(format));
158 EXPECT_TRUE(capturer_.IsRunning());
163 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
168 EXPECT_TRUE(capturer_.IsRunning());
170 EXPECT_TRUE(capturer_.CaptureFrame());
172 EXPECT_FALSE(capturer_.IsMuted());
175 capturer_.MuteToBlackThenPause(true);
176 EXPECT_TRUE(capturer_.IsMuted());
178 EXPECT_TRUE(capturer_.CaptureFrame());
183 capturer_.capture_state(), kTimeout);
186 EXPECT_FALSE(capturer_.CaptureFrame());
190 capturer_.MuteToBlackThenPause(false);
191 EXPECT_FALSE(capturer_.IsMuted());
193 capturer_.capture_state(), kTimeout);
194 EXPECT_TRUE(capturer_.CaptureFrame());
200 capturer_.SetScreencast(true);
208 capturer_.ResetSupportedFormats(formats);
210 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
215 EXPECT_TRUE(capturer_.IsRunning());
218 EXPECT_TRUE(capturer_.CaptureFrame());
232 capturer_.ResetSupportedFormats(formats);
233 // capturer_ should compensate rotation as default.
234 capturer_.UpdateAspectRatio(400, 200);
237 capturer_.Start(cricket::VideoFormat(
240 EXPECT_TRUE(capturer_.IsRunning());
251 capturer_.SetRotation(webrtc::kVideoRotation_90);
252 EXPECT_TRUE(capturer_.CaptureFrame());
255 capturer_.SetRotation(webrtc::kVideoRotation_270);
256 EXPECT_TRUE(capturer_.CaptureFrame());
262 capturer_.SetRotation(webrtc::kVideoRotation_180);
263 EXPECT_TRUE(capturer_.CaptureFrame());
276 capturer_.ResetSupportedFormats(formats);
277 // capturer_ should not compensate rotation.
278 capturer_.SetApplyRotation(false);
279 capturer_.UpdateAspectRatio(400, 200);
283 capturer_.Start(cricket::VideoFormat(
286 EXPECT_TRUE(capturer_.IsRunning());
297 capturer_.SetRotation(webrtc::kVideoRotation_0);
298 EXPECT_TRUE(capturer_.CaptureFrame());
301 capturer_.SetRotation(webrtc::kVideoRotation_90);
302 EXPECT_TRUE(capturer_.CaptureFrame());
305 capturer_.SetRotation(webrtc::kVideoRotation_180);
306 EXPECT_TRUE(capturer_.CaptureFrame());
309 capturer_.SetRotation(webrtc::kVideoRotation_270);
310 EXPECT_TRUE(capturer_.CaptureFrame());
315 capturer_.SetScreencast(true);
325 capturer_.ResetSupportedFormats(formats);
327 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
332 EXPECT_TRUE(capturer_.IsRunning());
335 EXPECT_TRUE(capturer_.CaptureFrame());
344 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
350 EXPECT_FALSE(capturer_.GetBestCaptureFormat(desired, &best));
353 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
362 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
370 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
378 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
386 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
394 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
413 capturer_.ResetSupportedFormats(formats);
420 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
429 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
438 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
446 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
454 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
462 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
470 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
479 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
488 EXPECT_TRUE(capturer_.GetBestCaptureFormat(desired, &best));
501 capturer_.ResetSupportedFormats(supported_formats);
512 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
522 capturer_.ResetSupportedFormats(supported_formats);
525 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
541 capturer_.ResetSupportedFormats(supported_formats);
550 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
563 capturer_.ResetSupportedFormats(supported_formats);
566 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
582 capturer_.ResetSupportedFormats(supported_formats);
587 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
607 capturer_.ResetSupportedFormats(supported_formats);
619 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[0], &best));
625 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[1], &best));
631 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best));
648 capturer_.ResetSupportedFormats(supported_formats);
651 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[0], &best));
657 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[1], &best));
663 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best));
678 capturer_.ResetSupportedFormats(supported_formats);
684 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
699 capturer_.ResetSupportedFormats(supported_formats);
703 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
718 capturer_.ResetSupportedFormats(supported_formats);
722 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[i], &best));
728 EXPECT_TRUE(capturer_.GetBestCaptureFormat(required_formats[2], &best));
740 EXPECT_EQ(cricket::CS_RUNNING, capturer_.Start(cricket::VideoFormat(
745 EXPECT_TRUE(capturer_.IsRunning());
747 EXPECT_TRUE(capturer_.CaptureFrame());
773 std::vector<cricket::VideoFormat> formats = *capturer_.GetSupportedFormats();
777 capturer_.set_enable_camera_list(true);
778 capturer_.ResetSupportedFormats(formats);
779 EXPECT_TRUE(HdFormatInList(*capturer_.GetSupportedFormats()));
780 capturer_.ConstrainSupportedFormats(vga_format);
781 EXPECT_FALSE(HdFormatInList(*capturer_.GetSupportedFormats()));
784 capturer_.set_enable_camera_list(false);
785 capturer_.ResetSupportedFormats(formats);
786 EXPECT_TRUE(HdFormatInList(*capturer_.GetSupportedFormats()));
787 capturer_.ConstrainSupportedFormats(vga_format);
788 EXPECT_TRUE(HdFormatInList(*capturer_.GetSupportedFormats()));
801 capturer_.ResetSupportedFormats(supported_formats);
802 EXPECT_EQ(2u, capturer_.GetSupportedFormats()->size());
806 capturer_.set_enable_camera_list(true);
807 capturer_.ConstrainSupportedFormats(vga_format);
808 EXPECT_EQ(2u, capturer_.GetSupportedFormats()->size());
812 capturer_.ResetSupportedFormats(supported_formats);
813 ASSERT_EQ(1u, capturer_.GetSupportedFormats()->size());
814 EXPECT_EQ(vga_format.height, capturer_.GetSupportedFormats()->at(0).height);