/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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.