VulpesOS/gaia/apps/system/test/unit/mock_download_helper.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

26 lines
427 B
JavaScript
Executable file

'use strict';
/* exported MockDownloadHelper */
var MockDownloadHelper = {
open: function() {
this.methodCalled = 'open';
return {};
},
remove: function() {
this.methodCalled = 'remove';
return {};
},
bytes: 1000,
getFreeSpace: function(cb) {
this.methodCalled = 'getFreeSpace';
cb(this.bytes);
},
mTeardown: function() {
this.bytes = 1000;
this.methodCalled = null;
}
};