Geolocation: use test key for tests.
Mozilla provide a test key (with usage restrictions) for testing purpose. Make use of it in our unit tests.
This commit is contained in:
@@ -20,7 +20,8 @@ GeolocationTest::GeolocationTest()
|
|||||||
void
|
void
|
||||||
GeolocationTest::TestLocateSelf()
|
GeolocationTest::TestLocateSelf()
|
||||||
{
|
{
|
||||||
BGeolocation locator;
|
BGeolocation locator(BUrl(
|
||||||
|
"https://location.services.mozilla.com/v1/geolocate?key=test"));
|
||||||
float latitude, longitude;
|
float latitude, longitude;
|
||||||
status_t result = locator.LocateSelf(latitude, longitude);
|
status_t result = locator.LocateSelf(latitude, longitude);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user