mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1185802 - Part 3: support fota apn type (tests). r=hsinyi
This commit is contained in:
parent
3a36aa7c32
commit
bb205e177d
@ -19,7 +19,8 @@ function isNetworkReady() {
|
||||
SpecialPowers.Ci.nsINetworkInterfaceListService.LIST_NOT_INCLUDE_MMS_INTERFACES |
|
||||
SpecialPowers.Ci.nsINetworkInterfaceListService.LIST_NOT_INCLUDE_SUPL_INTERFACES |
|
||||
SpecialPowers.Ci.nsINetworkInterfaceListService.LIST_NOT_INCLUDE_IMS_INTERFACES |
|
||||
SpecialPowers.Ci.nsINetworkInterfaceListService.LIST_NOT_INCLUDE_DUN_INTERFACES);
|
||||
SpecialPowers.Ci.nsINetworkInterfaceListService.LIST_NOT_INCLUDE_DUN_INTERFACES |
|
||||
SpecialPowers.Ci.nsINetworkInterfaceListService.LIST_NOT_INCLUDE_FOTA_INTERFACES);
|
||||
var num = itfList.getNumberOfInterface();
|
||||
for (var i = 0; i < num; i++) {
|
||||
var ips = {};
|
||||
|
@ -20,13 +20,15 @@ const NETWORK_TYPE_MOBILE_MMS = Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE_MMS;
|
||||
const NETWORK_TYPE_MOBILE_SUPL = Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE_SUPL;
|
||||
const NETWORK_TYPE_MOBILE_IMS = Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE_IMS;
|
||||
const NETWORK_TYPE_MOBILE_DUN = Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE_DUN;
|
||||
const NETWORK_TYPE_MOBILE_FOTA = Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE_FOTA;
|
||||
|
||||
const networkTypes = [
|
||||
NETWORK_TYPE_MOBILE,
|
||||
NETWORK_TYPE_MOBILE_MMS,
|
||||
NETWORK_TYPE_MOBILE_SUPL,
|
||||
NETWORK_TYPE_MOBILE_IMS,
|
||||
NETWORK_TYPE_MOBILE_DUN
|
||||
NETWORK_TYPE_MOBILE_DUN,
|
||||
NETWORK_TYPE_MOBILE_FOTA
|
||||
];
|
||||
|
||||
let Promise = Cu.import("resource://gre/modules/Promise.jsm").Promise;
|
||||
|
@ -9,7 +9,7 @@ function setEmulatorAPN() {
|
||||
[{"carrier":"T-Mobile US",
|
||||
"apn":"epc.tmobile.com",
|
||||
"mmsc":"http://mms.msg.eng.t-mobile.com/mms/wapenc",
|
||||
"types":["default","supl","mms","ims","dun"]}]
|
||||
"types":["default","supl","mms","ims","dun", "fota"]}]
|
||||
];
|
||||
|
||||
return setSettings(SETTINGS_KEY_DATA_APN_SETTINGS, apn);
|
||||
@ -57,6 +57,7 @@ function testNonDefaultDataConnection() {
|
||||
.then(() => doTestNonDefaultDataConnection(NETWORK_TYPE_MOBILE_SUPL))
|
||||
.then(() => doTestNonDefaultDataConnection(NETWORK_TYPE_MOBILE_IMS))
|
||||
.then(() => doTestNonDefaultDataConnection(NETWORK_TYPE_MOBILE_DUN))
|
||||
.then(() => doTestNonDefaultDataConnection(NETWORK_TYPE_MOBILE_FOTA))
|
||||
// Restore APN settings
|
||||
.then(() => setSettings(SETTINGS_KEY_DATA_APN_SETTINGS, currentApn));
|
||||
}
|
||||
|
@ -24,7 +24,10 @@ function setEmulatorAPN() {
|
||||
"types":["ims"] },
|
||||
{ "carrier":"T-Mobile US",
|
||||
"apn":"epc5.tmobile.com",
|
||||
"types":["dun"] }]];
|
||||
"types":["dun"] },
|
||||
{ "carrier":"T-Mobile US",
|
||||
"apn":"epc6.tmobile.com",
|
||||
"types":["fota"] }]];
|
||||
|
||||
return setSettings(SETTINGS_KEY_DATA_APN_SETTINGS, apn);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user