History log of /haiku/src/tests/kits/net/service/ServiceKitTestAddon.cpp
Revision Date Author Comments
# 85a6d653 30-Jan-2021 Niels Sascha Reedijk <niels.reedijk@gmail.com>

libnetservices.a: fix unit test builds after hrev54923


# 1f569db0 15-Jul-2020 Leorize <leorize+oss@disroot.org>

FileRequest: Make Stop() cancel the request as soon as possible

This commit implements a check for the flag raised by Stop() to cancel
a given request as soon as possible. Cancelled requests will return
B_INTERRUPTED regardless of whether the request has completed,
on par with how BHttpRequest is behaving at the moment.

Change-Id: Ia8a95b910cff158c710c5b2ed58b4675e705642e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3071
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 9581e328 02-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Move geolocation test to the shared kit tests.

* Fix the build.


# 13f04588 23-Sep-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Add BGeolocation experimental API.

A BGeolocation object can query an online service to get geolocation
and geotagging data:
* LocateSelf() tries to locate the machine it is running on, by using an
online database of wifi access points
* Locate() (not yet implemented) searches a BString and converts it to
lat/lon coordinates (reverse geotagging)
* Name() (not yet implemented) finds a suitable name for the given
coordinates (address, building name, or anything fitting).

The default service used is openbmap.org, which is freely available but
not very accurate. A request has been sent to Mozilla to use MLS
(Mozilla Location Services), which is a bit more accurate but needs an
API key. MLS is used for geolocation on FirefoxOS, for mobile phones
which don't have a GPS, and the data can be contributed by Firefox for
Android or the dedicated MozStumbler app.

Alternatively, Google Maps also provide the service, but wants
people to pay for it. Google Maps data is more accurate as all Android
devices contribute data to it.

All 3 services use the same JSON-based API: we send a list of reachable
Wifi APs (mac address and signal strength), and we get lattitude and
longitude information, and possibly extra data which will currently be
unused.

This can be used to implement HTML5 geolocation with reasonably accurate
results, but it can also be used in other places. For example
FirstBootPrompt could try to guess a list of most likely languages and
keyboard layouts from it (if wifi is working at install time, that is).


# f0fbad6a 04-Aug-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Add tests for data URIs.


# 3af9a2ca 09-Jun-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Make HttpRequest tests use the test framework

* Use httpbin.org as a server, rather than a local machine.
* Also add an HTTPS version


# f38d4d45 09-Jun-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Rename url directory to "service"

* All "services kit" tests will move there.


# 9581e328bd4b1c88e60054fc6c9a1e61ef107dc2 02-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

Move geolocation test to the shared kit tests.

* Fix the build.


# 13f0458896f84bcd6ea7521bb96298565eb2ef78 23-Sep-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Add BGeolocation experimental API.

A BGeolocation object can query an online service to get geolocation
and geotagging data:
* LocateSelf() tries to locate the machine it is running on, by using an
online database of wifi access points
* Locate() (not yet implemented) searches a BString and converts it to
lat/lon coordinates (reverse geotagging)
* Name() (not yet implemented) finds a suitable name for the given
coordinates (address, building name, or anything fitting).

The default service used is openbmap.org, which is freely available but
not very accurate. A request has been sent to Mozilla to use MLS
(Mozilla Location Services), which is a bit more accurate but needs an
API key. MLS is used for geolocation on FirefoxOS, for mobile phones
which don't have a GPS, and the data can be contributed by Firefox for
Android or the dedicated MozStumbler app.

Alternatively, Google Maps also provide the service, but wants
people to pay for it. Google Maps data is more accurate as all Android
devices contribute data to it.

All 3 services use the same JSON-based API: we send a list of reachable
Wifi APs (mac address and signal strength), and we get lattitude and
longitude information, and possibly extra data which will currently be
unused.

This can be used to implement HTML5 geolocation with reasonably accurate
results, but it can also be used in other places. For example
FirstBootPrompt could try to guess a list of most likely languages and
keyboard layouts from it (if wifi is working at install time, that is).


# f0fbad6aa1e4ab5b4b36d4ef3e6892c5873bb7ca 04-Aug-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Add tests for data URIs.


# 3af9a2cac2f5aa3ae1e037a37c99e67dc7a06807 09-Jun-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Make HttpRequest tests use the test framework

* Use httpbin.org as a server, rather than a local machine.
* Also add an HTTPS version


# f38d4d45108b6ec646f508957376d0313af1e196 09-Jun-2014 Adrien Destugues <pulkomandy@pulkomandy.tk>

Rename url directory to "service"

* All "services kit" tests will move there.