diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2011-04-20 11:22:18 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2011-04-23 22:00:50 +0100 |
commit | 42992e45d4441de8378f2c15ae6de157ff9b0ab2 (patch) | |
tree | 5ea085a5313636fc4b2b2334c5f0f659c95f7516 /tests | |
parent | df92a32fc1c0597df616c0bbe57c7d07772ecf93 (diff) |
Change PostalAddress.types to be a Set<string>
Helps: bgo#640092
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tracker/add-persona.vala | 4 | ||||
-rw-r--r-- | tests/tracker/postal-address-details-interface.vala | 2 | ||||
-rw-r--r-- | tests/tracker/set-postal-addresses.vala | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/tracker/add-persona.vala b/tests/tracker/add-persona.vala index cc6bc39..cd67287 100644 --- a/tests/tracker/add-persona.vala +++ b/tests/tracker/add-persona.vala @@ -96,7 +96,7 @@ public class AddPersonaTests : Folks.TestCase this._title_1 = "CFO"; this._organisation_1 = "Example Inc."; - GLib.List<string> types = new GLib.List<string> (); + var types = new HashSet<string> (); this._address = new PostalAddress (this._po_box, this._extension, this._street, this._locality, this._region, this._postal_code, this._country, null, types, null); @@ -270,7 +270,7 @@ public class AddPersonaTests : Folks.TestCase Value? v13 = Value (typeof (Set<PostalAddress>)); var postal_addresses = new HashSet<PostalAddress> (); - GLib.List<string> types = new GLib.List<string> (); + var types = new HashSet<string> (); PostalAddress postal_a = new PostalAddress (this._po_box, this._extension, this._street, this._locality, this._region, this._postal_code, this._country, null, types, null); diff --git a/tests/tracker/postal-address-details-interface.vala b/tests/tracker/postal-address-details-interface.vala index dd021c2..e35138c 100644 --- a/tests/tracker/postal-address-details-interface.vala +++ b/tests/tracker/postal-address-details-interface.vala @@ -67,7 +67,7 @@ public class PostalAddressDetailsInterfaceTests : Folks.TestCase this._fullname = "persona #1"; c1.set (Trf.OntologyDefs.NCO_FULLNAME, this._fullname); - GLib.List<string> types = new GLib.List<string> (); + var types = new HashSet<string> (); this._postal_address = new PostalAddress ( this._pobox, this._extended, diff --git a/tests/tracker/set-postal-addresses.vala b/tests/tracker/set-postal-addresses.vala index ef00a81..7e36e6c 100644 --- a/tests/tracker/set-postal-addresses.vala +++ b/tests/tracker/set-postal-addresses.vala @@ -59,7 +59,7 @@ public class SetPostalAddressesTests : Folks.TestCase c1.set (Trf.OntologyDefs.NCO_FULLNAME, this._persona_fullname); this._tracker_backend.add_contact (c1); - GLib.List<string> types = new GLib.List<string> (); + var types = new HashSet<string> (); this._address = new PostalAddress (null, null, null, null, null, null, null, null, types, null); this._address.po_box = "12345"; @@ -119,7 +119,7 @@ public class SetPostalAddressesTests : Folks.TestCase { i.notify["postal-addresses"].connect (this._notify_postal_cb); - GLib.List<string> types = new GLib.List<string> (); + var types = new HashSet<string> (); var addresses = new HashSet<PostalAddress> (); var pa = new Folks.PostalAddress (null, null, null, null, null, null, null, null, types, null); |