VulpesOS/gaia/shared/test/unit/mocks/mock_bluetooth_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

33 lines
886 B
JavaScript
Executable file

/* exported MockBluetoothHelper, MockBluetoothHelperInstance */
'use strict';
var MockBluetoothHelperInstance = {
profiles: {
'HFP': 0x111E,
'A2DP': 0x110D
},
answerWaitingCall: function() {},
ignoreWaitingCall: function() {},
toggleCalls: function() {},
getConnectedDevicesByProfile: function() {},
connectSco: function() {},
disconnectSco: function() {},
getPairedDevices: function() {},
getAddress: function() {},
setPairingConfirmation: function() {},
setPinCode: function() {},
setPasskey: function() {},
isScoConnected: function() {},
sendMediaMetaData: function() {},
sendMediaPlayStatus: function() {},
onhfpstatuschanged: null,
onscostatuschanged: null,
ona2dpstatuschanged: null,
onpairedstatuschanged: null,
onrequestmediaplaystatus: null
};
var MockBluetoothHelper = function() {
return MockBluetoothHelperInstance;
};