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

Side by Side Diff: remoting/webapp/js_proto/sinon_proto.js

Issue 944183002: HostTableEntry refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Jamie's feedback Created 5 years, 9 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/js_proto/qunit_proto.js ('k') | remoting/webapp/js_proto/sinon_stub_proto.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var sinon = sinon || {}; 5 var sinon = sinon || {};
6 6
7 /** @type {Object} */ 7 /** @type {Object} */
8 sinon.assert = {}; 8 sinon.assert = {};
9 9
10 /** 10 /**
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 sinon.Spy.prototype.calledWith = function() {}; 87 sinon.Spy.prototype.calledWith = function() {};
88 88
89 /** @type {function(number):{args:Array}} */ 89 /** @type {function(number):{args:Array}} */
90 sinon.Spy.prototype.getCall = function(index) {}; 90 sinon.Spy.prototype.getCall = function(index) {};
91 91
92 sinon.Spy.prototype.reset = function() {}; 92 sinon.Spy.prototype.reset = function() {};
93 93
94 /** 94 /**
95 * @param {Object} obj 95 * @param {Object} obj
96 * @param {string} method 96 * @param {string} method
97 * @param {Function=} opt_stubFunction
97 * @return {sinon.TestStub} 98 * @return {sinon.TestStub}
98 */ 99 */
99 sinon.stub = function(obj, method) {}; 100 sinon.stub = function(obj, method, opt_stubFunction) {};
100 101
101 /** @constructor */ 102 /** @constructor */
102 sinon.TestStub = function() {}; 103 sinon.TestStub = function() {};
103 104
104 /** @type {function(number):{args:Array}} */ 105 /** @type {function(number):{args:Array}} */
105 sinon.TestStub.prototype.getCall = function(index) {}; 106 sinon.TestStub.prototype.getCall = function(index) {};
106 107
107 sinon.TestStub.prototype.restore = function() {}; 108 sinon.TestStub.prototype.restore = function() {};
108 109
109 /** @param {*} a */ 110 /** @param {*} a */
110 sinon.TestStub.prototype.returns = function(a) {}; 111 sinon.TestStub.prototype.returns = function(a) {};
111 112
112 /** @type {function(string, (string|Array<string>)=):sinon.Expectation} */ 113 /** @type {function(string, (string|Array<string>)=):sinon.Expectation} */
113 sinon.TestStub.prototype.withArgs = function(messageName, opt_args) {}; 114 sinon.TestStub.prototype.withArgs = function(messageName, opt_args) {};
OLDNEW
« no previous file with comments | « remoting/webapp/js_proto/qunit_proto.js ('k') | remoting/webapp/js_proto/sinon_stub_proto.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698