1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_TestUrisToValidate_h
8 #define mozilla_TestUrisToValidate_h
10 const wchar_t* kTestUris
[] = {
13 L
"callto:%41%2D%31%5Ftest"ing?%41%31%00.txt",
16 L
"fdaction:%41%2D%31%5Ftest"ing?%41%31%00.txt",
19 L
"feed:%41%2D%31%5Ftest"ing?%41%31%00.txt",
22 L
"feeds:%41%2D%31%5Ftest"ing?%41%31%00.txt",
25 L
"file:///%41%2D%31%5Ftest%22ing?%41%31%00.txt",
27 L
"firefox.url:%00.txt",
28 L
"firefox.url:%41%2D%31%5Ftest"ing?%41%31%00.txt",
30 L
"firefoxurl:%00.txt",
31 L
"firefoxurl:%41%2D%31%5Ftest"ing?%41%31%00.txt",
34 L
"ftp:%41%2D%31%5Ftest"ing?%41%31%00.txt",
37 L
"gopher:%41%2D%31%5Ftest"ing?%41%31%00.txt",
40 L
"gtalk:%41%2D%31%5Ftest"ing?%41%31%00.txt",
43 L
"HTTP:%41%2D%31%5Ftest"ing?%41%31%00.txt",
46 L
"http:%41%2D%31%5Ftest"ing?%41%31%00.txt",
47 L
"https://bug389580.bmoattachments.org/%.txt",
48 L
"https://bug389580.bmoattachments.org/%00.txt",
49 L
"https://bug389580.bmoattachments.org/"
50 L
"%41%2D%31%5Ftest%22ing?%41%31%00.txt",
53 L
"ie.ftp:%41%2D%31%5Ftest"ing?%41%31%00.txt",
56 L
"ie.http:%41%2D%31%5Ftest"ing?%41%31%00.txt",
59 L
"ie.https:%41%2D%31%5Ftest"ing?%41%31%00.txt",
62 L
"irc:%41%2D%31%5Ftest"ing?%41%31%00.txt",
65 L
"ircs:%41%2D%31%5Ftest"ing?%41%31%00.txt",
68 L
"itms:%41%2D%31%5Ftest"ing?%41%31%00.txt",
71 L
"itmss:%41%2D%31%5Ftest"ing?%41%31%00.txt",
74 L
"itpc:%41%2D%31%5Ftest"ing?%41%31%00.txt",
75 L
"itunes.assocprotocol.itms:%.txt",
76 L
"itunes.assocprotocol.itms:%00.txt",
77 L
"itunes.assocprotocol.itms:%41%2D%31%5Ftest"ing?%41%31%00.txt",
78 L
"itunes.assocprotocol.itmss:%.txt",
79 L
"itunes.assocprotocol.itmss:%00.txt",
80 L
"itunes.assocprotocol.itmss:%41%2D%31%5Ftest"ing?%41%31%00.txt",
81 L
"itunes.assocprotocol.itpc:%.txt",
82 L
"itunes.assocprotocol.itpc:%00.txt",
83 L
"itunes.assocprotocol.itpc:%41%2D%31%5Ftest"ing?%41%31%00.txt",
86 L
"ldap:%41%2D%31%5Ftest"ing?%41%31%00.txt",
89 L
"mailto:%41%2D%31%5Ftest"ing?%41%31%00.txt",
92 L
"mms:%41%2D%31%5Ftest"ing?%41%31%00.txt",
95 L
"mmst:%41%2D%31%5Ftest"ing?%41%31%00.txt",
98 L
"mmst:%41%2D%31%5Ftest"ing?%41%31%00.txt",
101 L
"mmsu:%41%2D%31%5Ftest"ing?%41%31%00.txt",
104 L
"mmsu:%41%2D%31%5Ftest"ing?%41%31%00.txt",
105 L
"https://bug389580.bmoattachments.org/"
106 L
"Mozilla%20Thunderbird.Url.Mailto:%.txt",
107 L
"https://bug389580.bmoattachments.org/"
108 L
"Mozilla%20Thunderbird.Url.Mailto:%00.txt",
109 L
"https://bug389580.bmoattachments.org/"
110 L
"Mozilla%20Thunderbird.Url.Mailto:%41%2D%31%5Ftest%22ing?%41%31%00.txt",
111 L
"navigatorurl:%.txt",
112 L
"navigatorurl:%00.txt",
113 L
"navigatorurl:%41%2D%31%5Ftest"ing?%41%31%00.txt",
116 L
"news:%41%2D%31%5Ftest"ing?%41%31%00.txt",
119 L
"nntp:%41%2D%31%5Ftest"ing?%41%31%00.txt",
122 L
"oms:%41%2D%31%5Ftest"ing?%41%31%00.txt",
125 L
"outlook:%41%2D%31%5Ftest"ing?%41%31%00.txt",
126 L
"outlook.url.feed:%.txt",
127 L
"outlook.url.feed:%00.txt",
128 L
"outlook.url.feed:%41%2D%31%5Ftest"ing?%41%31%00.txt",
129 L
"outlook.url.mailto:%.txt",
130 L
"outlook.url.mailto:%00.txt",
131 L
"outlook.url.mailto:%41%2D%31%5Ftest"ing?%41%31%00.txt",
132 L
"outlook.url.webcal:%.txt",
133 L
"outlook.url.webcal:%00.txt",
134 L
"outlook.url.webcal:%41%2D%31%5Ftest"ing?%41%31%00.txt",
135 L
"outlookfeed:%.txt",
136 L
"outlookfeed:%00.txt",
137 L
"outlookfeed:%41%2D%31%5Ftest"ing?%41%31%00.txt",
138 L
"outlookfeeds:%.txt",
139 L
"outlookfeeds:%00.txt",
140 L
"outlookfeeds:%41%2D%31%5Ftest"ing?%41%31%00.txt",
143 L
"pnm:%41%2D%31%5Ftest"ing?%41%31%00.txt",
144 L
"prls.intappfile.ftp:%.txt",
145 L
"prls.intappfile.ftp:%00.txt",
146 L
"prls.intappfile.ftp:%41%2D%31%5Ftest"ing?%41%31%00.txt",
147 L
"prls.intappfile.http:%.txt",
148 L
"prls.intappfile.http:%00.txt",
149 L
"prls.intappfile.http:%41%2D%31%5Ftest"ing?%41%31%00.txt",
150 L
"prls.intappfile.https:%.txt",
151 L
"prls.intappfile.https:%00.txt",
152 L
"prls.intappfile.https:%41%2D%31%5Ftest"ing?%41%31%00.txt",
153 L
"prls.intappfile.mailto:%.txt",
154 L
"prls.intappfile.mailto:%00.txt",
155 L
"prls.intappfile.mailto:%41%2D%31%5Ftest"ing?%41%31%00.txt",
158 L
"rlogin:%41%2D%31%5Ftest"ing?%41%31%00.txt",
161 L
"rtsp:%41%2D%31%5Ftest"ing?%41%31%00.txt",
164 L
"scp:%41%2D%31%5Ftest"ing?%41%31%00.txt",
167 L
"sftp:%41%2D%31%5Ftest"ing?%41%31%00.txt",
170 L
"sip:%41%2D%31%5Ftest"ing?%41%31%00.txt",
173 L
"skype:%41%2D%31%5Ftest"ing?%41%31%00.txt",
176 L
"snews:%41%2D%31%5Ftest"ing?%41%31%00.txt",
179 L
"telnet:%41%2D%31%5Ftest"ing?%41%31%00.txt",
180 L
"thunderbird.url.mailto:%.txt",
181 L
"thunderbird.url.mailto:%00.txt",
182 L
"thunderbird.url.mailto:%41%2D%31%5Ftest"ing?%41%31%00.txt",
183 L
"thunderbird.url.news:%.txt",
184 L
"thunderbird.url.news:%00.txt",
185 L
"thunderbird.url.news:%41%2D%31%5Ftest"ing?%41%31%00.txt",
188 L
"tn3270:%41%2D%31%5Ftest"ing?%41%31%00.txt",
191 L
"tscrec4:%41%2D%31%5Ftest"ing?%41%31%00.txt",
194 L
"webcal:%41%2D%31%5Ftest"ing?%41%31%00.txt",
197 L
"webcal:%41%2D%31%5Ftest"ing?%41%31%00.txt",
200 L
"webcals:%41%2D%31%5Ftest"ing?%41%31%00.txt",
201 L
"windowscalendar.urlwebcal.1:%.txt",
202 L
"windowscalendar.urlwebcal.1:%00.txt",
203 L
"windowscalendar.urlwebcal.1:%41%2D%31%5Ftest"ing?%41%31%00.txt",
204 L
"windowsmail.url.mailto:%.txt",
205 L
"windowsmail.url.mailto:%00.txt",
206 L
"windowsmail.url.mailto:%41%2D%31%5Ftest"ing?%41%31%00.txt",
207 L
"windowsmail.url.news:%.txt",
208 L
"windowsmail.url.news:%00.txt",
209 L
"windowsmail.url.news:%41%2D%31%5Ftest"ing?%41%31%00.txt",
210 L
"windowsmail.url.nntp:%.txt",
211 L
"windowsmail.url.nntp:%00.txt",
212 L
"windowsmail.url.nntp:%41%2D%31%5Ftest"ing?%41%31%00.txt",
213 L
"windowsmail.url.snews:%.txt",
214 L
"windowsmail.url.snews:%00.txt",
215 L
"windowsmail.url.snews:%41%2D%31%5Ftest"ing?%41%31%00.txt",
216 L
"wmp11.assocprotocol.mms:%.txt",
217 L
"wmp11.assocprotocol.mms:%00.txt",
218 L
"wmp11.assocprotocol.mms:%41%2D%31%5Ftest"ing?%41%31%00.txt",
221 L
"wpc:%41%2D%31%5Ftest"ing?%41%31%00.txt",
224 L
"ymsgr:%41%2D%31%5Ftest"ing?%41%31%00.txt",
227 L
"acrobat:%41%2D%31%5Ftest"ing?%41%31%00.txt",
230 L
"acsui:%41%2D%31%5Ftest"ing?%41%31%00.txt",
233 L
"aim:%41%2D%31%5Ftest"ing?%41%31%00.txt",
236 L
"aim:%41%2D%31%5Ftest"ing?%41%31%00.txt",
237 L
"allc8.commands.2:%.txt",
238 L
"allc8.commands.2:%00.txt",
239 L
"allc8.commands.2:%41%2D%31%5Ftest"ing?%41%31%00.txt",
240 L
"allholdem.commands.2:%.txt",
241 L
"allholdem.commands.2:%00.txt",
242 L
"allholdem.commands.2:%41%2D%31%5Ftest"ing?%41%31%00.txt",
243 L
"allpoker.commands.2:%.txt",
244 L
"allpoker.commands.2:%00.txt",
245 L
"allpoker.commands.2:%41%2D%31%5Ftest"ing?%41%31%00.txt",
247 L
"aolautofix:%00.txt",
248 L
"aolautofix:%41%2D%31%5Ftest"ing?%41%31%00.txt",
251 L
"aolds:%41%2D%31%5Ftest"ing?%41%31%00.txt",
254 L
"bc:%41%2D%31%5Ftest"ing?%41%31%00.txt",
257 L
"bctp:%41%2D%31%5Ftest"ing?%41%31%00.txt",
259 L
"bittorrent:%00.txt",
260 L
"bittorrent:%41%2D%31%5Ftest"ing?%41%31%00.txt",
263 L
"camfrog:%41%2D%31%5Ftest"ing?%41%31%00.txt",
266 L
"csi:%41%2D%31%5Ftest"ing?%41%31%00.txt",
269 L
"cvs:%41%2D%31%5Ftest"ing?%41%31%00.txt",
272 L
"daap:%41%2D%31%5Ftest"ing?%41%31%00.txt",
275 L
"ed2k:%41%2D%31%5Ftest"ing?%41%31%00.txt",
276 L
"explorer.assocprotocol.search-ms:%.txt",
277 L
"explorer.assocprotocol.search-ms:%00.txt",
278 L
"explorer.assocprotocol.search-ms:%41%2D%31%5Ftest"ing?%41%31%00.txt",
279 L
"gizmoproject:%.txt",
280 L
"gizmoproject:%00.txt",
281 L
"gizmoproject:%41%2D%31%5Ftest"ing?%41%31%00.txt",
284 L
"gnet:%41%2D%31%5Ftest"ing?%41%31%00.txt",
287 L
"gnutella:%41%2D%31%5Ftest"ing?%41%31%00.txt",
290 L
"gsarcade:%41%2D%31%5Ftest"ing?%41%31%00.txt",
293 L
"hcp:%41%2D%31%5Ftest"ing?%41%31%00.txt",
296 L
"icquser:%41%2D%31%5Ftest"ing?%41%31%00.txt",
299 L
"icy:%41%2D%31%5Ftest"ing?%41%31%00.txt",
302 L
"imesync:%41%2D%31%5Ftest"ing?%41%31%00.txt",
303 L
"itunes.assocprotocol.daap:%.txt",
304 L
"itunes.assocprotocol.daap:%00.txt",
305 L
"itunes.assocprotocol.daap:%41%2D%31%5Ftest"ing?%41%31%00.txt",
306 L
"itunes.assocprotocol.pcast:%.txt",
307 L
"itunes.assocprotocol.pcast:%00.txt",
308 L
"itunes.assocprotocol.pcast:%41%2D%31%5Ftest"ing?%41%31%00.txt",
311 L
"joost:%41%2D%31%5Ftest"ing?%41%31%00.txt",
313 L
"m4macdrive:%00.txt",
314 L
"m4macdrive:%41%2D%31%5Ftest"ing?%41%31%00.txt",
317 L
"magnet:%41%2D%31%5Ftest"ing?%41%31%00.txt",
320 L
"mapi:%41%2D%31%5Ftest"ing?%41%31%00.txt",
323 L
"mc12:%41%2D%31%5Ftest"ing?%41%31%00.txt",
324 L
"mediajukebox:%.txt",
325 L
"mediajukebox:%00.txt",
326 L
"mediajukebox:%41%2D%31%5Ftest"ing?%41%31%00.txt",
329 L
"morpheus:%41%2D%31%5Ftest"ing?%41%31%00.txt",
332 L
"mp2p:%41%2D%31%5Ftest"ing?%41%31%00.txt",
335 L
"mpodcast:%41%2D%31%5Ftest"ing?%41%31%00.txt",
338 L
"msbd:%41%2D%31%5Ftest"ing?%41%31%00.txt",
341 L
"msbd:%41%2D%31%5Ftest"ing?%41%31%00.txt",
342 L
"msdigitallocker:%.txt",
343 L
"msdigitallocker:%00.txt",
344 L
"msdigitallocker:%41%2D%31%5Ftest"ing?%41%31%00.txt",
345 L
"outlook.url.stssync:%.txt",
346 L
"outlook.url.stssync:%00.txt",
347 L
"outlook.url.stssync:%41%2D%31%5Ftest"ing?%41%31%00.txt",
350 L
"p2p:%41%2D%31%5Ftest"ing?%41%31%00.txt",
353 L
"pando:%41%2D%31%5Ftest"ing?%41%31%00.txt",
356 L
"pcast:%41%2D%31%5Ftest"ing?%41%31%00.txt",
359 L
"picasa:%41%2D%31%5Ftest"ing?%41%31%00.txt",
362 L
"plaxo:%41%2D%31%5Ftest"ing?%41%31%00.txt",
365 L
"play:%41%2D%31%5Ftest"ing?%41%31%00.txt",
368 L
"podcast:%41%2D%31%5Ftest"ing?%41%31%00.txt",
371 L
"ppmate:%41%2D%31%5Ftest"ing?%41%31%00.txt",
374 L
"ppmates:%41%2D%31%5Ftest"ing?%41%31%00.txt",
377 L
"ppstream:%41%2D%31%5Ftest"ing?%41%31%00.txt",
379 L
"quicktime:%00.txt",
380 L
"quicktime:%41%2D%31%5Ftest"ing?%41%31%00.txt",
381 L
"realplayer.autoplay.6:%.txt",
382 L
"realplayer.autoplay.6:%00.txt",
383 L
"realplayer.autoplay.6:%41%2D%31%5Ftest"ing?%41%31%00.txt",
384 L
"realplayer.cdburn.6:%.txt",
385 L
"realplayer.cdburn.6:%00.txt",
386 L
"realplayer.cdburn.6:%41%2D%31%5Ftest"ing?%41%31%00.txt",
389 L
"rhap:%41%2D%31%5Ftest"ing?%41%31%00.txt",
392 L
"sc:%41%2D%31%5Ftest"ing?%41%31%00.txt",
394 L
"search-ms:%00.txt",
395 L
"search-ms:%41%2D%31%5Ftest"ing?%41%31%00.txt",
398 L
"shareaza:%41%2D%31%5Ftest"ing?%41%31%00.txt",
401 L
"shell:%41%2D%31%5Ftest"ing?%41%31%00.txt",
404 L
"shout:%41%2D%31%5Ftest"ing?%41%31%00.txt",
407 L
"sig2dat:%41%2D%31%5Ftest"ing?%41%31%00.txt",
410 L
"sop:%41%2D%31%5Ftest"ing?%41%31%00.txt",
413 L
"steam:%41%2D%31%5Ftest"ing?%41%31%00.txt",
416 L
"stssync:%41%2D%31%5Ftest"ing?%41%31%00.txt",
419 L
"svn:%41%2D%31%5Ftest"ing?%41%31%00.txt",
422 L
"svn+ssh:%41%2D%31%5Ftest"ing?%41%31%00.txt",
425 L
"synacast:%41%2D%31%5Ftest"ing?%41%31%00.txt",
428 L
"torrent:%41%2D%31%5Ftest"ing?%41%31%00.txt",
431 L
"tsvn:%41%2D%31%5Ftest"ing?%41%31%00.txt",
434 L
"tvants:%41%2D%31%5Ftest"ing?%41%31%00.txt",
437 L
"tvu:%41%2D%31%5Ftest"ing?%41%31%00.txt",
440 L
"unsv:%41%2D%31%5Ftest"ing?%41%31%00.txt",
443 L
"uvox:%41%2D%31%5Ftest"ing?%41%31%00.txt",
446 L
"ventrilo:%41%2D%31%5Ftest"ing?%41%31%00.txt",
449 L
"vs:%41%2D%31%5Ftest"ing?%41%31%00.txt",
452 L
"zune:%41%2D%31%5Ftest"ing?%41%31%00.txt",
453 L
"https://example.com/?a=123&b=456",
454 L
"https://example.com/#123?a=123&b=456",
455 L
"https://example.com/?#123a=123&b=456",
456 L
"https://example.com/?a=123&b=456#123",
457 L
"mailto:%41%42%23%31",
458 L
"mailto:%41%42%23%31#fragment",
459 L
"news:%41%42%23%31",
460 L
"news:%41%42%23%31#fragment",
461 L
"microsoft-edge:%41%42%23%31",
462 L
"microsoft-edge:%41%42%23%31#fragment",
463 L
"microsoft-edge:%41%42%23%31#fragment#",
464 L
"microsoft-edge:%41%42%23%31####",
465 L
"something-unknown:",
466 L
"something-unknown:x=123",
467 L
"something-unknown:?=123",
468 L
"something-unknown:#code=0123456789%200123456789&x=01234567890123456789",
471 #endif // mozilla_TestUrisToValidate_h