2012-07-13 07:35:26 +00:00
|
|
|
private void test_read_alias () {
|
|
|
|
try {
|
|
|
|
var service = Secret.Service.get_sync(Secret.ServiceFlags.NONE);
|
|
|
|
var path = service.read_alias_dbus_path_sync("default", null);
|
|
|
|
GLib.assert (path != null);
|
|
|
|
} catch ( GLib.Error e ) {
|
|
|
|
GLib.error (e.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-13 07:04:55 +00:00
|
|
|
private static int main (string[] args) {
|
2012-07-13 07:35:26 +00:00
|
|
|
GLib.Test.init (ref args);
|
|
|
|
|
|
|
|
try {
|
|
|
|
MockService.start ("mock-service-normal.py");
|
|
|
|
} catch ( GLib.Error e ) {
|
|
|
|
GLib.error ("Unable to start mock service: %s", e.message);
|
|
|
|
}
|
2012-07-13 07:04:55 +00:00
|
|
|
|
2012-07-13 07:35:26 +00:00
|
|
|
GLib.Test.add_data_func ("/vala/unstable/read-alias", test_read_alias);
|
2012-07-13 07:04:55 +00:00
|
|
|
|
2012-07-13 07:35:26 +00:00
|
|
|
var res = GLib.Test.run ();
|
|
|
|
MockService.stop ();
|
|
|
|
return res;
|
2012-07-13 07:04:55 +00:00
|
|
|
}
|