OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * @fileoverview |
| 7 * @suppress {checkTypes} |
| 8 */ |
| 9 |
| 10 'use strict'; |
| 11 |
| 12 /** @suppress {duplicate} */ |
| 13 var remoting = remoting || {}; |
| 14 |
| 15 /** |
| 16 * @constructor |
| 17 * @implements {remoting.SignalStrategy} |
| 18 */ |
| 19 remoting.MockSignalStrategy = function() {}; |
| 20 |
| 21 remoting.MockSignalStrategy.prototype.dispose = function() {}; |
| 22 |
| 23 remoting.MockSignalStrategy.prototype.setIncomingStanzaCallback = |
| 24 function(onIncomingStanzaCallback) {}; |
| 25 |
| 26 remoting.MockSignalStrategy.prototype.connect = |
| 27 function(server, username, authToken) {}; |
| 28 |
| 29 remoting.MockSignalStrategy.prototype.sendMessage = function(message) {}; |
| 30 |
| 31 remoting.MockSignalStrategy.prototype.getState = function() { |
| 32 return remoting.SignalStrategy.State.CONNECTED; |
| 33 }; |
| 34 |
| 35 remoting.MockSignalStrategy.prototype.getError = function() { |
| 36 return remoting.Error.NONE; |
| 37 }; |
| 38 |
| 39 remoting.MockSignalStrategy.prototype.getJid = function() { |
| 40 return ''; |
| 41 }; |
OLD | NEW |