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

Side by Side Diff: remoting/webapp/browser_test/mock_signal_strategy.js

Issue 593313003: Implement basic mocks for testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer feedback. Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « remoting/webapp/browser_test/mock_session_connector.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 };
OLDNEW
« no previous file with comments | « remoting/webapp/browser_test/mock_session_connector.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698