Confirmed users
486
edits
(→TBD) |
(→TBD) |
||
Line 94: | Line 94: | ||
* Comments from Kanru for A-GPS testing: | * Comments from Kanru for A-GPS testing: | ||
** I filed https://bugzilla.mozilla.org/show_bug.cgi?id=777983 for writing a Marionette test to test normal GPS on emulator. The emulator could inject fake locations so we could test the basic GPS functionality. | ** I filed https://bugzilla.mozilla.org/show_bug.cgi?id=777983 for writing a Marionette test to test normal GPS on emulator. The emulator could inject fake locations so we could test the basic GPS functionality. | ||
* But the A-GPS is a bit hard to test because it needs real hardware and server support, and when it fails the GPS engine usually fallback to normal GPS silently. * Several ways to do automated test that I can think of are (1) extend the emulator to support A-GPS callbacks (2) monitor if the GPS engine is requesting data connection or not (3) use a fake/proxy A-GPS server | ** But the A-GPS is a bit hard to test because it needs real hardware and server support, and when it fails the GPS engine usually fallback to normal GPS silently. ** Several ways to do automated test that I can think of are (1) extend the emulator to support A-GPS callbacks (2) monitor if the GPS engine is requesting data connection or not (3) use a fake/proxy A-GPS server | ||
* To turn it on you have to add these prefs: | ** To turn it on you have to add these prefs: | ||
pref("geo.gps.supl_server", "supl.google.com"); | pref("geo.gps.supl_server", "supl.google.com"); | ||
Line 104: | Line 104: | ||
pref("geo.gps.apn.password", ""); | pref("geo.gps.apn.password", ""); | ||
* where the "geo.gps.apn.name" is the APN for data connection. | ** where the "geo.gps.apn.name" is the APN for data connection. |