Bug 1358030 - add mochitest for webrtc android remote h/w encoder. r=jib

MozReview-Commit-ID: JCtWTNg89io

--HG--
extra : rebase_source : 8cd05b1b1fa270bf0fb9dbee9b899ee24d4b0d69
This commit is contained in:
Munro Mengjue Chiang 2017-04-20 14:54:55 +08:00
Родитель 88f32a873b
Коммит 699799aeb9
2 изменённых файлов: 33 добавлений и 0 удалений

Просмотреть файл

@ -120,6 +120,8 @@ skip-if = android_version == '18' # android(Bug 1189784, timeouts on 4.3 emulato
skip-if = android_version == '18' # android(Bug 1189784, timeouts on 4.3 emulator)
[test_peerConnection_basicVideo.html]
skip-if = (android_version == '18' && debug) # android(Bug 1189784, timeouts on 4.3 emulator)
[test_peerConnection_basicVideoRemoteHwEncoder.html]
skip-if = os == 'linux' || os == 'mac' || os == 'win' || (android_version == '18' && debug) # android-specific feature. android(Bug 1189784, timeouts on 4.3 emulator)
[test_peerConnection_basicScreenshare.html]
# frequent timeouts/crashes on e10s (bug 1048455)
skip-if = toolkit == 'android' # no screenshare on android

Просмотреть файл

@ -0,0 +1,31 @@
<!DOCTYPE HTML>
<html>
<head>
<script type="application/javascript" src="pc.js"></script>
</head>
<body>
<pre id="test">
<script type="application/javascript">
createHTML({
bug: "1265755",
title: "Basic video peer connection with android oop hw encoder"
});
runNetworkTest(options => {
SpecialPowers.pushPrefEnv(
{
set: [
['media.navigator.hardware.vp8_encode.acceleration_enabled', true],
['media.navigator.hardware.vp8_encode.acceleration_remote_enabled', true]
]
}, function (options = {}) {
var test = new PeerConnectionTest(options);
test.setMediaConstraints([{video: true}],
[{video: true}]);
test.run();
})
});
</script>
</pre>
</body>
</html>