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

Unified Diff: content/renderer/media/webrtc/webrtc_video_capturer_adapter_unittest.cc

Issue 2785683002: Add workaround for type change in webrtc api. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc/webrtc_video_capturer_adapter_unittest.cc
diff --git a/content/renderer/media/webrtc/webrtc_video_capturer_adapter_unittest.cc b/content/renderer/media/webrtc/webrtc_video_capturer_adapter_unittest.cc
index 30e0125c40f634fa245f98f9b0bb6a5a29f78194..936506459e041b03c1ce58edf6ec10bdb4721ef2 100644
--- a/content/renderer/media/webrtc/webrtc_video_capturer_adapter_unittest.cc
+++ b/content/renderer/media/webrtc/webrtc_video_capturer_adapter_unittest.cc
@@ -105,7 +105,10 @@ class WebRtcVideoCapturerAdapterTest
// Request smaller scale to make sure scaling normally kicks in.
rtc::VideoSinkWants wants;
- wants.max_pixel_count = rtc::Optional<int>(kInputWidth * kInputHeight / 2);
+ // TODO(sprang): Remove this type hack when webrtc has updated the sink
+ // wants api. https://codereview.webrtc.org/2781433002/
+ using MaxPixelCountType = decltype(wants.max_pixel_count);
+ wants.max_pixel_count = MaxPixelCountType(kInputWidth * kInputHeight / 2);
adapter_->AddOrUpdateSink(this, wants);
adapter_->OnFrameCaptured(frame);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698