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

Unified Diff: remoting/webapp/js_proto/sinon_proto.js

Issue 1065733004: Added partial unit tests for host_controller.js. More to come. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hdf-unittest
Patch Set: added licenses to satisfy presubmit Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/webapp/crd/js/mock_xhr_unittest.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/js_proto/sinon_proto.js
diff --git a/remoting/webapp/js_proto/sinon_proto.js b/remoting/webapp/js_proto/sinon_proto.js
index c0aac4c8c45d4d3499a1c1df872d1fbf2688d31b..827d38d15592cf8d00f3ef46e99d09bd715b3091 100644
--- a/remoting/webapp/js_proto/sinon_proto.js
+++ b/remoting/webapp/js_proto/sinon_proto.js
@@ -61,6 +61,11 @@ sinon.Mock = function() {};
*/
sinon.Mock.prototype.expects = function(method) {};
+/**
+ * @return {void}
+ */
+sinon.Mock.prototype.restore = function() {};
+
/** @type {function(...):Function} */
sinon.spy = function() {};
@@ -103,12 +108,12 @@ sinon.Spy.prototype.restore = function() {};
sinon.Spy.prototype.args;
/**
- * @param {Object} obj
- * @param {string} method
+ * @param {Object=} opt_obj
+ * @param {string=} opt_method
* @param {Function=} opt_stubFunction
* @return {sinon.TestStub}
*/
-sinon.stub = function(obj, method, opt_stubFunction) {};
+sinon.stub = function(opt_obj, opt_method, opt_stubFunction) {};
/**
* TODO(jrw): rename to |sinon.Stub| for consistency
@@ -131,6 +136,9 @@ sinon.TestStub.prototype.withArgs = function() {};
/** @type {function(...):sinon.Expectation} */
sinon.TestStub.prototype.onFirstCall = function() {};
+/** @type {function(...):sinon.Expectation} */
+sinon.TestStub.prototype.callsArgWith = function() {};
+
/** @returns {Object} */
sinon.createStubInstance = function (/** * */ constructor) {};
« no previous file with comments | « remoting/webapp/crd/js/mock_xhr_unittest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698