"nco:region '%s' ";
string urn_contact;
- if (contact.unset (this.URN, out urn_contact) == false)
+ if (contact.unset (TrackerTest.Backend.URN, out urn_contact) == false)
{
urn_contact = "_:x";
}
v = this._build_relation (Trf.OntologyDefs.NCO_HAS_AFFILIATION,
emails);
}
- else if (k == this.URLS)
+ else if (k == TrackerTest.Backend.URLS)
{
urls = v.split (",");
k = "";
this._tracker_backend.add_contact (c1);
this._tracker_backend.set_up ();
- this._test_add_contact_async ();
+ this._test_add_contact_async.begin ();
Timeout.add_seconds (5, () =>
{
this._properties_found.insert ("url-1", false);
this._properties_found.insert ("url-2", false);
- this._test_add_persona_async ();
+ this._test_add_persona_async.begin ();
Timeout.add_seconds (5, () =>
{
if (this._pstore.is_prepared && this._added_persona == false)
{
this._added_persona = true;
- this._add_persona ();
+ this._add_persona.begin ();
}
}
this._individual_id = "";
var store = BackendStore.dup ();
- _test_additional_names_updates_async (store);
+ _test_additional_names_updates_async.begin (store);
Timeout.add_seconds (5, () =>
{
this._tracker_backend.add_contact (c1);
this._tracker_backend.set_up ();
- test_avatar_details_interface_async ();
+ test_avatar_details_interface_async.begin ();
Timeout.add_seconds (5, () =>
{
this._updated_avatar_found = false;
this._individual_id = "";
- test_avatar_updates_async ();
+ test_avatar_updates_async.begin ();
Timeout.add_seconds (5, () =>
{
this._found_birthday = false;
- this._test_birthay_details_interface ();
+ this._test_birthay_details_interface.begin ();
Timeout.add_seconds (5, () =>
{
this._updated_birthday_found = false;
this._individual_id = "";
- test_birthday_updates_async ();
+ test_birthday_updates_async.begin ();
Timeout.add_seconds (5, () =>
this._found_not_user = false;
this._found_unknown_user = false;
- _test_default_contact_async ();
+ _test_default_contact_async.begin ();
Timeout.add_seconds (5, () =>
{
{
this._main_loop = new GLib.MainLoop (null, false);
- this._test_duplicated_emails_async ();
+ this._test_duplicated_emails_async.begin ();
Timeout.add_seconds (5, () =>
{
}
assert (this._pstore != null);
this._pstore.notify["is-prepared"].connect (this._notify_pstore_cb);
- this._try_to_add ();
+ this._try_to_add.begin ();
}
catch (GLib.Error e)
{
private void _notify_pstore_cb (Object _pstore, ParamSpec ps)
{
- this._try_to_add ();
+ this._try_to_add.begin ();
}
private async void _try_to_add ()
{
this._main_loop = new GLib.MainLoop (null, false);
- this._test_duplicated_phones_async ();
+ this._test_duplicated_phones_async.begin ();
Timeout.add_seconds (5, () =>
{
}
assert (this._pstore != null);
this._pstore.notify["is-prepared"].connect (this._notify_pstore_cb);
- this._try_to_add ();
+ this._try_to_add.begin ();
}
catch (GLib.Error e)
{
private void _notify_pstore_cb (Object _pstore, ParamSpec ps)
{
- this._try_to_add ();
+ this._try_to_add.begin ();
}
private async void _try_to_add ()
this._found_email_1 = false;
this._found_email_2 = false;
- this._test_email_details_interface_async ();
+ this._test_email_details_interface_async.begin ();
Timeout.add_seconds (5, () =>
{
this._initial_email_found = false;
this._updated_email_found = false;
- this._test_emails_updates_async ();
+ this._test_emails_updates_async.begin ();
Timeout.add_seconds (5, () =>
{
this._updated_family_name_found = false;
this._individual_id = "";
- this._test_family_name_updates_async ();
+ this._test_family_name_updates_async.begin ();
Timeout.add_seconds (5, () =>
{
this._found_p2 = false;
this._found_p3 = false;
- this._test_favourite_details_interface_async ();
+ this._test_favourite_details_interface_async.begin ();
Timeout.add_seconds (5, () =>
{
this._is_favourite_2 = true;
this._individual_id_2 = "";
- this._test_favourite_update_async ();
+ this._test_favourite_update_async.begin ();
// this timer is slightly higher than usual because sleep
// to ensure a (usually delayed) INSERT event has happened
this._deleted_name_found = false;
this._individual_id = "";
- this._test_fullname_updates_async ();
+ this._test_fullname_updates_async.begin ();
Timeout.add_seconds (5, () =>
{
this._found_gender = false;
- this._test_gender_details_interface_async ();
+ this._test_gender_details_interface_async.begin ();
Timeout.add_seconds (5, () =>
{
this._updated_given_name_found = false;
this._individual_id = "";
- this._test_given_name_updates_async ();
+ this._test_given_name_updates_async.begin ();
Timeout.add_seconds (5, () =>
{
this._found_addr_1 = false;
this._found_addr_2 = false;
- this._test_im_details_interface_async ();
+ this._test_im_details_interface_async.begin ();
Timeout.add_seconds (5, () =>
{
this._initial_imaddress_found = false;
this._updated_imaddr_found = false;
- this._test_imaddresses_updates_async ();
+ this._test_imaddresses_updates_async.begin ();
Timeout.add_seconds (5, () =>
{
this._tracker_backend.add_contact (this._c2);
this._tracker_backend.set_up ();
- this._test_singleton_individuals_async ();
+ this._test_singleton_individuals_async.begin ();
Timeout.add_seconds (5, () =>
{
this._local_ids = new Gee.HashSet <string> ();
- this._test_linking_personas_via_local_ids_async ();
+ this._test_linking_personas_via_local_ids_async.begin ();
/* Kill the main loop after 8 seconds: if the linked individual hasn't
* show up at this point then we've either seen an error or we've been
{
PersonaStore pstore = (!)(obj as PersonaStore);
- _add_personas (pstore);
+ _add_personas.begin (pstore);
}
/* Here is how this test is expected to work:
* delayed events. */
Timeout.add_seconds (2, () =>
{
- this._aggregator.link_personas (this._personas);
+ this._aggregator.link_personas.begin (this._personas);
return false;
});
}
this._linking_props.set ("prop1", this._im_address_1);
this._linking_props.set ("prop2", this._im_address_2);
- this._test_linking_personas_async ();
+ this._test_linking_personas_async.begin ();
/* Kill the main loop after 5 seconds: if the linked individual hasn't
* show up at this point then we've either seen an error or we've been
{
PersonaStore pstore = (!)(obj as PersonaStore);
- _add_personas (pstore);
+ _add_personas.begin (pstore);
}
/* Here is how this test is expected to work:
* delayed events. */
Timeout.add_seconds (2, () =>
{
- this._aggregator.link_personas (this._personas);
+ this._aggregator.link_personas.begin (this._personas);
return false;
});
}
{
this._main_loop = new GLib.MainLoop (null, false);
- this._test_match_all_async ();
+ this._test_match_all_async.begin ();
Timeout.add_seconds (5, () =>
{
}
assert (this._pstore != null);
this._pstore.notify["is-prepared"].connect (this._notify_pstore_cb);
- this._try_to_add ();
+ this._try_to_add.begin ();
}
catch (GLib.Error e)
{
private void _notify_pstore_cb (Object _pstore, ParamSpec ps)
{
- this._try_to_add ();
+ this._try_to_add.begin ();
}
private async void _try_to_add ()
{
this._main_loop = new GLib.MainLoop (null, false);
- this._test_match_email_addresses_async ();
+ this._test_match_email_addresses_async.begin ();
Timeout.add_seconds (5, () =>
{
}
assert (this._pstore != null);
this._pstore.notify["is-prepared"].connect (this._notify_pstore_cb);
- this._try_to_add ();
+ this._try_to_add.begin ();
}
catch (GLib.Error e)
{
private void _notify_pstore_cb (Object _pstore, ParamSpec ps)
{
- this._try_to_add ();
+ this._try_to_add.begin ();
}
private async void _try_to_add ()
{
this._main_loop = new GLib.MainLoop (null, false);
- this._test_match_im_addresses_async ();
+ this._test_match_im_addresses_async.begin ();
Timeout.add_seconds (5, () =>
{
}
assert (this._pstore != null);
this._pstore.notify["is-prepared"].connect (this._notify_pstore_cb);
- this._try_to_add ();
+ this._try_to_add.begin ();
}
catch (GLib.Error e)
{
private void _notify_pstore_cb (Object _pstore, ParamSpec ps)
{
- this._try_to_add ();
+ this._try_to_add.begin ();
}
private async void _try_to_add ()
{
this._main_loop = new GLib.MainLoop (null, false);
- this._test_match_email_addresses_async ();
+ this._test_match_email_addresses_async.begin ();
Timeout.add_seconds (5, () =>
{
}
assert (this._pstore != null);
this._pstore.notify["is-prepared"].connect (this._notify_pstore_cb);
- this._try_to_add ();
+ this._try_to_add.begin ();
}
catch (GLib.Error e)
{
private void _notify_pstore_cb (Object _pstore, ParamSpec ps)
{
- this._try_to_add ();
+ this._try_to_add.begin ();
}
private async void _try_to_add ()
this._individual_id_1 = "";
this._individual_id_2 = "";
- this._test_match_name_async ();
+ this._test_match_name_async.begin ();
Timeout.add_seconds (5, () =>
{
}
assert (this._pstore != null);
this._pstore.notify["is-prepared"].connect (this._notify_pstore_cb);
- this._try_to_add ();
+ this._try_to_add.begin ();
}
catch (GLib.Error e)
{
private void _notify_pstore_cb (Object _pstore, ParamSpec ps)
{
- this._try_to_add ();
+ this._try_to_add.begin ();
}
private async void _try_to_add ()
{
this._main_loop = new GLib.MainLoop (null, false);
- this._test_match_phone_number_async ();
+ this._test_match_phone_number_async.begin ();
Timeout.add_seconds (5, () =>
{
}
assert (this._pstore != null);
this._pstore.notify["is-prepared"].connect (this._notify_pstore_cb);
- this._try_to_add ();
+ this._try_to_add.begin ();
}
catch (GLib.Error e)
{
private void _notify_pstore_cb (Object _pstore, ParamSpec ps)
{
- this._try_to_add ();
+ this._try_to_add.begin ();
}
private async void _try_to_add ()
this._tracker_backend.set_up ();
- this._test_name_details_interface_async ();
+ this._test_name_details_interface_async.begin ();
Timeout.add_seconds (5, () =>
{
this._updated_nickname_found = false;
this._individual_id = "";
- this._test_nickname_updates_async ();
+ this._test_nickname_updates_async.begin ();
Timeout.add_seconds (5, () =>
{
this._found_note = false;
- this._test_note_details_interface_async ();
+ this._test_note_details_interface_async.begin ();
Timeout.add_seconds (5, () =>
{
this._found_phone_1 = false;
this._found_phone_2 = false;
- this._test_phone_details_interface_async ();
+ this._test_phone_details_interface_async.begin ();
Timeout.add_seconds (5, () =>
{
this._initial_phone_found_again = false;
this._updated_phone_found = false;
- this._test_phones_updates_async ();
+ this._test_phones_updates_async.begin ();
Timeout.add_seconds (5, () =>
{
this._found_postal_address = false;
- this._test_postal_address_details_interface_async ();
+ this._test_postal_address_details_interface_async.begin ();
Timeout.add_seconds (5, () =>
{
this._updated_prefix_name_found = false;
this._individual_id = "";
- this._test_prefix_name_updates_async ();
+ this._test_prefix_name_updates_async.begin ();
Timeout.add_seconds (5, () =>
{
this._contact_removed = false;
this._individual_id = "";
- this._test_remove_contact_async ();
+ this._test_remove_contact_async.begin ();
Timeout.add_seconds (5, () =>
{
this._persona_removed = false;
this._individual_removed = false;
- this._test_remove_persona_async ();
+ this._test_remove_persona_async.begin ();
Timeout.add_seconds (5, () =>
{
this._added_persona == false)
{
this._added_persona = true;
- this._add_persona ();
+ this._add_persona.begin ();
}
}
if (this._pstore.personas.has_key (this._persona_id) == true)
{
this._pstore.personas_changed.connect (this._personas_cb);
- this._aggregator.remove_individual (this._individual);
+ this._aggregator.remove_individual.begin (this._individual);
}
}
}
this._found_role = false;
- this._test_role_details_interface_async ();
+ this._test_role_details_interface_async.begin ();
Timeout.add_seconds (5, () =>
{
this._avatar_found = false;
- this._test_set_avatar_async ();
+ this._test_set_avatar_async.begin ();
Timeout.add_seconds (5, () =>
{
this._bday_found = false;
- this._test_set_bday_async ();
+ this._test_set_bday_async.begin ();
Timeout.add_seconds (5, () =>
{
this._main_loop = new GLib.MainLoop (null, false);
this._email_found = false;
- this._test_set_duplicate_email_async ();
+ this._test_set_duplicate_email_async.begin ();
Timeout.add_seconds (5, () =>
{
}
assert (this._pstore != null);
this._pstore.notify["is-prepared"].connect (this._notify_pstore_cb);
- this._try_to_add ();
+ this._try_to_add.begin ();
}
catch (GLib.Error e)
{
private void _notify_pstore_cb (Object _pstore, ParamSpec ps)
{
- this._try_to_add ();
+ this._try_to_add.begin ();
}
private async void _try_to_add ()
this._email_1_found = false;
this._email_2_found = false;
- this._test_set_emails_async ();
+ this._test_set_emails_async.begin ();
Timeout.add_seconds (5, () =>
{
this._c2_initially_favourite = false;
this._c2_finally_not_favourite = false;
- this._test_set_alias_async ();
+ this._test_set_alias_async.begin ();
Timeout.add_seconds (5, () =>
{
this._found_changed_full_name = false;
- this._test_set_full_name_async ();
+ this._test_set_full_name_async.begin ();
Timeout.add_seconds (5, () =>
{
this._gender_found = false;
- this._test_set_gender_async ();
+ this._test_set_gender_async.begin ();
Timeout.add_seconds (5, () =>
{
this._tracker_backend.set_up ();
- this._test_set_im_addresses_async ();
+ this._test_set_im_addresses_async.begin ();
Timeout.add_seconds (5, () =>
{
this._initial_nickname_found = false;
this._modified_nickname_found = false;
- this._test_set_nickname_async ();
+ this._test_set_nickname_async.begin ();
Timeout.add_seconds (5, () =>
{
this._note_found = false;
- this._test_set_notes_async ();
+ this._test_set_notes_async.begin ();
Timeout.add_seconds (5, () =>
{
this._null_avatar_set = false;
- this._test_set_null_avatar_async ();
+ this._test_set_null_avatar_async.begin ();
Timeout.add_seconds (5, () =>
{
foreach (var p in i.personas)
{
((AvatarDetails) p).avatar = null;
- this._set_null_avatar_async ();
+ this._set_null_avatar_async.begin ();
}
}
}
this._phone_1_found = false;
this._phone_2_found = false;
- this._test_set_phones_async ();
+ this._test_set_phones_async.begin ();
Timeout.add_seconds (5, () =>
{
this._postal_address_found = false;
- this._test_set_postal_addresses_async ();
+ this._test_set_postal_addresses_async.begin ();
Timeout.add_seconds (5, () =>
{
this._role_found = false;
- this._test_set_roles_async ();
+ this._test_set_roles_async.begin ();
Timeout.add_seconds (5, () =>
{
this._sname_found = false;
- this._test_set_structured_name_async ();
+ this._test_set_structured_name_async.begin ();
Timeout.add_seconds (5, () =>
{
this._tracker_backend.set_up ();
- this._test_set_urls_async ();
+ this._test_set_urls_async.begin ();
Timeout.add_seconds (5, () =>
{
(GLib.EqualFunc) UrlFieldDetails.equal);
var p1 = new UrlFieldDetails (
this._urls.get (UrlFieldDetails.PARAM_TYPE_BLOG));
- p1.set_parameter (p1.PARAM_TYPE, p1.PARAM_TYPE_BLOG);
+ p1.set_parameter (AbstractFieldDetails.PARAM_TYPE, UrlFieldDetails.PARAM_TYPE_BLOG);
url_fds.add (p1);
var p2 = new UrlFieldDetails (
this._urls.get (UrlFieldDetails.PARAM_TYPE_HOME_PAGE));
- p2.set_parameter (p1.PARAM_TYPE, p1.PARAM_TYPE_HOME_PAGE);
+ p2.set_parameter (AbstractFieldDetails.PARAM_TYPE, UrlFieldDetails.PARAM_TYPE_HOME_PAGE);
url_fds.add (p2);
var p3 = new UrlFieldDetails (
this._urls.get (AbstractFieldDetails.PARAM_TYPE_OTHER));
{
foreach (var p in i.urls)
{
- var type_p = p.get_parameter_values (p.PARAM_TYPE);
+ var type_p = p.get_parameter_values (AbstractFieldDetails.PARAM_TYPE);
if (type_p != null &&
- type_p.contains (p.PARAM_TYPE_BLOG) &&
- p.value == this._urls.get (p.PARAM_TYPE_BLOG))
+ type_p.contains (UrlFieldDetails.PARAM_TYPE_BLOG) &&
+ p.value == this._urls.get (UrlFieldDetails.PARAM_TYPE_BLOG))
{
- this._urls.unset (p.PARAM_TYPE_BLOG);
+ this._urls.unset (UrlFieldDetails.PARAM_TYPE_BLOG);
}
else if (type_p != null &&
- type_p.contains (p.PARAM_TYPE_HOME_PAGE) &&
- p.value == this._urls.get (p.PARAM_TYPE_HOME_PAGE))
+ type_p.contains (UrlFieldDetails.PARAM_TYPE_HOME_PAGE) &&
+ p.value == this._urls.get (UrlFieldDetails.PARAM_TYPE_HOME_PAGE))
{
- this._urls.unset (p.PARAM_TYPE_HOME_PAGE);
+ this._urls.unset (UrlFieldDetails.PARAM_TYPE_HOME_PAGE);
}
else if (type_p == null &&
- p.value == this._urls.get (p.PARAM_TYPE_OTHER))
+ p.value == this._urls.get (AbstractFieldDetails.PARAM_TYPE_OTHER))
{
- this._urls.unset (p.PARAM_TYPE_OTHER);
+ this._urls.unset (AbstractFieldDetails.PARAM_TYPE_OTHER);
}
}
}
this._deleted_suffix_name_found = false;
this._individual_id = "";
- this._test_suffix_name_updates_async ();
+ this._test_suffix_name_updates_async.begin ();
Timeout.add_seconds (5, () =>
{
this._found_blog = false;
this._found_website = false;
- this._test_url_details_interface_async ();
+ this._test_url_details_interface_async.begin ();
Timeout.add_seconds (5, () =>
{
this._deleted_website_found = false;
this._individual_id = "";
- this._test_website_updates_async ();
+ this._test_website_updates_async.begin ();
Timeout.add_seconds (5, () =>
{