Chromium Code Reviews| Index: content/renderer/media/media_stream_video_source_unittest.cc |
| diff --git a/content/renderer/media/media_stream_video_source_unittest.cc b/content/renderer/media/media_stream_video_source_unittest.cc |
| index 81e1626c47bac2c8b6d80b9eb71e52d6ea5e608d..5c020a38d9f2d582b9476c7705350541d3056909 100644 |
| --- a/content/renderer/media/media_stream_video_source_unittest.cc |
| +++ b/content/renderer/media/media_stream_video_source_unittest.cc |
| @@ -662,4 +662,21 @@ TEST_F(MediaStreamVideoSourceTest, IsConstraintSupported) { |
| "something unsupported")); |
| } |
| +// Test that the constraint negotiation can handle 0.0 fps as frame rate. |
| +TEST_F(MediaStreamVideoSourceTest, Use0FpsSupportedFormat) { |
| + media::VideoCaptureFormats formats; |
| + formats.push_back(media::VideoCaptureFormat( |
| + gfx::Size(640, 480), 0.0f, media::PIXEL_FORMAT_I420)); |
| + formats.push_back(media::VideoCaptureFormat( |
| + gfx::Size(320, 240), 0.0f, media::PIXEL_FORMAT_I420)); |
| + mock_source()->SetSupportedFormats(formats); |
| + |
| + blink::WebMediaConstraints constraints; |
| + constraints.initialize(); |
| + blink::WebMediaStreamTrack track = CreateTrack("123", constraints); |
| + mock_source()->CompleteGetSupportedFormats(); |
| + mock_source()->StartMockedSource(); |
| + EXPECT_EQ(1, NumberOfSuccessConstraintsCallbacks()); |
|
perkj_chrome
2014/06/19 12:26:14
Please also deliver a frame to a sink. See line 61
|
| +} |
| + |
| } // namespace content |