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

Unified Diff: remoting/webapp/unittests/sinon_helpers.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, 10 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/unittests/host_table_entry_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/unittests/sinon_helpers.js
diff --git a/remoting/webapp/unittests/sinon_helpers.js b/remoting/webapp/unittests/sinon_helpers.js
index 763a9391f370cab96d5c1f987fa67c55ab112ba6..1524b4077ffa1eb18477ef58c6c3ba20507045ad 100644
--- a/remoting/webapp/unittests/sinon_helpers.js
+++ b/remoting/webapp/unittests/sinon_helpers.js
@@ -9,11 +9,12 @@ sinonHelpers.reset = function() {
/**
* @param {Object} obj
* @param {string} method
+ * @param {Function=} opt_stubFunction
* @return {sinon.TestStub}
* @suppress {reportUnknownTypes}
*/
-sinon.$setupStub = function(obj, method) {
- sinon.stub(obj, method);
+sinon.$setupStub = function(obj, method, opt_stubFunction) {
+ sinon.stub(obj, method, opt_stubFunction);
obj[method].$testStub = /** @type {sinon.TestStub} */ (obj[method]);
return obj[method].$testStub;
};
« no previous file with comments | « remoting/webapp/unittests/host_table_entry_unittest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698