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

Side by Side Diff: content/browser/media/webrtc_media_recorder_browsertest.cc

Issue 1578973002: MediaRecorder: fire onError if the amount of tracks of the MediaStream varies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: peter@ comments Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/test/data/media/mediarecorder_test.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/macros.h" 6 #include "base/macros.h"
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "content/public/common/content_switches.h" 8 #include "content/public/common/content_switches.h"
9 #include "content/public/test/browser_test_utils.h" 9 #include "content/public/test/browser_test_utils.h"
10 #include "content/public/test/content_browser_test_utils.h" 10 #include "content/public/test/content_browser_test_utils.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 MediaRecorderStartWithTimeSlice) { 69 MediaRecorderStartWithTimeSlice) {
70 MakeTypicalCall("testStartWithTimeSlice();", kMediaRecorderHtmlFile); 70 MakeTypicalCall("testStartWithTimeSlice();", kMediaRecorderHtmlFile);
71 } 71 }
72 72
73 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest, MediaRecorderResume) { 73 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest, MediaRecorderResume) {
74 MakeTypicalCall("testResumeAndRecorderState();", kMediaRecorderHtmlFile); 74 MakeTypicalCall("testResumeAndRecorderState();", kMediaRecorderHtmlFile);
75 } 75 }
76 76
77 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest, 77 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest,
78 MediaRecorderNoResumeWhenRecorderInactive) { 78 MediaRecorderNoResumeWhenRecorderInactive) {
79 MakeTypicalCall("testIllegalResumeThrowsDOMError();", 79 MakeTypicalCall("testIllegalResumeThrowsDOMError();", kMediaRecorderHtmlFile);
80 kMediaRecorderHtmlFile);
81 } 80 }
82 81
83 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest, 82 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest,
84 MediaRecorderResumeAndDataAvailable) { 83 MediaRecorderResumeAndDataAvailable) {
85 MakeTypicalCall("testResumeAndDataAvailable();", kMediaRecorderHtmlFile); 84 MakeTypicalCall("testResumeAndDataAvailable();", kMediaRecorderHtmlFile);
86 } 85 }
87 86
88 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest, 87 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest,
89 MediaRecorderPause) { 88 MediaRecorderPause) {
90 MakeTypicalCall("testPauseAndRecorderState();", kMediaRecorderHtmlFile); 89 MakeTypicalCall("testPauseAndRecorderState();", kMediaRecorderHtmlFile);
91 } 90 }
92 91
93 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest, 92 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest,
94 MediaRecorderPauseStop) { 93 MediaRecorderPauseStop) {
95 MakeTypicalCall("testPauseStopAndRecorderState();", kMediaRecorderHtmlFile); 94 MakeTypicalCall("testPauseStopAndRecorderState();", kMediaRecorderHtmlFile);
96 } 95 }
97 96
98 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest, 97 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest,
99 MediaRecorderPausePreventsDataavailableFromBeingFired) { 98 MediaRecorderPausePreventsDataavailableFromBeingFired) {
100 MakeTypicalCall("testPausePreventsDataavailableFromBeingFired();", 99 MakeTypicalCall("testPausePreventsDataavailableFromBeingFired();",
101 kMediaRecorderHtmlFile); 100 kMediaRecorderHtmlFile);
102 } 101 }
103 102
104 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest, 103 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest,
105 MediaRecorderIllegalPauseThrowsDOMError) { 104 MediaRecorderIllegalPauseThrowsDOMError) {
106 MakeTypicalCall("testIllegalPauseThrowsDOMError();", kMediaRecorderHtmlFile); 105 MakeTypicalCall("testIllegalPauseThrowsDOMError();", kMediaRecorderHtmlFile);
107 } 106 }
108 107
109 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest, 108 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest,
110 MediaRecorderTwoChannelAudioRecording) { 109 MediaRecorderTwoChannelAudioRecording) {
111 MakeTypicalCall("testTwoChannelAudio();", kMediaRecorderHtmlFile); 110 MakeTypicalCall("testTwoChannelAudio();", kMediaRecorderHtmlFile);
112 } 111 }
113 112
114 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest, 113 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest,
115 MediaRecorderIllegalStopThrowsDOMError) { 114 MediaRecorderIllegalStopThrowsDOMError) {
116 MakeTypicalCall("testIllegalStopThrowsDOMError();", 115 MakeTypicalCall("testIllegalStopThrowsDOMError();", kMediaRecorderHtmlFile);
117 kMediaRecorderHtmlFile);
118 } 116 }
119 117
120 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest, 118 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest,
121 MediaRecorderIllegalStartWhileRecordingThrowsDOMError) { 119 MediaRecorderIllegalStartWhileRecordingThrowsDOMError) {
122 MakeTypicalCall("testIllegalStartInRecordingStateThrowsDOMError();", 120 MakeTypicalCall("testIllegalStartInRecordingStateThrowsDOMError();",
123 kMediaRecorderHtmlFile); 121 kMediaRecorderHtmlFile);
124 } 122 }
125 123
126 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest, 124 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest,
127 MediaRecorderIllegalStartWhilePausedThrowsDOMError) { 125 MediaRecorderIllegalStartWhilePausedThrowsDOMError) {
128 MakeTypicalCall("testIllegalStartInPausedStateThrowsDOMError();", 126 MakeTypicalCall("testIllegalStartInPausedStateThrowsDOMError();",
129 kMediaRecorderHtmlFile); 127 kMediaRecorderHtmlFile);
130 } 128 }
131 129
132 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest, 130 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest,
133 MediaRecorderIllegalRequestDataThrowsDOMError) { 131 MediaRecorderIllegalRequestDataThrowsDOMError) {
134 MakeTypicalCall("testIllegalRequestDataThrowsDOMError();", 132 MakeTypicalCall("testIllegalRequestDataThrowsDOMError();",
135 kMediaRecorderHtmlFile); 133 kMediaRecorderHtmlFile);
136 } 134 }
137 135
138 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest, 136 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest,
139 MediaRecorderPeerConnection) { 137 MediaRecorderPeerConnection) {
140 MakeTypicalCall("testRecordRemotePeerConnection();", kMediaRecorderHtmlFile); 138 MakeTypicalCall("testRecordRemotePeerConnection();", kMediaRecorderHtmlFile);
141 } 139 }
142 140
141 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest,
142 AddingTrackToMediaStreamFiresErrorEvent) {
143 MakeTypicalCall("testAddingTrackToMediaStreamFiresErrorEvent();",
144 kMediaRecorderHtmlFile);
145 }
146
147 IN_PROC_BROWSER_TEST_F(MAYBE_WebRtcMediaRecorderTest,
148 RemovingTrackFromMediaStreamFiresErrorEvent) {
149 MakeTypicalCall("testRemovingTrackFromMediaStreamFiresErrorEvent();",
150 kMediaRecorderHtmlFile);
151 }
152
143 } // namespace content 153 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/test/data/media/mediarecorder_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698