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

Unified Diff: webrtc/tools/rtcbot/test/simple_offer_answer.js

Issue 2965593002: Move webrtc/{tools => rtc_tools} (Closed)
Patch Set: Adding back root changes Created 3 years, 6 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 | « webrtc/tools/rtcbot/test/ping_pong.js ('k') | webrtc/tools/rtcbot/test/three_bots_video_conference.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/tools/rtcbot/test/simple_offer_answer.js
diff --git a/webrtc/tools/rtcbot/test/simple_offer_answer.js b/webrtc/tools/rtcbot/test/simple_offer_answer.js
deleted file mode 100644
index 888662a0de03e53e889f4b6c7895630b302a64d6..0000000000000000000000000000000000000000
--- a/webrtc/tools/rtcbot/test/simple_offer_answer.js
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
-//
-// Use of this source code is governed by a BSD-style license
-// that can be found in the LICENSE file in the root of the source
-// tree. An additional intellectual property rights grant can be found
-// in the file PATENTS. All contributing project authors may
-// be found in the AUTHORS file in the root of the source tree.
-//
-// Test that offer/answer between 2 peers completes successfully.
-//
-// Note: This test does not performs ice candidate exchange and
-// does not verifies that media can flow between the peers.
-function testOfferAnswer(test, bot1, bot2) {
- test.wait( [ bot1.createPeerConnection.bind(bot1, null),
- bot2.createPeerConnection.bind(bot2, null) ],
- run);
-
- function run(pc1, pc2) {
- test.log("Establishing call.");
- pc1.createOffer(gotOffer);
-
- function gotOffer(offer) {
- test.log("Got offer");
- expectedCall();
- pc1.setLocalDescription(offer, expectedCall, test.fail);
- pc2.setRemoteDescription(offer, expectedCall, test.fail);
- pc2.createAnswer(gotAnswer, test.fail);
- }
-
- function gotAnswer(answer) {
- test.log("Got answer");
- expectedCall();
- pc2.setLocalDescription(answer, expectedCall, test.fail);
- pc1.setRemoteDescription(answer, expectedCall, test.fail);
- }
-
- // TODO(andresp): Implement utilities in test to write expectations
- // that certain methods must be called.
- var expectedCalls = 0;
- function expectedCall() {
- if (++expectedCalls == 6)
- test.done();
- }
- }
-}
-
-registerBotTest('testOfferAnswer/chrome-chrome',
- testOfferAnswer, ['chrome', 'chrome']);
« no previous file with comments | « webrtc/tools/rtcbot/test/ping_pong.js ('k') | webrtc/tools/rtcbot/test/three_bots_video_conference.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698