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

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

Issue 1395553003: Remove stun server in webrtc peerconnection.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | 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 00c0306535b757f5f7c578267ea18e382940bd78..578718802d0b57aadf4a2d9f27d57087727da521 100644
--- a/chrome/test/data/webrtc/peerconnection.js
+++ b/chrome/test/data/webrtc/peerconnection.js
@@ -5,12 +5,6 @@
*/
/**
- * We need a STUN server for some API calls.
- * @private
- */
-var STUN_SERVER = 'stun.l.google.com:19302';
-
-/**
* The one and only peer connection in this page.
* @private
*/
@@ -40,7 +34,7 @@ function preparePeerConnection() {
if (gPeerConnection != null)
throw failTest('creating peer connection, but we already have one.');
- gPeerConnection = createPeerConnection_(STUN_SERVER);
+ gPeerConnection = createPeerConnection_();
returnToTest('ok-peerconnection-created');
}
@@ -234,10 +228,9 @@ function hasSeenCryptoInSdp() {
// Internals.
/** @private */
-function createPeerConnection_(stun_server) {
- servers = {iceServers: [{url: 'stun:' + stun_server}]};
+function createPeerConnection_() {
try {
- peerConnection = new RTCPeerConnection(servers, {});
+ peerConnection = new RTCPeerConnection(null, {});
} catch (exception) {
throw failTest('Failed to create peer connection: ' + exception);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698