/pidgin/main: 5dc70173ccb4: Change some names, protect the innoc...

Gary Kramlich grim at reaperworld.com
Wed Mar 30 19:25:28 EDT 2016


Changeset: 5dc70173ccb41f70391364eb64ac9dd3606158fa
Author:	 Gary Kramlich <grim at reaperworld.com>
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 at alkjaweflkj",
-		"mark.doliner at gmail.com",
-		"mark.doliner at gmail.com/Test12345",
-		"mark.doliner at gmail.com/Test at 12345",
-		"mark.doliner at gmail.com/Te/st at 12@//345",
+		"noone at example.com",
+		"noone at example.com/Test12345",
+		"noone at example.com/Test at 12345",
+		"noone at example.com/Te/st at 12@//345",
 		"わいど@conference.jabber.org",
 		"まりるーむ@conference.jabber.org",
-		"mark.doliner at gmail.com/まりるーむ",
-		"mark.doliner at gmail/stuff.org",
-		"stuart at nödåtXäYZ.se",
-		"stuart at nödåtXäYZ.se/まりるーむ",
-		"mark.doliner@わいど.org",
-		"nick@まつ.おおかみ.net",
-		"paul at 10.0.42.230/s",
-		"paul@[::1]", /* IPv6 */
-		"paul@[2001:470:1f05:d58::2]",
-		"paul@[2001:470:1f05:d58::2]/foo",
-		"pa=ul at 10.0.42.230",
-		"pa,ul at 10.0.42.230",
+		"noone at example.com/まりるーむ",
+		"noone at example/stuff.org",
+		"noone at nödåtXäYZ.example",
+		"noone at nödåtXäYZ.example/まりるーむ",
+		"noone@わいど.org",
+		"noone@まつ.おおかみ.net",
+		"noone at 310.0.42.230/s",
+		"noone@[::1]", /* IPv6 */
+		"noone@[3001:470:1f05:d58::2]",
+		"noone@[3001:470:1f05:d58::2]/foo",
+		"no=one at 310.0.42.230",
+		"no,one at 310.0.42.230",
 		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 at doliner@gmail.com/Test12345",
-		"@gmail.com/Test at 12345",
+		"noone@@example.com/Test12345",
+		"no at one@example.com/Test12345",
+		"@example.com/Test at 12345",
 		"/Test at 12345",
-		"mark.doliner@",
-		"mark.doliner/",
-		"mark.doliner at gmail_stuff.org",
-		"mark.doliner at gmail[stuff.org",
-		"mark.doliner at gmail\\stuff.org",
-		"paul@[::1]124",
-		"paul at 2[::1]124/as",
-		"paul@まつ.おおかみ/\x01",
+		"noone@",
+		"noone/",
+		"noone at gmail_stuff.org",
+		"noone at gmail[stuff.org",
+		"noone at gmail\\stuff.org",
+		"noone@[::1]124",
+		"noone at 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", "PaUL at darkrain42.org");
-	assert_jid_parts("paul", "darkrain42.org", "paul at DaRkRaIn42.org");
+	assert_jid_parts("noone", "example.com", "NoOne at example.com");
+	assert_jid_parts("noone", "example.com", "noone at ExaMPle.CoM");
 
 	/* 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[] = {
 		{
-			"PaUL at DaRkRain42.org",
-			"paul at darkrain42.org",
+			"NoOnE at ExAMplE.com",
+			"noone at example.com",
 		}, {
-			"PaUL at DaRkRain42.org/",
-			"paul at darkrain42.org",
+			"NoOnE at ExampLE.cOM/",
+			"noone at example.com",
 		}, {
-			"PaUL at DaRkRain42.org/resource",
-			"paul at darkrain42.org",
+			"NoONe at exAMPle.CoM/resource",
+			"noone at example.com",
 		}, {
 			NULL,
 			NULL,



More information about the Commits mailing list