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

Unified Diff: content/test/data/media/webrtc_test_utilities.js

Issue 120773003: Ported media stream track enable-disable test to content module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed perkj's comments Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/test/data/media/webrtc_test_utilities.js
diff --git a/content/test/data/media/webrtc_test_utilities.js b/content/test/data/media/webrtc_test_utilities.js
index 1377ca8c1ba2ce106dfdce90b62636bc94ca3df3..249a9708d1fe9855bc7d90bee2e831207033c634 100644
--- a/content/test/data/media/webrtc_test_utilities.js
+++ b/content/test/data/media/webrtc_test_utilities.js
@@ -70,12 +70,11 @@ function waitForVideoToStop(videoElement) {
detectVideoStopped(videoElement, function () { eventOccured(); });
}
-function waitForConnectionToStabilize(peerConnection) {
- addExpectedEvent();
+function waitForConnectionToStabilize(peerConnection, callback) {
var waitForStabilization = setInterval(function() {
if (peerConnection.signalingState == 'stable') {
clearInterval(waitForStabilization);
- eventOccured();
+ callback();
}
}, 100);
}

Powered by Google App Engine
This is Rietveld 408576698