/pidgin/main: 5dc70173ccb4: Change some names, protect the innoc...
Gary Kramlich <[email protected]>
| Newsgroups | gmane.comp.gnome.gaim.cvs |
|---|---|
| Message-ID | <[email protected]> |
Changeset: 5dc70173ccb41f70391364eb64ac9dd3606158fa Author: Gary Kramlich <[email protected]> Date: 2016-03-23 19:26 -0500 Branch: default URL: https://hg.pidgin.im/pidgin/main/rev/5dc70173ccb4 Description: Change some names, protect the innocent, something something diffstat: libpurple/protocols/jabber/tests/test_jabber_jutil.c | 78 ++++++++++---------- 1 files changed, 39 insertions(+), 39 deletions(-) diffs (128 lines): diff --git a/libpurple/protocols/jabber/tests/test_jabber_jutil.c b/libpurple/protocols/jabber/tests/test_jabber_jutil.c --- a/libpurple/protocols/jabber/tests/test_jabber_jutil.c +++ b/libpurple/protocols/jabber/tests/test_jabber_jutil.c @@ -106,24 +106,24 @@ test_jabber_util_jabber_id_new_valid(voi "gmail.com/Test@", "gmail.com/@", "gmail.com/Test@alkjaweflkj", - "[email protected]", - "[email protected]/Test12345", - "[email protected]/Test@12345", - "[email protected]/Te/st@12@//345", + "[email protected]", + "[email protected]/Test12345", + "[email protected]/Test@12345", + "[email protected]/Te/st@12@//345", "ããã©@conference.jabber.org", "ã¾ããã¼ã@conference.jabber.org", - "[email protected]/ã¾ããã¼ã", - "mark.doliner@gmail/stuff.org", - "stuart@nödÃ¥tXäYZ.se", - "stuart@nödÃ¥tXäYZ.se/ã¾ããã¼ã", - "mark.doliner@ããã©.org", - "nick@ã¾ã¤.ãããã¿.net", - "[email protected]/s", - "paul@[::1]", /* IPv6 */ - "paul@[2001:470:1f05:d58::2]", - "paul@[2001:470:1f05:d58::2]/foo", - "[email protected]", - "pa,[email protected]", + "[email protected]/ã¾ããã¼ã", + "noone@example/stuff.org", + "noone@nödÃ¥tXäYZ.example", + "noone@nödÃ¥tXäYZ.example/ã¾ããã¼ã", + "noone@ããã©.org", + "noone@ã¾ã¤.ãããã¿.net", + "[email protected]/s", + "noone@[::1]", /* IPv6 */ + "noone@[3001:470:1f05:d58::2]", + "noone@[3001:470:1f05:d58::2]/foo", + "[email protected]", + "no,[email protected]", NULL }; gint i; @@ -142,18 +142,18 @@ test_jabber_util_jabber_id_new_invalid(v const gchar *jids[] = { "@gmail.com", "@@gmail.com", - "mark.doliner@@gmail.com/Test12345", - "mark@[email protected]/Test12345", - "@gmail.com/Test@12345", + "noone@@example.com/Test12345", + "no@[email protected]/Test12345", + "@example.com/Test@12345", "/Test@12345", - "mark.doliner@", - "mark.doliner/", - "mark.doliner@gmail_stuff.org", - "mark.doliner@gmail[stuff.org", - "mark.doliner@gmail\\stuff.org", - "paul@[::1]124", - "paul@2[::1]124/as", - "paul@ã¾ã¤.ãããã¿/\x01", + "noone@", + "noone/", + "noone@gmail_stuff.org", + "noone@gmail[stuff.org", + "noone@gmail\\stuff.org", + "noone@[::1]124", + "noone@2[::1]124/as", + "noone@ã¾ã¤.ãããã¿/\x01", /* * RFC 3454 Section 6 reads, in part, * "If a string contains any RandALCat character, the @@ -184,13 +184,13 @@ test_jabber_util_jabber_id_new_invalid(v static void test_jabber_util_jid_parts(void) { /* Ensure that jabber_id_new is properly lowercasing node and domains */ - assert_jid_parts("paul", "darkrain42.org", "[email protected]"); - assert_jid_parts("paul", "darkrain42.org", "[email protected]"); + assert_jid_parts("noone", "example.com", "[email protected]"); + assert_jid_parts("noone", "example.com", "[email protected]"); /* These case-mapping tests culled from examining RFC3454 B.2 */ /* Cyrillic capital EF (U+0424) maps to lowercase EF (U+0444) */ - assert_jid_parts("Ñ", "darkrain42.org", "Ф@darkrain42.org"); + assert_jid_parts("Ñ", "example.com", "Ф@example.com"); #ifdef USE_IDN /* @@ -201,12 +201,12 @@ test_jabber_util_jid_parts(void) { * This is known, but not (very?) likely to actually cause a problem, so * this test is commented out when using glib's functions. */ - assert_jid_parts("ê¤", "darkrain42.org", "ê¤@darkrain42.org"); - assert_jid_parts("ê¥", "darkrain42.org", "ê¥@darkrain42.org"); + assert_jid_parts("ê¤", "example.com", "ê¤@example.com"); + assert_jid_parts("ê¥", "example.com", "ê¥@example.com"); #endif /* U+04E9 to U+04E9 */ - assert_jid_parts("paul", "Ó©arkrain42.org", "paul@Ó¨arkrain42.org"); + assert_jid_parts("noone", "Ó©example.com", "noone@Ó¨example.com"); } static const gchar * @@ -218,14 +218,14 @@ static void test_jabber_util_jabber_normalize(void) { PurpleTestStringData data[] = { { - "[email protected]", - "[email protected]", + "[email protected]", + "[email protected]", }, { - "[email protected]/", - "[email protected]", + "[email protected]/", + "[email protected]", }, { - "[email protected]/resource", - "[email protected]", + "[email protected]/resource", + "[email protected]", }, { NULL, NULL, _______________________________________________ Commits mailing list [email protected] https://pidgin.im/cgi-bin/mailman/listinfo/commits