| 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 6cf1ab3e2d94f3b1360a6fa11165757c138fc090..b732de460dc71b8fd436a89fb9b541d97dd72244 100644
|
| --- a/remoting/webapp/js_proto/sinon_proto.js
|
| +++ b/remoting/webapp/js_proto/sinon_proto.js
|
| @@ -91,6 +91,60 @@ sinon.Spy.prototype.getCall = function(index) {};
|
|
|
| sinon.Spy.prototype.reset = function() {};
|
|
|
| +sinon.fakeServer = {};
|
| +
|
| +/** @return {sinon.FakeXhr} */
|
| +sinon.useFakeXMLHttpRequest = function() {};
|
| +
|
| +/** @interface */
|
| +sinon.FakeXhr = function() {};
|
| +
|
| +/** @type {string} */
|
| +sinon.FakeXhr.prototype.method;
|
| +
|
| +/** @type {string} */
|
| +sinon.FakeXhr.prototype.url;
|
| +
|
| +/** @type {boolean} */
|
| +sinon.FakeXhr.prototype.withCredentials;
|
| +
|
| +/** @type {?string} */
|
| +sinon.FakeXhr.prototype.requestBody;
|
| +
|
| +/** @type {!Object<string,string>} */
|
| +sinon.FakeXhr.prototype.requestHeaders;
|
| +
|
| +/**
|
| + * @param {number} status
|
| + * @param {!Object<string,string>} headers
|
| + * @param {?string} content
|
| + */
|
| +sinon.FakeXhr.prototype.respond;
|
| +
|
| +/**
|
| + * @type {?function(!sinon.FakeXhr)}
|
| + */
|
| +sinon.FakeXhr.prototype.onCreate;
|
| +
|
| +/** @return {sinon.FakeServer} */
|
| +sinon.fakeServer.create = function() {};
|
| +
|
| +/** @interface */
|
| +sinon.FakeServer = function() {};
|
| +
|
| +/**
|
| + * @param {*} a
|
| + * @param {*=} opt_b
|
| + * @param {*=} opt_c
|
| + * @return {void}
|
| + */
|
| +sinon.FakeServer.prototype.respondWith = function(a, opt_b, opt_c) {};
|
| +
|
| +/**
|
| + * @return {void}
|
| + */
|
| +sinon.FakeServer.prototype.respond = function() {};
|
| +
|
| /**
|
| * @param {Object} obj
|
| * @param {string} method
|
|
|