os/ossrv/genericservices/httputils/Test/t_uriparser/UriAndAuthorityTests.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __URIANDAUTHORITYTESTS_H__
    17 #define __URIANDAUTHORITYTESTS_H__
    18 
    19 #include <e32base.h>
    20 
    21 #include "CUriAndAuthorityTest.h"
    22 
    23 //
    24 //
    25 //	Uri Resolving test data
    26 //
    27 //
    28 
    29 _LIT(KBaseFile, "file://c|/data.wml");
    30 _LIT(KRelativeFile1, "#card2");	_LIT(KResolvedFile1, "file://c|/data.wml#card2");
    31 
    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");
    55 
    56 // abnormal examples
    57 
    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");
    66 
    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");
    74 
    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");
    80 
    81 // backwards compatiable , do relative parsing if schemes match
    82 _LIT(KRelative41, "http:g");	_LIT(KResolved41, "http://a/b/c/g");
    83 
    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");
    86 
    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(\")");
    90 
    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(\")");
    94 
    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");
    98 
    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");
   103 
   104 //
   105 //
   106 //	Uri and Authority component extraction test data
   107 //
   108 //
   109 
   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");
   121 
   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");
   132 _LIT(KPort1,		"");
   133 
   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");
   138 _LIT(KQuery2,		"");
   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");
   145 
   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/");
   150 _LIT(KQuery3,		"");
   151 _LIT(KFragment3,	"");
   152 _LIT(KUser3,		"user");
   153 _LIT(KPass3,		"pass");
   154 _LIT(KHost3,		"location.com");
   155 _LIT(KUserInfo3,	"user:pass");
   156 _LIT(KPort3,		"");
   157 
   158 _LIT(KComps4,		"http://user:pass@location.com");
   159 _LIT(KScheme4,		"http");
   160 _LIT(KAuthority4,	"user:pass@location.com");
   161 _LIT(KPath4,		"");
   162 _LIT(KQuery4,		"");
   163 _LIT(KFragment4,	"");
   164 _LIT(KUser4,		"user");
   165 _LIT(KPass4,		"pass");
   166 _LIT(KHost4,		"location.com");
   167 _LIT(KUserInfo4,	"user:pass");
   168 _LIT(KPort4,		"");
   169 
   170 _LIT(KComps5,		"http://");
   171 _LIT(KScheme5,		"http");
   172 _LIT(KAuthority5,	"");
   173 _LIT(KPath5,		"");
   174 _LIT(KQuery5,		"");
   175 _LIT(KFragment5,	"");
   176 _LIT(KUser5,		"");
   177 _LIT(KPass5,		"");
   178 _LIT(KHost5,		"");
   179 _LIT(KUserInfo5,	"");
   180 _LIT(KPort5,		"");
   181 
   182 _LIT(KComps6,		"");
   183 _LIT(KScheme6,		"");
   184 _LIT(KAuthority6,	"");
   185 _LIT(KPath6,		"");
   186 _LIT(KQuery6,		"");
   187 _LIT(KFragment6,	"");
   188 _LIT(KUser6,		"");
   189 _LIT(KPass6,		"");
   190 _LIT(KHost6,		"");
   191 _LIT(KUserInfo6,	"");
   192 _LIT(KPort6,		"");
   193 
   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");
   204 _LIT(KPort10,		"");
   205 
   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");
   216 _LIT(KPort11,		"");
   217 
   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");
   228 _LIT(KPort12,		"");
   229 
   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");
   240 _LIT(KPort13,		"");
   241 
   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");
   252 _LIT(KPort14,		"");
   253 
   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");
   264 _LIT(KPort15,		"");
   265 
   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");
   272 _LIT(KUser16,		"");
   273 _LIT(KPass16,		"");
   274 _LIT(KHost16,		"");
   275 _LIT(KUserInfo16,	"");
   276 _LIT(KPort16,		"");
   277 
   278 _LIT(KComps17,		"/abcd/ada/resource.cgi?asd=b#pa://rt");
   279 _LIT(KScheme17,		"");
   280 _LIT(KAuthority17,	"");
   281 _LIT(KPath17,		"/abcd/ada/resource.cgi");
   282 _LIT(KQuery17,		"asd=b");
   283 _LIT(KFragment17,	"pa://rt");
   284 _LIT(KUser17,		"");
   285 _LIT(KPass17,		"");
   286 _LIT(KHost17,		"");
   287 _LIT(KUserInfo17,	"");
   288 _LIT(KPort17,		"");
   289 
   290 _LIT(KComps18,		"resource.cgi?asd=b#pa://rt");
   291 _LIT(KScheme18,		"");
   292 _LIT(KAuthority18,	"");
   293 _LIT(KPath18,		"resource.cgi");
   294 _LIT(KQuery18,		"asd=b");
   295 _LIT(KFragment18,	"pa://rt");
   296 _LIT(KUser18,		"");
   297 _LIT(KPass18,		"");
   298 _LIT(KHost18,		"");
   299 _LIT(KUserInfo18,	"");
   300 _LIT(KPort18,		"");
   301 
   302 _LIT(KComps19,		"?asd=b#pa://rt");
   303 _LIT(KScheme19,		"");
   304 _LIT(KAuthority19,	"");
   305 _LIT(KPath19,		"");
   306 _LIT(KQuery19,		"asd=b");
   307 _LIT(KFragment19,	"pa://rt");
   308 _LIT(KUser19,		"");
   309 _LIT(KPass19,		"");
   310 _LIT(KHost19,		"");
   311 _LIT(KUserInfo19,	"");
   312 _LIT(KPort19,		"");
   313 
   314 _LIT(KComps20,		"#pa://rt");
   315 _LIT(KScheme20,		"");
   316 _LIT(KAuthority20,	"");
   317 _LIT(KPath20,		"");
   318 _LIT(KQuery20,		"");
   319 _LIT(KFragment20,	"pa://rt");
   320 _LIT(KUser20,		"");
   321 _LIT(KPass20,		"");
   322 _LIT(KHost20,		"");
   323 _LIT(KUserInfo20,	"");
   324 _LIT(KPort20,		"");
   325 
   326 _LIT(KComps21,		"resource.cgi");
   327 _LIT(KScheme21,		"");
   328 _LIT(KAuthority21,	"");
   329 _LIT(KPath21,		"resource.cgi");
   330 _LIT(KQuery21,		"");
   331 _LIT(KFragment21,	"");
   332 _LIT(KUser21,		"");
   333 _LIT(KPass21,		"");
   334 _LIT(KHost21,		"");
   335 _LIT(KUserInfo21,	"");
   336 _LIT(KPort21,		"");
   337 
   338 _LIT(KComps22,		"?q#f");
   339 _LIT(KScheme22,		"");
   340 _LIT(KAuthority22,	"");
   341 _LIT(KPath22,		"");
   342 _LIT(KQuery22,		"q");
   343 _LIT(KFragment22,	"f");
   344 _LIT(KUser22,		"");
   345 _LIT(KPass22,		"");
   346 _LIT(KHost22,		"");
   347 _LIT(KUserInfo22,	"");
   348 _LIT(KPort22,		"");
   349 
   350 _LIT(KComps23,		"?q");
   351 _LIT(KScheme23,		"");
   352 _LIT(KAuthority23,	"");
   353 _LIT(KPath23,		"");
   354 _LIT(KQuery23,		"q");
   355 _LIT(KFragment23,	"");
   356 _LIT(KUser23,		"");
   357 _LIT(KPass23,		"");
   358 _LIT(KHost23,		"");
   359 _LIT(KUserInfo23,	"");
   360 _LIT(KPort23,		"");
   361 
   362 _LIT(KComps24,		"#f");
   363 _LIT(KScheme24,		"");
   364 _LIT(KAuthority24,	"");
   365 _LIT(KPath24,		"");
   366 _LIT(KQuery24,		"");
   367 _LIT(KFragment24,	"f");
   368 _LIT(KUser24,		"");
   369 _LIT(KPass24,		"");
   370 _LIT(KHost24,		"");
   371 _LIT(KUserInfo24,	"");
   372 _LIT(KPort24,		"");
   373 
   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");
   380 _LIT(KUser25,		"");
   381 _LIT(KPass25,		"");
   382 _LIT(KHost25,		"location.com");
   383 _LIT(KUserInfo25,	"");
   384 _LIT(KPort25,		"");
   385 
   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");
   393 _LIT(KPass26,		"");
   394 _LIT(KHost26,		"location.com");
   395 _LIT(KUserInfo26,	"user");
   396 _LIT(KPort26,		"");
   397 
   398 _LIT(KComps27,		"http://wap.opengroup.org/");
   399 _LIT(KScheme27,		"http");
   400 _LIT(KAuthority27,	"wap.opengroup.org");
   401 _LIT(KPath27,		"/");
   402 _LIT(KQuery27,		"");
   403 _LIT(KFragment27,	"");
   404 _LIT(KUser27,		"");
   405 _LIT(KPass27,		"");
   406 _LIT(KHost27,		"wap.opengroup.org");
   407 _LIT(KUserInfo27,	"");
   408 _LIT(KPort27,		"");
   409 
   410 _LIT(KComps28,		"http://wap.opengroup.org/#index.wml");
   411 _LIT(KScheme28,		"http");
   412 _LIT(KAuthority28,	"wap.opengroup.org");
   413 _LIT(KPath28,		"/");
   414 _LIT(KQuery28,		"");
   415 _LIT(KFragment28,	"index.wml");
   416 _LIT(KUser28,		"");
   417 _LIT(KPass28,		"");
   418 _LIT(KHost28,		"wap.opengroup.org");
   419 _LIT(KUserInfo28,	"");
   420 _LIT(KPort28,		"");
   421 
   422 _LIT(KComps29,		"http://wap.opengroup.org/?mystuff");
   423 _LIT(KScheme29,		"http");
   424 _LIT(KAuthority29,	"wap.opengroup.org");
   425 _LIT(KPath29,		"/");
   426 _LIT(KQuery29,		"mystuff");
   427 _LIT(KFragment29,	"");
   428 _LIT(KUser29,		"");
   429 _LIT(KPass29,		"");
   430 _LIT(KHost29,		"wap.opengroup.org");
   431 _LIT(KUserInfo29,	"");
   432 _LIT(KPort29,		"");
   433 
   434 
   435 // IPv6 test cases
   436 
   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");
   448 
   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");
   460 
   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");
   472 
   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");
   484 
   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"); 
   496 
   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");
   508 
   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");
   520 
   521 
   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");
   528 
   529 //
   530 //
   531 //	Misc test data
   532 //
   533 //
   534 
   535 //	TestCompare input data
   536 //
   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
   544 _LIT(KUrl6,""); // 
   545 
   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
   552 
   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
   559 
   560 //	Construct with TParseBase test data
   561 //
   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
   564 
   565 //	Unescape url creation test data
   566 //
   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");
   571 
   572 
   573 // Construction defect EDNFUDN-4K9MD8
   574 // 
   575 _LIT(KCtorUrl0, ":\\http://www.bbc.co.uk/mobile/mainmenu.wml");
   576 
   577 _LIT(KRubbish, "rubbish");
   578 _LIT(KSlashRubbish, "/rubbish");
   579 
   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");
   583 
   584 //
   585 //
   586 // Uri test data
   587 //
   588 //
   589 
   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
   596 
   597 
   598 
   599 
   600 
   601 _LIT(KUri_IPv6HostComp0,	"::FfFf:129.144.52.38");
   602 
   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
   610 
   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");
   618 
   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);
   622 
   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);
   626 
   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);
   630 
   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);
   634 
   635 
   636 
   637 _LIT(KUri_SchemeValidation0, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
   638 TBool KUri_SchemeValidity0 = ETrue;
   639 
   640 _LIT(KUri_SchemeValidation1, "ht~tp://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
   641 TBool KUri_SchemeValidity1 = EFalse;
   642 
   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");
   645 
   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");
   648 
   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
   657 
   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,	"");	
   666 
   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);
   669 
   670 _LIT(KUri_Presence1, "http://www.symbian.com:1666?name=dave");
   671 const TInt KUriPresenceFlags1 = (ESchemeFlag | EHostFlag | EPortFlag | EPathFlag | EQueryFlag );
   672 
   673 _LIT(KAuthority_Presence0, "user@www.symbian.com:1666");
   674 const TInt KAuthorityPresenceFlags0 = (EUserinfoFlag | EHostFlag | EPortFlag );
   675 
   676 _LIT(KAuthority_Presence1, "www.symbian.com");
   677 const TInt KAuthorityPresenceFlags1 = (EHostFlag);
   678 
   679 _LIT(KUri_Des0, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
   680 
   681 //
   682 //
   683 // Authority test data
   684 //
   685 //
   686 
   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);
   690 
   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);
   694 
   695 _LIT(KAuthority_Des0, "user@www.symbian.com:1666");
   696 
   697 _LIT(KAuthority_Port0,		"userinfo@host:port");	// With port
   698 _LIT(KAuthority_Userinfo0,	"userinfo@host");		// With userinfo
   699 _LIT(KAuthority_Host0,		"host");				// With host
   700 
   701 _LIT(KAuthority_UserinfoComp0,	"userinfo");
   702 _LIT(KAuthority_HostComp0,		"host");
   703 _LIT(KAuthority_PortComp0,		"port");
   704 
   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
   708 
   709 _LIT(KAuthorityEscaped_UserinfoComp0,	"some:stuff");
   710 _LIT(KAuthorityEscaped_HostComp0,		"host/name");
   711 _LIT(KAuthorityEscaped_PortComp0,		"port?num");
   712 
   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
   717 
   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,		"");
   722 
   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
   726 
   727 _LIT(KAuthority_IPv6UserinfoComp0,	"userinfo");
   728 _LIT(KAuthority_IPv6HostComp0,		"::FfFf:129.144.52.38");
   729 _LIT(KAuthority_IPv6PortComp0,		"port");
   730 
   731 #endif	// __URIANDAUTHORITYTESTS_H__