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