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

Unified Diff: content/test/data/media/peerconnection-call.html

Issue 2764843002: Hangup call in WebRtcAudioDebugRecordingsBrowserTest. (Closed)
Patch Set: Created 3 years, 9 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/browser/webrtc/webrtc_audio_debug_recordings_browsertest.cc ('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/peerconnection-call.html
diff --git a/content/test/data/media/peerconnection-call.html b/content/test/data/media/peerconnection-call.html
index a05ae313607ea1f1fab9e75649cb41533d702457..22a155da0661c309ed8d842ea1e15c3eb6795667 100644
--- a/content/test/data/media/peerconnection-call.html
+++ b/content/test/data/media/peerconnection-call.html
@@ -33,6 +33,21 @@
waitForVideo('remote-view-2');
}
+ // Hang up a call.
+ function hangup() {
+ gFirstConnection.close();
+ gSecondConnection.close();
+ gFirstConnection = null;
+ gSecondConnection = null;
+
+ gLocalStream.getTracks().forEach(function(track) {
+ track.stop();
+ });
+ gLocalStream = null;
+
+ sendValueToTest('OK');
+ }
+
// Test that we can setup a call with a video track and that the remote peer
// receives black frames if the local video track is disabled.
function callAndDisableLocalVideo(constraints) {
« no previous file with comments | « content/browser/webrtc/webrtc_audio_debug_recordings_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698