MockBackend
Object Hierarchy:
Description:
[
CCode ( type_id =
"geocode_mock_backend_get_type ()" ) ]
[
Version ( since =
"3.23.1" ) ]
public class MockBackend :
Object,
Backend
All the fields in the MockBackend structure are private and should never be accessed directly.
Content:
Creation methods:
Methods:
- public void add_forward_result (HashTable<string,Value?> @params, List<Place>? results, Error? error)
Add a query and corresponding result (or error) to the mock backend,
meaning that if it receives a forward search for params through
forward_search (or its asynchronous variants), the mock
backend will return the given results or error to the caller.
- public void add_reverse_result (HashTable<string,Value?> @params, List<Place>? results, Error? error)
Add a query and corresponding result (or error) to the mock backend,
meaning that if it receives a reverse search for params through
reverse_resolve (or its asynchronous variants), the mock
backend will return the given results or error to the caller.
- public void clear ()
- public unowned GenericArray<MockBackendQuery?> get_query_log ()
Get the details of the forward and reverse queries which have been
requested of the mock backend since the most recent call to clear.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Geocode.Backend