Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1617)

Unified Diff: content/renderer/media/media_stream_video_capture_source_unittest.cc

Issue 541163002: Clarify resolution change behaviors of video capture devices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed build Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/media_stream_video_capture_source_unittest.cc
diff --git a/content/renderer/media/media_stream_video_capture_source_unittest.cc b/content/renderer/media/media_stream_video_capture_source_unittest.cc
index 8492039a7bd6a6521965cc19a4f74cd5ed0c7ff1..5bc075d64582f9fa0544e0636fe2d314590cbd1f 100644
--- a/content/renderer/media/media_stream_video_capture_source_unittest.cc
+++ b/content/renderer/media/media_stream_video_capture_source_unittest.cc
@@ -96,7 +96,8 @@ TEST_F(MediaStreamVideoCapturerSourceTest, TabCaptureAllowResolutionChange) {
InitWithDeviceInfo(device_info);
EXPECT_CALL(mock_delegate(), StartCapture(
- testing::Field(&media::VideoCaptureParams::allow_resolution_change, true),
+ testing::Field(&media::VideoCaptureParams::resolution_change_policy,
+ media::RESOLUTION_POLICY_DYNAMIC_WITHIN_LIMIT),
testing::_,
testing::_)).Times(1);
blink::WebMediaStreamTrack track = StartSource();
@@ -111,7 +112,8 @@ TEST_F(MediaStreamVideoCapturerSourceTest,
InitWithDeviceInfo(device_info);
EXPECT_CALL(mock_delegate(), StartCapture(
- testing::Field(&media::VideoCaptureParams::allow_resolution_change, true),
+ testing::Field(&media::VideoCaptureParams::resolution_change_policy,
+ media::RESOLUTION_POLICY_DYNAMIC_WITHIN_LIMIT),
testing::_,
testing::_)).Times(1);
blink::WebMediaStreamTrack track = StartSource();

Powered by Google App Engine
This is Rietveld 408576698