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

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: merged 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 339e49da08b1719fa37bc1da0aa02c2a4a90dd98..6a3f2aa5beff12e5d51a4ff10fdffcc3d5df7e99 100644
--- a/content/renderer/media/media_stream_video_capture_source_unittest.cc
+++ b/content/renderer/media/media_stream_video_capture_source_unittest.cc
@@ -104,7 +104,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();
@@ -119,7 +120,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();
« no previous file with comments | « content/common/media/video_capture_messages.h ('k') | content/renderer/media/media_stream_video_capturer_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698