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

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

Issue 15688006: Made sure empty-call-then-add-one-stream test doesn't do simultaneous negotiations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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 | « content/test/data/media/peerconnection-call.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dae549fe3512fac3fb672c32d49624af2dc9f9b3..61472d19be07fa9e6cf8385f901707daaafb9d5a 100644
--- a/content/test/data/media/webrtc_test_utilities.js
+++ b/content/test/data/media/webrtc_test_utilities.js
@@ -44,6 +44,16 @@ function waitForVideo(videoElement) {
detectVideoIn(videoElement, function () { eventOccured(); });
}
+function waitForConnectionToStabilize(peerConnection) {
+ addExpectedEvent();
+ var waitForStabilization = setInterval(function() {
+ if (peerConnection.signalingState == 'stable') {
+ clearInterval(waitForStabilization);
+ eventOccured();
+ }
+ }, 100);
+}
+
function addExpectedEvent() {
++gNumberOfExpectedEvents;
}
« no previous file with comments | « content/test/data/media/peerconnection-call.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698