Update contrib.
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __URIANDAUTHORITYTESTS_H__
17 #define __URIANDAUTHORITYTESTS_H__
21 #include "CUriAndAuthorityTest.h"
25 // Uri Resolving test data
29 _LIT(KBaseFile, "file://c|/data.wml");
30 _LIT(KRelativeFile1, "#card2"); _LIT(KResolvedFile1, "file://c|/data.wml#card2");
32 _LIT(KBase, "http://a/b/c/d;p?q");
33 _LIT(KRelative1, "g:h"); _LIT(KResolved1, "g:h");
34 _LIT(KRelative2, "g"); _LIT(KResolved2, "http://a/b/c/g");
35 _LIT(KRelative3, "./g"); _LIT(KResolved3, "http://a/b/c/g");
36 _LIT(KRelative4, "g/"); _LIT(KResolved4, "http://a/b/c/g/");
37 _LIT(KRelative5, "/g"); _LIT(KResolved5, "http://a/g");
38 _LIT(KRelative6, "//g"); _LIT(KResolved6, "http://g");
39 _LIT(KRelative7, "?y"); _LIT(KResolved7, "http://a/b/c/d;p?y");
40 _LIT(KRelative8, "g?y"); _LIT(KResolved8, "http://a/b/c/g?y");
41 _LIT(KRelative9, "#s"); _LIT(KResolved9, "http://a/b/c/d;p?q#s");
42 _LIT(KRelative10, "g#s"); _LIT(KResolved10, "http://a/b/c/g#s");
43 _LIT(KRelative11, "g?y#s"); _LIT(KResolved11, "http://a/b/c/g?y#s");
44 _LIT(KRelative12, ";x"); _LIT(KResolved12, "http://a/b/c/;x");
45 _LIT(KRelative13, "g;x"); _LIT(KResolved13, "http://a/b/c/g;x");
46 _LIT(KRelative14, "g;x?y#s"); _LIT(KResolved14, "http://a/b/c/g;x?y#s");
47 _LIT(KRelative15, "."); _LIT(KResolved15, "http://a/b/c/");
48 _LIT(KRelative16, "./"); _LIT(KResolved16, "http://a/b/c/");
49 _LIT(KRelative17, ".."); _LIT(KResolved17, "http://a/b/");
50 _LIT(KRelative18, "../"); _LIT(KResolved18, "http://a/b/");
51 _LIT(KRelative19, "../g"); _LIT(KResolved19, "http://a/b/g");
52 _LIT(KRelative20, "../.."); _LIT(KResolved20, "http://a/");
53 _LIT(KRelative21, "../../"); _LIT(KResolved21, "http://a/");
54 _LIT(KRelative22, "../../g"); _LIT(KResolved22, "http://a/g");
58 _LIT(KRelative23, "../../../g"); _LIT(KResolved23, "http://a/../g"); //The Resolved Uri as per RFC3986 is http://a/g
59 _LIT(KRelative24, "../../../../g"); _LIT(KResolved24, "http://a/../../g"); //The Resolved Uri as per RFC3986 is http://a/g
60 _LIT(KRelative25, "/./g"); _LIT(KResolved25, "http://a/./g"); //The Resolved Uri as per RFC3986 is http://a/g
61 _LIT(KRelative26, "/../g"); _LIT(KResolved26, "http://a/../g"); //The Resolved Uri as per RFC3986 is http://a/g
62 _LIT(KRelative27, "g."); _LIT(KResolved27, "http://a/b/c/g.");
63 _LIT(KRelative28, ".g"); _LIT(KResolved28, "http://a/b/c/.g");
64 _LIT(KRelative29, "g.."); _LIT(KResolved29, "http://a/b/c/g..");
65 _LIT(KRelative30, "..g"); _LIT(KResolved30, "http://a/b/c/..g");
67 // non sensical uses of '.' and '..'
68 _LIT(KRelative31, "./../g"); _LIT(KResolved31, "http://a/b/g");
69 _LIT(KRelative32, "./g/."); _LIT(KResolved32, "http://a/b/c/g/");
70 _LIT(KRelative33, "g/./h"); _LIT(KResolved33, "http://a/b/c/g/h");
71 _LIT(KRelative34, "g/../h"); _LIT(KResolved34, "http://a/b/c/h");
72 _LIT(KRelative35, "g;x=1/./y"); _LIT(KResolved35, "http://a/b/c/g;x=1/y");
73 _LIT(KRelative36, "g;x=1/../y"); _LIT(KResolved36, "http://a/b/c/y");
75 // use of query and fragment
76 _LIT(KRelative37, "g?y/./x"); _LIT(KResolved37, "http://a/b/c/g?y/./x");
77 _LIT(KRelative38, "g?y/../x"); _LIT(KResolved38, "http://a/b/c/g?y/../x");
78 _LIT(KRelative39, "g#s/./x"); _LIT(KResolved39, "http://a/b/c/g#s/./x");
79 _LIT(KRelative40, "g#s/../x"); _LIT(KResolved40, "http://a/b/c/g#s/../x");
81 // backwards compatiable , do relative parsing if schemes match
82 _LIT(KRelative41, "http:g"); _LIT(KResolved41, "http://a/b/c/g");
84 // possible bug if relative url is a network path with a path aswell!
85 _LIT(KRelative42, "//g/h/i"); _LIT(KResolved42, "http://g/h/i");
87 // ResolveL defect EDNPHAD-4J6EUY
88 _LIT(KBaseBug1, "http://wap.h2g2.com#welcome");
89 _LIT(KRelativeBug1, "funcs.wml#setup(\")"); _LIT(KResolvedBug1, "http://wap.h2g2.com/funcs.wml#setup(\")");
91 _LIT(KBaseBug2, "http://wap.h2g2.com/welcome");
92 _LIT(KRelativeBug2, "funcs.wml#setup(\")"); _LIT(KResolvedBug2, "http://wap.h2g2.com/funcs.wml#setup(\")");
93 _LIT(KRelativeBug3, "home/funcs.wml#setup(\")"); _LIT(KResolvedBug3, "http://wap.h2g2.com/home/funcs.wml#setup(\")");
95 // ResolveL defect EDNFUDN-4JYFH7
96 _LIT(KBaseBug3, "http://mobile.iii.co.uk");
97 _LIT(KRelativeBug4, "i/iii_splash.wbm"); _LIT(KResolvedBug4, "http://mobile.iii.co.uk/i/iii_splash.wbm");
99 // Relative fragment defect EDNEHHO-4M5BU6 - wml/state/variables/substitution/4 -test doesn't work
100 _LIT(KFragmentBase, "http://trras02.it.cellulardata.com/vswap114/htroot/wap/wml/state/variables/substitution/4/?v=dozig&ts=0003&ti=3");
101 _LIT(KFragmentRelative, "#card1");
102 _LIT(KFragmentResolved, "http://trras02.it.cellulardata.com/vswap114/htroot/wap/wml/state/variables/substitution/4/?v=dozig&ts=0003&ti=3#card1");
106 // Uri and Authority component extraction test data
110 _LIT(KComps0, "http://user:pass@location.com:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
111 _LIT(KScheme0, "http");
112 _LIT(KAuthority0, "user:pass@location.com:1666");
113 _LIT(KPath0, "/abcd/ada/resource.cgi;x=123;df223;2342;2323");
114 _LIT(KQuery0, "asd=b");
115 _LIT(KFragment0, "part");
116 _LIT(KUser0, "user");
117 _LIT(KPass0, "pass");
118 _LIT(KHost0, "location.com");
119 _LIT(KUserInfo0, "user:pass");
120 _LIT(KPort0, "1666");
122 _LIT(KComps1, "http://user:pass@location.com:/abcd/ada/resource.cgi?asd=b");
123 _LIT(KScheme1, "http");
124 _LIT(KAuthority1, "user:pass@location.com:");
125 _LIT(KPath1, "/abcd/ada/resource.cgi");
126 _LIT(KQuery1, "asd=b");
127 _LIT(KFragment1, "");
128 _LIT(KUser1, "user");
129 _LIT(KPass1, "pass");
130 _LIT(KHost1, "location.com");
131 _LIT(KUserInfo1, "user:pass");
134 _LIT(KComps2, "http://user:pass@location.com:1666/abcd/ada/resource.cgi");
135 _LIT(KScheme2, "http");
136 _LIT(KAuthority2, "user:pass@location.com:1666");
137 _LIT(KPath2, "/abcd/ada/resource.cgi");
139 _LIT(KFragment2, "");
140 _LIT(KUser2, "user");
141 _LIT(KPass2, "pass");
142 _LIT(KHost2, "location.com");
143 _LIT(KUserInfo2, "user:pass");
144 _LIT(KPort2, "1666");
146 _LIT(KComps3, "http://user:pass@location.com/abcd/ada/");
147 _LIT(KScheme3, "http");
148 _LIT(KAuthority3, "user:pass@location.com");
149 _LIT(KPath3, "/abcd/ada/");
151 _LIT(KFragment3, "");
152 _LIT(KUser3, "user");
153 _LIT(KPass3, "pass");
154 _LIT(KHost3, "location.com");
155 _LIT(KUserInfo3, "user:pass");
158 _LIT(KComps4, "http://user:pass@location.com");
159 _LIT(KScheme4, "http");
160 _LIT(KAuthority4, "user:pass@location.com");
163 _LIT(KFragment4, "");
164 _LIT(KUser4, "user");
165 _LIT(KPass4, "pass");
166 _LIT(KHost4, "location.com");
167 _LIT(KUserInfo4, "user:pass");
170 _LIT(KComps5, "http://");
171 _LIT(KScheme5, "http");
172 _LIT(KAuthority5, "");
175 _LIT(KFragment5, "");
179 _LIT(KUserInfo5, "");
184 _LIT(KAuthority6, "");
187 _LIT(KFragment6, "");
191 _LIT(KUserInfo6, "");
194 _LIT(KComps10, "http://user:pass@location.com/abcd/ada/resource.cgi?asd=b#pa://rt");
195 _LIT(KScheme10, "http");
196 _LIT(KAuthority10, "user:pass@location.com");
197 _LIT(KPath10, "/abcd/ada/resource.cgi");
198 _LIT(KQuery10, "asd=b");
199 _LIT(KFragment10, "pa://rt");
200 _LIT(KUser10, "user");
201 _LIT(KPass10, "pass");
202 _LIT(KHost10, "location.com");
203 _LIT(KUserInfo10, "user:pass");
206 _LIT(KComps11, "http://user:pass@location.com/abcd/ada/resource.cgi?as/d=b#pa://rt");
207 _LIT(KScheme11, "http");
208 _LIT(KAuthority11, "user:pass@location.com");
209 _LIT(KPath11, "/abcd/ada/resource.cgi");
210 _LIT(KQuery11, "as/d=b");
211 _LIT(KFragment11, "pa://rt");
212 _LIT(KUser11, "user");
213 _LIT(KPass11, "pass");
214 _LIT(KHost11, "location.com");
215 _LIT(KUserInfo11, "user:pass");
218 _LIT(KComps12, "http://user:pass@location.com/abcd/ada/reso://urce.cgi?asd=b#pa://rt");
219 _LIT(KScheme12, "http");
220 _LIT(KAuthority12, "user:pass@location.com");
221 _LIT(KPath12, "/abcd/ada/reso://urce.cgi");
222 _LIT(KQuery12, "asd=b");
223 _LIT(KFragment12, "pa://rt");
224 _LIT(KUser12, "user");
225 _LIT(KPass12, "pass");
226 _LIT(KHost12, "location.com");
227 _LIT(KUserInfo12, "user:pass");
230 _LIT(KComps13, "http://user:pass@location.com/abc://d/ada/resource.cgi?asd=b#pa://rt");
231 _LIT(KScheme13, "http");
232 _LIT(KAuthority13, "user:pass@location.com");
233 _LIT(KPath13, "/abc://d/ada/resource.cgi");
234 _LIT(KQuery13, "asd=b");
235 _LIT(KFragment13, "pa://rt");
236 _LIT(KUser13, "user");
237 _LIT(KPass13, "pass");
238 _LIT(KHost13, "location.com");
239 _LIT(KUserInfo13, "user:pass");
242 _LIT(KComps14, "http://user:pass@loc://ation.com/abcd/ada/resource.cgi?asd=b#pa://rt");
243 _LIT(KScheme14, "http");
244 _LIT(KAuthority14, "user:pass@loc:");
245 _LIT(KPath14, "//ation.com/abcd/ada/resource.cgi");
246 _LIT(KQuery14, "asd=b");
247 _LIT(KFragment14, "pa://rt");
248 _LIT(KUser14, "user");
249 _LIT(KPass14, "pass");
250 _LIT(KHost14, "loc");
251 _LIT(KUserInfo14, "user:pass");
254 _LIT(KComps15, "ht~tp://user:pass@location.com/abcd/ada/resource.cgi?asd=b#pa://rt");
255 _LIT(KScheme15, "ht~tp");
256 _LIT(KAuthority15, "user:pass@location.com");
257 _LIT(KPath15, "/abcd/ada/resource.cgi");
258 _LIT(KQuery15, "asd=b");
259 _LIT(KFragment15, "pa://rt");
260 _LIT(KUser15, "user");
261 _LIT(KPass15, "pass");
262 _LIT(KHost15, "location.com");
263 _LIT(KUserInfo15, "user:pass");
266 _LIT(KComps16, "user:pass@location.com/abcd/ada/resource.cgi?asd=b#pa://rt");
267 _LIT(KScheme16, "user");
268 _LIT(KAuthority16, "");
269 _LIT(KPath16, "pass@location.com/abcd/ada/resource.cgi");
270 _LIT(KQuery16, "asd=b");
271 _LIT(KFragment16, "pa://rt");
275 _LIT(KUserInfo16, "");
278 _LIT(KComps17, "/abcd/ada/resource.cgi?asd=b#pa://rt");
280 _LIT(KAuthority17, "");
281 _LIT(KPath17, "/abcd/ada/resource.cgi");
282 _LIT(KQuery17, "asd=b");
283 _LIT(KFragment17, "pa://rt");
287 _LIT(KUserInfo17, "");
290 _LIT(KComps18, "resource.cgi?asd=b#pa://rt");
292 _LIT(KAuthority18, "");
293 _LIT(KPath18, "resource.cgi");
294 _LIT(KQuery18, "asd=b");
295 _LIT(KFragment18, "pa://rt");
299 _LIT(KUserInfo18, "");
302 _LIT(KComps19, "?asd=b#pa://rt");
304 _LIT(KAuthority19, "");
306 _LIT(KQuery19, "asd=b");
307 _LIT(KFragment19, "pa://rt");
311 _LIT(KUserInfo19, "");
314 _LIT(KComps20, "#pa://rt");
316 _LIT(KAuthority20, "");
319 _LIT(KFragment20, "pa://rt");
323 _LIT(KUserInfo20, "");
326 _LIT(KComps21, "resource.cgi");
328 _LIT(KAuthority21, "");
329 _LIT(KPath21, "resource.cgi");
331 _LIT(KFragment21, "");
335 _LIT(KUserInfo21, "");
338 _LIT(KComps22, "?q#f");
340 _LIT(KAuthority22, "");
343 _LIT(KFragment22, "f");
347 _LIT(KUserInfo22, "");
350 _LIT(KComps23, "?q");
352 _LIT(KAuthority23, "");
355 _LIT(KFragment23, "");
359 _LIT(KUserInfo23, "");
362 _LIT(KComps24, "#f");
364 _LIT(KAuthority24, "");
367 _LIT(KFragment24, "f");
371 _LIT(KUserInfo24, "");
374 _LIT(KComps25, "http://location.com/abcd/ada/resource.cgi?asd=b#pa://rt");
375 _LIT(KScheme25, "http");
376 _LIT(KAuthority25, "location.com");
377 _LIT(KPath25, "/abcd/ada/resource.cgi");
378 _LIT(KQuery25, "asd=b");
379 _LIT(KFragment25, "pa://rt");
382 _LIT(KHost25, "location.com");
383 _LIT(KUserInfo25, "");
386 _LIT(KComps26, "http://user@location.com/abcd/ada/resource.cgi?asd=b#pa://rt");
387 _LIT(KScheme26, "http");
388 _LIT(KAuthority26, "user@location.com");
389 _LIT(KPath26, "/abcd/ada/resource.cgi");
390 _LIT(KQuery26, "asd=b");
391 _LIT(KFragment26, "pa://rt");
392 _LIT(KUser26, "user");
394 _LIT(KHost26, "location.com");
395 _LIT(KUserInfo26, "user");
398 _LIT(KComps27, "http://wap.opengroup.org/");
399 _LIT(KScheme27, "http");
400 _LIT(KAuthority27, "wap.opengroup.org");
403 _LIT(KFragment27, "");
406 _LIT(KHost27, "wap.opengroup.org");
407 _LIT(KUserInfo27, "");
410 _LIT(KComps28, "http://wap.opengroup.org/#index.wml");
411 _LIT(KScheme28, "http");
412 _LIT(KAuthority28, "wap.opengroup.org");
415 _LIT(KFragment28, "index.wml");
418 _LIT(KHost28, "wap.opengroup.org");
419 _LIT(KUserInfo28, "");
422 _LIT(KComps29, "http://wap.opengroup.org/?mystuff");
423 _LIT(KScheme29, "http");
424 _LIT(KAuthority29, "wap.opengroup.org");
426 _LIT(KQuery29, "mystuff");
427 _LIT(KFragment29, "");
430 _LIT(KHost29, "wap.opengroup.org");
431 _LIT(KUserInfo29, "");
437 _LIT(KComps30, "http://user:pass@[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
438 _LIT(KScheme30, "http");
439 _LIT(KAuthority30, "user:pass@[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:1666");
440 _LIT(KPath30, "/abcd/ada/resource.cgi;x=123;df223;2342;2323");
441 _LIT(KQuery30, "asd=b");
442 _LIT(KFragment30, "part");
443 _LIT(KUser30, "user");
444 _LIT(KPass30, "pass");
445 _LIT(KHost30, "FEDC:BA98:7654:3210:FEDC:BA98:7654:3210");
446 _LIT(KUserInfo30, "user:pass");
447 _LIT(KPort30, "1666");
449 _LIT(KComps31, "http://user:pass@[1080:0:0:0:8:800:200C:417A]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
450 _LIT(KScheme31, "http");
451 _LIT(KAuthority31, "user:pass@[1080:0:0:0:8:800:200C:417A]:1666");
452 _LIT(KPath31, "/abcd/ada/resource.cgi;x=123;df223;2342;2323");
453 _LIT(KQuery31, "asd=b");
454 _LIT(KFragment31, "part");
455 _LIT(KUser31, "user");
456 _LIT(KPass31, "pass");
457 _LIT(KHost31, "1080:0:0:0:8:800:200C:417A");
458 _LIT(KUserInfo31, "user:pass");
459 _LIT(KPort31, "1666");
461 _LIT(KComps32, "http://user:pass@[3ffe:2a00:100:7031::1]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
462 _LIT(KScheme32, "http");
463 _LIT(KAuthority32, "user:pass@[3ffe:2a00:100:7031::1]:1666");
464 _LIT(KPath32, "/abcd/ada/resource.cgi;x=123;df223;2342;2323");
465 _LIT(KQuery32, "asd=b");
466 _LIT(KFragment32, "part");
467 _LIT(KUser32, "user");
468 _LIT(KPass32, "pass");
469 _LIT(KHost32, "3ffe:2a00:100:7031::1");
470 _LIT(KUserInfo32, "user:pass");
471 _LIT(KPort32, "1666");
473 _LIT(KComps33, "http://user:pass@[1080::8:800:200C:417A]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
474 _LIT(KScheme33, "http");
475 _LIT(KAuthority33, "user:pass@[1080::8:800:200C:417A]:1666");
476 _LIT(KPath33, "/abcd/ada/resource.cgi;x=123;df223;2342;2323");
477 _LIT(KQuery33, "asd=b");
478 _LIT(KFragment33, "part");
479 _LIT(KUser33, "user");
480 _LIT(KPass33, "pass");
481 _LIT(KHost33, "1080::8:800:200C:417A");
482 _LIT(KUserInfo33, "user:pass");
483 _LIT(KPort33, "1666");
485 _LIT(KComps34, "http://user:pass@[::192.9.5.5]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
486 _LIT(KScheme34, "http");
487 _LIT(KAuthority34, "user:pass@[::192.9.5.5]:1666");
488 _LIT(KPath34, "/abcd/ada/resource.cgi;x=123;df223;2342;2323");
489 _LIT(KQuery34, "asd=b");
490 _LIT(KFragment34, "part");
491 _LIT(KUser34, "user");
492 _LIT(KPass34, "pass");
493 _LIT(KHost34, "::192.9.5.5");
494 _LIT(KUserInfo34, "user:pass");
495 _LIT(KPort34, "1666");
497 _LIT(KComps35, "http://user:pass@[::FfFf:129.144.52.38]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
498 _LIT(KScheme35, "http");
499 _LIT(KAuthority35, "user:pass@[::FfFf:129.144.52.38]:1666");
500 _LIT(KPath35, "/abcd/ada/resource.cgi;x=123;df223;2342;2323");
501 _LIT(KQuery35, "asd=b");
502 _LIT(KFragment35, "part");
503 _LIT(KUser35, "user");
504 _LIT(KPass35, "pass");
505 _LIT(KHost35, "::FfFf:129.144.52.38");
506 _LIT(KUserInfo35, "user:pass");
507 _LIT(KPort35, "1666");
509 _LIT(KComps36, "http://user:pass@[2010:836B:4179::836B:4179]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
510 _LIT(KScheme36, "http");
511 _LIT(KAuthority36, "user:pass@[2010:836B:4179::836B:4179]:1666");
512 _LIT(KPath36, "/abcd/ada/resource.cgi;x=123;df223;2342;2323");
513 _LIT(KQuery36, "asd=b");
514 _LIT(KFragment36, "part");
515 _LIT(KUser36, "user");
516 _LIT(KPass36, "pass");
517 _LIT(KHost36, "2010:836B:4179::836B:4179");
518 _LIT(KUserInfo36, "user:pass");
519 _LIT(KPort36, "1666");
522 _LIT(KFileName1, "http://www.symbian.com"); _LIT(KFileNameExpected1, "");
523 _LIT(KFileName2, "http://www.symbian.com/"); _LIT(KFileNameExpected2, "");
524 _LIT(KFileName3, "http://www.symbian.com/images/"); _LIT(KFileNameExpected3, "");
525 _LIT(KFileName4, "http://www.symbian.com/images"); _LIT(KFileNameExpected4, "images");
526 _LIT(KFileName5, "http://www.symbian.com/images/epoc/img1.jpg"); _LIT(KFileNameExpected5, "img1.jpg");
527 _LIT(KFileName6, "http://www.symbian.com/file.txt"); _LIT(KFileNameExpected6, "file.txt");
535 // TestCompare input data
537 //_LIT(KUrl0,"http://user:pass@location.com/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part"); // SLPRQG
538 _LIT(KUrl0,"http://user:pass@location.com/abcd/ada/resource.cgi?asd=b#part"); // SLPRQG
539 _LIT(KUrl1,"http://user:pass@location.com/abcd/ada/resource.cgi?asd=b"); // SLPRQ
540 _LIT(KUrl2,"http://user:pass@location.com/abcd/ada/resource.cgi"); // SLPR
541 _LIT(KUrl3,"http://user:pass@location.com/abcd/ada/"); // SLP
542 _LIT(KUrl4,"http://user:pass@location.com"); // SL
543 _LIT(KUrl5,"http://"); // S
546 _LIT(KUrl10,"http://user:pass@location.com/abcd/ada/resource.cgi?asd=b#pa://rt"); // SLPRQg
547 _LIT(KUrl11,"http://user:pass@location.com/abcd/ada/resource.cgi?as/d=b#pa://rt"); // SLPRqG
548 _LIT(KUrl12,"http://user:pass@location.com/abcd/ada/reso://urce.cgi?asd=b#pa://rt"); // SLPrQG
549 _LIT(KUrl13,"http://user:pass@location.com/abc://d/ada/resource.cgi?asd=b#pa://rt"); // SLpRQG
550 _LIT(KUrl14,"http://user:pass@loc://ation.com/abcd/ada/resource.cgi?asd=b#pa://rt"); // SlPRQG
551 _LIT(KUrl15,"ht~tp://user:pass@location.com/abcd/ada/resource.cgi?asd=b#pa://rt"); // sLPRQG
553 _LIT(KUrl16,"user:pass@location.com/abcd/ada/resource.cgi?asd=b#pa://rt"); // SLPRQg
554 _LIT(KUrl17,"/abcd/ada/resource.cgi?asd=b#pa://rt"); // SLPRQg
555 _LIT(KUrl18,"resource.cgi?asd=b#pa://rt"); // SLPRQg
556 _LIT(KUrl19,"?asd=b#pa://rt"); // SLPRQg
557 _LIT(KUrl20,"#pa://rt"); // SLPRQg
558 _LIT(KUrl21,"resource.cgi"); // SLPRQg
560 // Construct with TParseBase test data
562 _LIT(KParse0, "c:\\system\\data.wml"); _LIT(KParseResult0, "file://c|/system/data.wml");
563 _LIT(KParse1, "c:\\wap files\\test.wml"); _LIT(KParseResult1, "file://c|/wap%20files/test.wml"); // Defect EDNTDAS-4N4K72
565 // Unescape url creation test data
567 _LIT(KEscapedString0, "the%20%25%5E%20weather"); _LIT(KUnescapedString0, "the %^ weather");
568 _LIT(KEscapedString1, "%7Bcheck%3C%3Ethis%5B%5Dout%7D"); _LIT(KUnescapedString1, "{check<>this[]out}");
569 _LIT(KEscapedString2a, "Reserved;/?:@&=+$,"); _LIT(KUnescapedString2, "Reserved;/?:@&=+$,");
570 _LIT(KEscapedString2b, "Reserved%3B%2F%3F%3A%40%26%3D%2B%24%2C");
573 // Construction defect EDNFUDN-4K9MD8
575 _LIT(KCtorUrl0, ":\\http://www.bbc.co.uk/mobile/mainmenu.wml");
577 _LIT(KRubbish, "rubbish");
578 _LIT(KSlashRubbish, "/rubbish");
580 // Leading whitespace defect EDNEPTA-4PBHSE - WAP:Go-element causes breakpoint if href-attribute has space in its beginning
581 _LIT(KLeadWhitespace1, " http://wap.iobox.com"); _LIT(KLeadWhitespaceUrl, "http://wap.iobox.com");
582 _LIT(KLeadWhitespace2, " http://wap.iobox.com");
590 _LIT(KUri_IPv6Fragment0,"http://userinfo@[::FfFf:129.144.52.38]:port/a/b/c?query#fragment"); // with fragment
591 _LIT(KUri_IPv6Query0, "http://userinfo@[::FfFf:129.144.52.38]:port/a/b/c?query"); // with query
592 _LIT(KUri_IPv6Path0, "http://userinfo@[::FfFf:129.144.52.38]:port/a/b/c"); // with path
593 _LIT(KUri_IPv6Port0, "http://userinfo@[::FfFf:129.144.52.38]:port"); // with port
594 _LIT(KUri_IPv6UserInfo0,"http://userinfo@[::FfFf:129.144.52.38]"); // with userinfo
595 _LIT(KUri_IPv6Host0, "http://[::FfFf:129.144.52.38]"); // with scheme
601 _LIT(KUri_IPv6HostComp0, "::FfFf:129.144.52.38");
603 _LIT(KUri_Fragment0, "http://userinfo@host:port/a/b/c?query#fragment"); // With fragment
604 _LIT(KUri_Query0, "http://userinfo@host:port/a/b/c?query"); // With query
605 _LIT(KUri_Path0, "http://userinfo@host:port/a/b/c"); // With path
606 _LIT(KUri_Port0, "http://userinfo@host:port"); // With port
607 _LIT(KUri_Userinfo0, "http://userinfo@host"); // With userinfo
608 _LIT(KUri_Host0, "http://host"); // With host
609 _LIT(KUri_Scheme0, "http:"); // With scheme
611 _LIT(KUri_SchemeComp0, "http");
612 _LIT(KUri_UserinfoComp0, "userinfo");
613 _LIT(KUri_HostComp0, "host");
614 _LIT(KUri_PortComp0, "port");
615 _LIT(KUri_PathComp0, "/a/b/c");
616 _LIT(KUri_QueryComp0, "query");
617 _LIT(KUri_FragmentComp0, "fragment");
619 _LIT(KUri_Compare0_a, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
620 _LIT(KUri_Compare0_b, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
621 const TInt KUriMatchFlags0 = (ESchemeFlag | EUserinfoFlag | EHostFlag | EPortFlag | EPathFlag | EQueryFlag | EFragmentFlag);
623 _LIT(KUri_Compare1_a, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
624 _LIT(KUri_Compare1_b, "HTTP://USER@Www.symbian.com:1666/wap/dev/different.wml?name=dave#card1");
625 const TInt KUriMatchFlags1 = (ESchemeFlag | EHostFlag | EPortFlag | EQueryFlag | EFragmentFlag);
627 _LIT(KUri_Compare2_a, "http://user:pass@[fEdC:Ba98:7654:3210:FeDC:BA98:7654:3210]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
628 _LIT(KUri_Compare2_b, "http://user:pass@[FEDC:BA98:7654:3210:fedc:BA98:7654:3210]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
629 const TInt KUriMatchFlags2 = (ESchemeFlag | EUserinfoFlag | EHostFlag | EPortFlag | EPathFlag | EQueryFlag | EFragmentFlag);
631 _LIT(KUri_Compare3_a, "http://Auser:pass@[::FfFf:129.144.52.38]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
632 _LIT(KUri_Compare3_b, "http://Buser:pass@[::FfFf:129.144.52.38]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
633 const TInt KUriMatchFlags3 = (ESchemeFlag | EHostFlag | EPortFlag | EPathFlag | EQueryFlag | EFragmentFlag);
637 _LIT(KUri_SchemeValidation0, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
638 TBool KUri_SchemeValidity0 = ETrue;
640 _LIT(KUri_SchemeValidation1, "ht~tp://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
641 TBool KUri_SchemeValidity1 = EFalse;
643 _LIT(KUri_WithoutFragment0, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
644 _LIT(KUri_WithoutFragment_Result0, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave");
646 _LIT(KUri_WithoutFragment1, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave");
647 _LIT(KUri_WithoutFragment_Result1, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave");
649 _LIT(KUri_Whole0, "http://userinfo@host:port/a/b/c?query#fragment"); // Whole uri
650 _LIT(KUri_NoFragment0, "http://userinfo@host:port/a/b/c?query"); // Without fragment
651 _LIT(KUri_NoQuery0, "http://userinfo@host:port/a/b/c"); // Without query
652 _LIT(KUri_NoPath0, "http://userinfo@host:port"); // Without path
653 _LIT(KUri_NoPort0, "http://userinfo@host"); // Without port
654 _LIT(KUri_NoUserinfo0, "http://host"); // Without userinfo
655 _LIT(KUri_NoHost0, "http:"); // Without host
656 _LIT(KUri_NoScheme0, ""); // Without scheme
658 _LIT(KUri_IPv6Whole0, "http://userinfo@[::FfFf:129.144.52.38]:port/a/b/c?query#fragment"); // Whole uri
659 _LIT(KUri_IPv6NoFragment0, "http://userinfo@[::FfFf:129.144.52.38]:port/a/b/c?query"); // Without fragment
660 _LIT(KUri_IPv6NoQuery0, "http://userinfo@[::FfFf:129.144.52.38]:port/a/b/c"); // Without query
661 _LIT(KUri_IPv6NoPath0, "http://userinfo@[::FfFf:129.144.52.38]:port"); // Without path
662 _LIT(KUri_IPv6NoPort0, "http://userinfo@[::FfFf:129.144.52.38]"); // Without port
663 _LIT(KUri_IPv6NoUserinfo0, "http://[::FfFf:129.144.52.38]"); // Without userinfo
664 _LIT(KUri_IPv6NoHost0, "http:"); // Without host
665 _LIT(KUri_IPv6NoScheme0, "");
667 _LIT(KUri_Presence0, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
668 const TInt KUriPresenceFlags0 = (ESchemeFlag | EUserinfoFlag | EHostFlag | EPortFlag | EPathFlag | EQueryFlag | EFragmentFlag);
670 _LIT(KUri_Presence1, "http://www.symbian.com:1666?name=dave");
671 const TInt KUriPresenceFlags1 = (ESchemeFlag | EHostFlag | EPortFlag | EPathFlag | EQueryFlag );
673 _LIT(KAuthority_Presence0, "user@www.symbian.com:1666");
674 const TInt KAuthorityPresenceFlags0 = (EUserinfoFlag | EHostFlag | EPortFlag );
676 _LIT(KAuthority_Presence1, "www.symbian.com");
677 const TInt KAuthorityPresenceFlags1 = (EHostFlag);
679 _LIT(KUri_Des0, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
683 // Authority test data
687 _LIT(KAuth_Compare0_a, "user@www.symbian.com:1666");
688 _LIT(KAuth_Compare0_b, "user@www.symbian.com:1666");
689 const TInt KAuthMatchFlags0 = (EUserinfoFlag | EHostFlag | EPortFlag);
691 _LIT(KAuth_Compare1_a, "user@www.symbian.com:1666");
692 _LIT(KAuth_Compare1_b, "USER@Www.symbian.com:1666");
693 const TInt KAuthMatchFlags1 = (EHostFlag | EPortFlag);
695 _LIT(KAuthority_Des0, "user@www.symbian.com:1666");
697 _LIT(KAuthority_Port0, "userinfo@host:port"); // With port
698 _LIT(KAuthority_Userinfo0, "userinfo@host"); // With userinfo
699 _LIT(KAuthority_Host0, "host"); // With host
701 _LIT(KAuthority_UserinfoComp0, "userinfo");
702 _LIT(KAuthority_HostComp0, "host");
703 _LIT(KAuthority_PortComp0, "port");
705 _LIT(KAuthorityEscaped_Port0, "some%3Astuff@host%2Fname:port%3Fnum"); // With port
706 _LIT(KAuthorityEscaped_Userinfo0, "some%3Astuff@host%2Fname"); // With userinfo
707 _LIT(KAuthorityEscaped_Host0, "host%2Fname"); // With host
709 _LIT(KAuthorityEscaped_UserinfoComp0, "some:stuff");
710 _LIT(KAuthorityEscaped_HostComp0, "host/name");
711 _LIT(KAuthorityEscaped_PortComp0, "port?num");
713 _LIT(KAuthority_Whole0, "userinfo@host:port"); // Whole authority
714 _LIT(KAuthority_NoPort0, "userinfo@host"); // Without port
715 _LIT(KAuthority_NoUserinfo0, "host"); // Without userinfo
716 _LIT(KAuthority_NoHost0, ""); // Without host
718 _LIT(KAuthority_IPv6Whole0, "userinfo@[::FfFf:129.144.52.38]:port"); // Whole authority
719 _LIT(KAuthority_IPv6NoPort0, "userinfo@[::FfFf:129.144.52.38]"); // Without port
720 _LIT(KAuthority_IPv6NoUserinfo0, "[::FfFf:129.144.52.38]"); // Without userinfo
721 _LIT(KAuthority_IPv6NoHost0, "");
723 _LIT(KAuthority_IPv6Port0, "userinfo@[::FfFf:129.144.52.38]:port"); // With port
724 _LIT(KAuthority_IPv6Userinfo0, "userinfo@[::FfFf:129.144.52.38]"); // With userinfo
725 _LIT(KAuthority_IPv6Host0, "[::FfFf:129.144.52.38]"); // With host
727 _LIT(KAuthority_IPv6UserinfoComp0, "userinfo");
728 _LIT(KAuthority_IPv6HostComp0, "::FfFf:129.144.52.38");
729 _LIT(KAuthority_IPv6PortComp0, "port");
731 #endif // __URIANDAUTHORITYTESTS_H__