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

Unified Diff: chrome/test/data/webrtc/peerconnection.js

Issue 934793002: Made WebRTC AQ test two-way, adjusted volume on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@threading_fake_device
Patch Set: Also re-enabling test on mac (since this patch fixes that test) Created 5 years, 10 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 | « chrome/browser/media/chrome_webrtc_audio_quality_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webrtc/peerconnection.js
diff --git a/chrome/test/data/webrtc/peerconnection.js b/chrome/test/data/webrtc/peerconnection.js
index 78d63cff84cbcdc54b7d7b667c6abdc3d8040abb..68ff1ac9f135462202109802fe173dbdc55ae708 100644
--- a/chrome/test/data/webrtc/peerconnection.js
+++ b/chrome/test/data/webrtc/peerconnection.js
@@ -209,6 +209,22 @@ function receiveIceCandidates(iceCandidatesJson) {
}
/**
+ * Sets the mute state of the selected media element.
+ *
+ * Returns ok-muted on success.
+ *
+ * @param elementId The id of the element to mute.
+ * @param muted The mute state to set.
+ */
+function setMediaElementMuted(elementId, muted) {
+ var element = document.getElementById(elementId);
+ if (!element)
+ throw failTest('Cannot mute ' + elementId + '; does not exist.');
+ element.muted = muted;
+ returnToTest('ok-muted');
+}
+
+/**
* Returns
*/
function hasSeenCryptoInSdp() {
« no previous file with comments | « chrome/browser/media/chrome_webrtc_audio_quality_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698