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.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
27
gaia/shared/test/unit/mocks/mock_simslot_manager.js
Executable file
27
gaia/shared/test/unit/mocks/mock_simslot_manager.js
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
/* exported MockSIMSlotManager */
|
||||
'use strict';
|
||||
var MockSIMSlotManager = {
|
||||
ready: false,
|
||||
mInstances: [],
|
||||
get: function mssm_get(index) {
|
||||
return this.mInstances[index];
|
||||
},
|
||||
getSlots: function mssm_getSlots() {
|
||||
return this.mInstances;
|
||||
},
|
||||
get length() {
|
||||
return this.mInstances.length;
|
||||
},
|
||||
isMultiSIM: function mssm_isMultiSIM() {
|
||||
return (this.mInstances.length > 1);
|
||||
},
|
||||
isSIMCardAbsent: function mssm_isSIMCardAbsent(i) {
|
||||
return this.mInstances[i].isAbsent();
|
||||
},
|
||||
hasOnlyOneSIMCardDetected: function() {},
|
||||
noSIMCardOnDevice: function() {},
|
||||
noSIMCardConnectedToNetwork: function() {},
|
||||
mTeardown: function mssm_mTeardown() {
|
||||
this.mInstances = [];
|
||||
}
|
||||
};
|
||||
Loading…
Reference in a new issue