houssainy@google.com c77e4d6aef - Adding AndroidDeviceManager to botManager.js to help in selecting devices, in case running test on Android devices.
- Select BotType using nodeJs terminal command.

- ping_pong.js test added.

R=andresp@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/19159004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7099 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-09-08 10:36:11 +00:00

20 lines
629 B
JavaScript

// 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.
//
function testPingPong(bot) {
test.log('bot:alice > Sending Ping to bot');
bot.ping(gotAnswer);
function gotAnswer(answer) {
test.log('bot > ' + answer);
test.done();
}
}
test.spawnBot("alice", testPingPong);