| Index: chrome/test/data/extensions/api_test/desktop_capture/test.js
|
| diff --git a/chrome/test/data/extensions/api_test/desktop_capture/test.js b/chrome/test/data/extensions/api_test/desktop_capture/test.js
|
| index bdf3131048a12721601097d02ba957c1cfdbf0f5..8349380973b1646424519cd1e42b22123b05bc81 100644
|
| --- a/chrome/test/data/extensions/api_test/desktop_capture/test.js
|
| +++ b/chrome/test/data/extensions/api_test/desktop_capture/test.js
|
| @@ -123,27 +123,9 @@ chrome.test.runTests([
|
| chrome.test.succeed();
|
| },
|
|
|
| - // For the following six, they all request audio track. Based on user's
|
| - // permission and the source type, it may or may not actually get the audio
|
| - // track.
|
| - // In detail:
|
| - // 1. We cannot support audio for Window share;
|
| - // 2. We can support audio for Tab share;
|
| - // 3. We can support audio for Screen share on Windows;
|
| - // 4. We can support audio for Screen Share on ChromeOS if USE_CRAS is on;
|
| - // 5. To actually get audio track, user permission is always necessary;
|
| - // 6. To actually get audio track, getUserMedia() should set audio
|
| - // constraint.
|
| - function tabShareWithAudioPermissionGetStream() {
|
| - chrome.desktopCapture.chooseDesktopMedia(
|
| - ["tab", "audio"], onPickerResult.bind(undefined, 1));
|
| - },
|
| -
|
| - function windowShareWithAudioPermissionGetStream() {
|
| - chrome.desktopCapture.chooseDesktopMedia(
|
| - ["window", "audio"], onPickerResult.bind(undefined, 0));
|
| - },
|
| -
|
| + // Only screenShare can be tested as below, because "chooseDesktopMedia" will
|
| + // return fake source id to tab/windowShare, with which tab/window catpure
|
| + // can't be started successfully.
|
| function screenShareWithAudioPermissionGetStream() {
|
| chrome.desktopCapture.chooseDesktopMedia(
|
| ["screen", "audio"],
|
| @@ -151,16 +133,6 @@ chrome.test.runTests([
|
| expected_audio_tracks_for_screen_share));
|
| },
|
|
|
| - function tabShareWithoutAudioPermissionGetStream() {
|
| - chrome.desktopCapture.chooseDesktopMedia(
|
| - ["tab", "audio"], onPickerResult.bind(undefined, 0));
|
| - },
|
| -
|
| - function windowShareWithoutAudioPermissionGetStream() {
|
| - chrome.desktopCapture.chooseDesktopMedia(
|
| - ["window", "audio"], onPickerResult.bind(undefined, 0));
|
| - },
|
| -
|
| function screenShareWithoutAudioPermissionGetStream() {
|
| chrome.desktopCapture.chooseDesktopMedia(
|
| ["screen", "audio"], onPickerResult.bind(undefined, 0));
|
|
|