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

Unified Diff: content/renderer/media_capture_from_element/html_video_element_capturer_source_unittest.cc

Issue 2964923002: Remove unused VideoCapturerSource::GetCurrentSupportedFormats(). (Closed)
Patch Set: rebase Created 3 years, 5 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_capture_from_element/html_video_element_capturer_source_unittest.cc
diff --git a/content/renderer/media_capture_from_element/html_video_element_capturer_source_unittest.cc b/content/renderer/media_capture_from_element/html_video_element_capturer_source_unittest.cc
index 8f2ffa07a7f3b5e0bb074d69f7e66096c58c1c3d..95e73fdd85eb6b7451d68a81bf0f3fe9e82b83dd 100644
--- a/content/renderer/media_capture_from_element/html_video_element_capturer_source_unittest.cc
+++ b/content/renderer/media_capture_from_element/html_video_element_capturer_source_unittest.cc
@@ -99,12 +99,6 @@ class HTMLVideoElementCapturerSourceTest : public testing::Test {
DoOnDeliverFrame(video_frame, estimated_capture_time);
}
- MOCK_METHOD1(DoOnVideoCaptureDeviceFormats,
- void(const media::VideoCaptureFormats&));
- void OnVideoCaptureDeviceFormats(const media::VideoCaptureFormats& formats) {
- DoOnVideoCaptureDeviceFormats(formats);
- }
-
MOCK_METHOD1(DoOnRunning, void(bool));
void OnRunning(bool state) { DoOnRunning(state); }
@@ -126,18 +120,8 @@ TEST_F(HTMLVideoElementCapturerSourceTest, ConstructAndDestruct) {}
// frames.
TEST_F(HTMLVideoElementCapturerSourceTest, GetFormatsAndStartAndStop) {
InSequence s;
- media::VideoCaptureFormats formats;
- EXPECT_CALL(*this, DoOnVideoCaptureDeviceFormats(_))
- .Times(1)
- .WillOnce(SaveArg<0>(&formats));
-
- html_video_capturer_->GetCurrentSupportedFormats(
- media::limits::kMaxCanvas /* max_requesteed_width */,
- media::limits::kMaxCanvas /* max_requesteed_height */,
- media::limits::kMaxFramesPerSecond /* max_requested_frame_rate */,
- base::Bind(
- &HTMLVideoElementCapturerSourceTest::OnVideoCaptureDeviceFormats,
- base::Unretained(this)));
+ media::VideoCaptureFormats formats =
+ html_video_capturer_->GetPreferredFormats();
ASSERT_EQ(1u, formats.size());
EXPECT_EQ(web_media_player_->NaturalSize().width,
formats[0].frame_size.width());
« no previous file with comments | « content/renderer/media_capture_from_element/canvas_capture_handler_unittest.cc ('k') | media/capture/video_capturer_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698