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

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

Issue 1892673002: VideoTrackRecorder: add support for more codecs on construction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: emircan@ nits Created 4 years, 8 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 | « content/renderer/media/video_track_recorder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_track_recorder_unittest.cc
diff --git a/content/renderer/media/video_track_recorder_unittest.cc b/content/renderer/media/video_track_recorder_unittest.cc
index 12ed36c710c6bd88a4dd62de9fca69d4b84e25f5..2892df4cdeced2b46e40f52504021a6bb36454ee 100644
--- a/content/renderer/media/video_track_recorder_unittest.cc
+++ b/content/renderer/media/video_track_recorder_unittest.cc
@@ -40,9 +40,11 @@ ACTION_P(RunClosure, closure) {
closure.Run();
}
-const bool kTrackRecorderTestUseVp9OrNot[] = {false, true};
+const VideoTrackRecorder::CodecId kTrackRecorderTestCodec[] = {
+ VideoTrackRecorder::CodecId::VP8, VideoTrackRecorder::CodecId::VP9};
-class VideoTrackRecorderTest : public TestWithParam<bool> {
+class VideoTrackRecorderTest
+ : public TestWithParam<VideoTrackRecorder::CodecId> {
public:
VideoTrackRecorderTest()
: mock_source_(new MockMediaStreamVideoSource(false)) {
@@ -61,7 +63,7 @@ class VideoTrackRecorderTest : public TestWithParam<bool> {
blink_track_.setExtraData(track_);
video_track_recorder_.reset(new VideoTrackRecorder(
- GetParam() /* use_vp9 */, blink_track_,
+ GetParam() /* codec */, blink_track_,
base::Bind(&VideoTrackRecorderTest::OnEncodedVideo,
base::Unretained(this)),
0 /* bits_per_second */));
@@ -173,6 +175,6 @@ TEST_P(VideoTrackRecorderTest, VideoEncoding) {
INSTANTIATE_TEST_CASE_P(,
VideoTrackRecorderTest,
- ValuesIn(kTrackRecorderTestUseVp9OrNot));
+ ValuesIn(kTrackRecorderTestCodec));
} // namespace content
« no previous file with comments | « content/renderer/media/video_track_recorder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698