Bug 1358030 - add mochitest for webrtc android remote h/w encoder. r=jib
authorMunro Mengjue Chiang <mchiang@mozilla.com>
Thu, 20 Apr 2017 14:54:55 +0800
changeset 354730 378e200f70a3af9492a15d635b46bacf77f9a2bb
parent 354729 ed2ef133403513de47831e1bb410b96195a55321
child 354731 3b620c26083c9e6454a2fa85d518e7fb2680c932
push id31711
push usercbook@mozilla.com
push dateTue, 25 Apr 2017 09:24:00 +0000
treeherdermozilla-central@a30dc237c3a6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjib
bugs1358030
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1358030 - add mochitest for webrtc android remote h/w encoder. r=jib MozReview-Commit-ID: JCtWTNg89io
dom/media/tests/mochitest/mochitest.ini
dom/media/tests/mochitest/test_peerConnection_basicVideoRemoteHwEncoder.html
--- a/dom/media/tests/mochitest/mochitest.ini
+++ b/dom/media/tests/mochitest/mochitest.ini
@@ -115,16 +115,18 @@ skip-if = toolkit == 'android'  # Bug 11
 [test_peerConnection_basicAudioVideoNoBundle.html]
 skip-if = (android_version == '18') # android(Bug 1189784, timeouts on 4.3 emulator)
 [test_peerConnection_basicAudioVideoNoBundleNoRtcpMux.html]
 skip-if = android_version == '18' # android(Bug 1189784, timeouts on 4.3 emulator)
 [test_peerConnection_basicAudioVideoNoRtcpMux.html]
 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
 [test_peerConnection_basicWindowshare.html]
 # frequent timeouts/crashes on e10s (bug 1048455)
 skip-if = toolkit == 'android' # no screenshare on android
 [test_peerConnection_basicH264Video.html]
 skip-if = toolkit == 'android' # Bug 1043403, Bug 1355786, Bug 1149374
new file mode 100644
--- /dev/null
+++ b/dom/media/tests/mochitest/test_peerConnection_basicVideoRemoteHwEncoder.html
@@ -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>