os/ossrv/genericservices/httputils/Test/t_uriparser/UriAndAuthorityTests.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef __URIANDAUTHORITYTESTS_H__
sl@0
    17
#define __URIANDAUTHORITYTESTS_H__
sl@0
    18
sl@0
    19
#include <e32base.h>
sl@0
    20
sl@0
    21
#include "CUriAndAuthorityTest.h"
sl@0
    22
sl@0
    23
//
sl@0
    24
//
sl@0
    25
//	Uri Resolving test data
sl@0
    26
//
sl@0
    27
//
sl@0
    28
sl@0
    29
_LIT(KBaseFile, "file://c|/data.wml");
sl@0
    30
_LIT(KRelativeFile1, "#card2");	_LIT(KResolvedFile1, "file://c|/data.wml#card2");
sl@0
    31
sl@0
    32
_LIT(KBase, "http://a/b/c/d;p?q");
sl@0
    33
_LIT(KRelative1, "g:h");		_LIT(KResolved1, "g:h");
sl@0
    34
_LIT(KRelative2, "g");			_LIT(KResolved2, "http://a/b/c/g");
sl@0
    35
_LIT(KRelative3, "./g");		_LIT(KResolved3, "http://a/b/c/g");
sl@0
    36
_LIT(KRelative4, "g/");			_LIT(KResolved4, "http://a/b/c/g/");
sl@0
    37
_LIT(KRelative5, "/g");			_LIT(KResolved5, "http://a/g");
sl@0
    38
_LIT(KRelative6, "//g");		_LIT(KResolved6, "http://g");
sl@0
    39
_LIT(KRelative7, "?y");			_LIT(KResolved7, "http://a/b/c/d;p?y");
sl@0
    40
_LIT(KRelative8, "g?y");		_LIT(KResolved8, "http://a/b/c/g?y");
sl@0
    41
_LIT(KRelative9, "#s");			_LIT(KResolved9, "http://a/b/c/d;p?q#s");
sl@0
    42
_LIT(KRelative10, "g#s");		_LIT(KResolved10, "http://a/b/c/g#s");
sl@0
    43
_LIT(KRelative11, "g?y#s");		_LIT(KResolved11, "http://a/b/c/g?y#s");
sl@0
    44
_LIT(KRelative12, ";x");		_LIT(KResolved12, "http://a/b/c/;x");
sl@0
    45
_LIT(KRelative13, "g;x");		_LIT(KResolved13, "http://a/b/c/g;x");
sl@0
    46
_LIT(KRelative14, "g;x?y#s");	_LIT(KResolved14, "http://a/b/c/g;x?y#s");
sl@0
    47
_LIT(KRelative15, ".");			_LIT(KResolved15, "http://a/b/c/");
sl@0
    48
_LIT(KRelative16, "./");		_LIT(KResolved16, "http://a/b/c/");
sl@0
    49
_LIT(KRelative17, "..");		_LIT(KResolved17, "http://a/b/");
sl@0
    50
_LIT(KRelative18, "../");		_LIT(KResolved18, "http://a/b/");
sl@0
    51
_LIT(KRelative19, "../g");		_LIT(KResolved19, "http://a/b/g");
sl@0
    52
_LIT(KRelative20, "../..");		_LIT(KResolved20, "http://a/");
sl@0
    53
_LIT(KRelative21, "../../");	_LIT(KResolved21, "http://a/");
sl@0
    54
_LIT(KRelative22, "../../g");	_LIT(KResolved22, "http://a/g");
sl@0
    55
sl@0
    56
// abnormal examples
sl@0
    57
sl@0
    58
_LIT(KRelative23, "../../../g");	_LIT(KResolved23, "http://a/../g");		//The Resolved Uri as per RFC3986 is http://a/g
sl@0
    59
_LIT(KRelative24, "../../../../g");	_LIT(KResolved24, "http://a/../../g");	//The Resolved Uri as per RFC3986 is http://a/g
sl@0
    60
_LIT(KRelative25, "/./g");	_LIT(KResolved25, "http://a/./g");				//The Resolved Uri as per RFC3986 is http://a/g
sl@0
    61
_LIT(KRelative26, "/../g");	_LIT(KResolved26, "http://a/../g");				//The Resolved Uri as per RFC3986 is http://a/g
sl@0
    62
_LIT(KRelative27, "g.");	_LIT(KResolved27, "http://a/b/c/g.");
sl@0
    63
_LIT(KRelative28, ".g");	_LIT(KResolved28, "http://a/b/c/.g");
sl@0
    64
_LIT(KRelative29, "g..");	_LIT(KResolved29, "http://a/b/c/g..");
sl@0
    65
_LIT(KRelative30, "..g");	_LIT(KResolved30, "http://a/b/c/..g");
sl@0
    66
sl@0
    67
// non sensical uses of '.' and '..'
sl@0
    68
_LIT(KRelative31, "./../g");	_LIT(KResolved31, "http://a/b/g");
sl@0
    69
_LIT(KRelative32, "./g/.");	_LIT(KResolved32, "http://a/b/c/g/");
sl@0
    70
_LIT(KRelative33, "g/./h");	_LIT(KResolved33, "http://a/b/c/g/h");
sl@0
    71
_LIT(KRelative34, "g/../h");	_LIT(KResolved34, "http://a/b/c/h");
sl@0
    72
_LIT(KRelative35, "g;x=1/./y");	_LIT(KResolved35, "http://a/b/c/g;x=1/y");
sl@0
    73
_LIT(KRelative36, "g;x=1/../y");	_LIT(KResolved36, "http://a/b/c/y");
sl@0
    74
sl@0
    75
// use of query and fragment
sl@0
    76
_LIT(KRelative37, "g?y/./x");	_LIT(KResolved37, "http://a/b/c/g?y/./x");
sl@0
    77
_LIT(KRelative38, "g?y/../x");	_LIT(KResolved38, "http://a/b/c/g?y/../x");
sl@0
    78
_LIT(KRelative39, "g#s/./x");	_LIT(KResolved39, "http://a/b/c/g#s/./x");
sl@0
    79
_LIT(KRelative40, "g#s/../x");	_LIT(KResolved40, "http://a/b/c/g#s/../x");
sl@0
    80
sl@0
    81
// backwards compatiable , do relative parsing if schemes match
sl@0
    82
_LIT(KRelative41, "http:g");	_LIT(KResolved41, "http://a/b/c/g");
sl@0
    83
sl@0
    84
// possible bug if relative url is a network path with a path aswell!
sl@0
    85
_LIT(KRelative42, "//g/h/i");	_LIT(KResolved42, "http://g/h/i");
sl@0
    86
sl@0
    87
//	ResolveL defect EDNPHAD-4J6EUY
sl@0
    88
_LIT(KBaseBug1, "http://wap.h2g2.com#welcome");
sl@0
    89
_LIT(KRelativeBug1, "funcs.wml#setup(\")");	_LIT(KResolvedBug1, "http://wap.h2g2.com/funcs.wml#setup(\")");
sl@0
    90
sl@0
    91
_LIT(KBaseBug2, "http://wap.h2g2.com/welcome");
sl@0
    92
_LIT(KRelativeBug2, "funcs.wml#setup(\")");	_LIT(KResolvedBug2, "http://wap.h2g2.com/funcs.wml#setup(\")");
sl@0
    93
_LIT(KRelativeBug3, "home/funcs.wml#setup(\")");	_LIT(KResolvedBug3, "http://wap.h2g2.com/home/funcs.wml#setup(\")");
sl@0
    94
sl@0
    95
// ResolveL defect EDNFUDN-4JYFH7
sl@0
    96
_LIT(KBaseBug3, "http://mobile.iii.co.uk");
sl@0
    97
_LIT(KRelativeBug4, "i/iii_splash.wbm");	_LIT(KResolvedBug4, "http://mobile.iii.co.uk/i/iii_splash.wbm");
sl@0
    98
sl@0
    99
// Relative fragment defect EDNEHHO-4M5BU6 - wml/state/variables/substitution/4 -test doesn't work
sl@0
   100
_LIT(KFragmentBase, "http://trras02.it.cellulardata.com/vswap114/htroot/wap/wml/state/variables/substitution/4/?v=dozig&ts=0003&ti=3");
sl@0
   101
_LIT(KFragmentRelative, "#card1");
sl@0
   102
_LIT(KFragmentResolved, "http://trras02.it.cellulardata.com/vswap114/htroot/wap/wml/state/variables/substitution/4/?v=dozig&ts=0003&ti=3#card1");
sl@0
   103
sl@0
   104
//
sl@0
   105
//
sl@0
   106
//	Uri and Authority component extraction test data
sl@0
   107
//
sl@0
   108
//
sl@0
   109
sl@0
   110
_LIT(KComps0,		"http://user:pass@location.com:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
sl@0
   111
_LIT(KScheme0,		"http");
sl@0
   112
_LIT(KAuthority0,	"user:pass@location.com:1666");
sl@0
   113
_LIT(KPath0,		"/abcd/ada/resource.cgi;x=123;df223;2342;2323");
sl@0
   114
_LIT(KQuery0,		"asd=b");
sl@0
   115
_LIT(KFragment0,	"part");
sl@0
   116
_LIT(KUser0,		"user");
sl@0
   117
_LIT(KPass0,		"pass");
sl@0
   118
_LIT(KHost0,		"location.com");
sl@0
   119
_LIT(KUserInfo0,	"user:pass");
sl@0
   120
_LIT(KPort0,		"1666");
sl@0
   121
sl@0
   122
_LIT(KComps1,		"http://user:pass@location.com:/abcd/ada/resource.cgi?asd=b");
sl@0
   123
_LIT(KScheme1,		"http");
sl@0
   124
_LIT(KAuthority1,	"user:pass@location.com:");
sl@0
   125
_LIT(KPath1,		"/abcd/ada/resource.cgi");
sl@0
   126
_LIT(KQuery1,		"asd=b");
sl@0
   127
_LIT(KFragment1,	"");
sl@0
   128
_LIT(KUser1,		"user");
sl@0
   129
_LIT(KPass1,		"pass");
sl@0
   130
_LIT(KHost1,		"location.com");
sl@0
   131
_LIT(KUserInfo1,	"user:pass");
sl@0
   132
_LIT(KPort1,		"");
sl@0
   133
sl@0
   134
_LIT(KComps2,		"http://user:pass@location.com:1666/abcd/ada/resource.cgi");
sl@0
   135
_LIT(KScheme2,		"http");
sl@0
   136
_LIT(KAuthority2,	"user:pass@location.com:1666");
sl@0
   137
_LIT(KPath2,		"/abcd/ada/resource.cgi");
sl@0
   138
_LIT(KQuery2,		"");
sl@0
   139
_LIT(KFragment2,	"");
sl@0
   140
_LIT(KUser2,		"user");
sl@0
   141
_LIT(KPass2,		"pass");
sl@0
   142
_LIT(KHost2,		"location.com");
sl@0
   143
_LIT(KUserInfo2,	"user:pass");
sl@0
   144
_LIT(KPort2,		"1666");
sl@0
   145
sl@0
   146
_LIT(KComps3,		"http://user:pass@location.com/abcd/ada/");
sl@0
   147
_LIT(KScheme3,		"http");
sl@0
   148
_LIT(KAuthority3,	"user:pass@location.com");
sl@0
   149
_LIT(KPath3,		"/abcd/ada/");
sl@0
   150
_LIT(KQuery3,		"");
sl@0
   151
_LIT(KFragment3,	"");
sl@0
   152
_LIT(KUser3,		"user");
sl@0
   153
_LIT(KPass3,		"pass");
sl@0
   154
_LIT(KHost3,		"location.com");
sl@0
   155
_LIT(KUserInfo3,	"user:pass");
sl@0
   156
_LIT(KPort3,		"");
sl@0
   157
sl@0
   158
_LIT(KComps4,		"http://user:pass@location.com");
sl@0
   159
_LIT(KScheme4,		"http");
sl@0
   160
_LIT(KAuthority4,	"user:pass@location.com");
sl@0
   161
_LIT(KPath4,		"");
sl@0
   162
_LIT(KQuery4,		"");
sl@0
   163
_LIT(KFragment4,	"");
sl@0
   164
_LIT(KUser4,		"user");
sl@0
   165
_LIT(KPass4,		"pass");
sl@0
   166
_LIT(KHost4,		"location.com");
sl@0
   167
_LIT(KUserInfo4,	"user:pass");
sl@0
   168
_LIT(KPort4,		"");
sl@0
   169
sl@0
   170
_LIT(KComps5,		"http://");
sl@0
   171
_LIT(KScheme5,		"http");
sl@0
   172
_LIT(KAuthority5,	"");
sl@0
   173
_LIT(KPath5,		"");
sl@0
   174
_LIT(KQuery5,		"");
sl@0
   175
_LIT(KFragment5,	"");
sl@0
   176
_LIT(KUser5,		"");
sl@0
   177
_LIT(KPass5,		"");
sl@0
   178
_LIT(KHost5,		"");
sl@0
   179
_LIT(KUserInfo5,	"");
sl@0
   180
_LIT(KPort5,		"");
sl@0
   181
sl@0
   182
_LIT(KComps6,		"");
sl@0
   183
_LIT(KScheme6,		"");
sl@0
   184
_LIT(KAuthority6,	"");
sl@0
   185
_LIT(KPath6,		"");
sl@0
   186
_LIT(KQuery6,		"");
sl@0
   187
_LIT(KFragment6,	"");
sl@0
   188
_LIT(KUser6,		"");
sl@0
   189
_LIT(KPass6,		"");
sl@0
   190
_LIT(KHost6,		"");
sl@0
   191
_LIT(KUserInfo6,	"");
sl@0
   192
_LIT(KPort6,		"");
sl@0
   193
sl@0
   194
_LIT(KComps10,		"http://user:pass@location.com/abcd/ada/resource.cgi?asd=b#pa://rt");
sl@0
   195
_LIT(KScheme10,		"http");
sl@0
   196
_LIT(KAuthority10,	"user:pass@location.com");
sl@0
   197
_LIT(KPath10,		"/abcd/ada/resource.cgi");
sl@0
   198
_LIT(KQuery10,		"asd=b");
sl@0
   199
_LIT(KFragment10,	"pa://rt");
sl@0
   200
_LIT(KUser10,		"user");
sl@0
   201
_LIT(KPass10,		"pass");
sl@0
   202
_LIT(KHost10,		"location.com");
sl@0
   203
_LIT(KUserInfo10,	"user:pass");
sl@0
   204
_LIT(KPort10,		"");
sl@0
   205
sl@0
   206
_LIT(KComps11,		"http://user:pass@location.com/abcd/ada/resource.cgi?as/d=b#pa://rt");
sl@0
   207
_LIT(KScheme11,		"http");
sl@0
   208
_LIT(KAuthority11,	"user:pass@location.com");
sl@0
   209
_LIT(KPath11,		"/abcd/ada/resource.cgi");
sl@0
   210
_LIT(KQuery11,		"as/d=b");
sl@0
   211
_LIT(KFragment11,	"pa://rt");
sl@0
   212
_LIT(KUser11,		"user");
sl@0
   213
_LIT(KPass11,		"pass");
sl@0
   214
_LIT(KHost11,		"location.com");
sl@0
   215
_LIT(KUserInfo11,	"user:pass");
sl@0
   216
_LIT(KPort11,		"");
sl@0
   217
sl@0
   218
_LIT(KComps12,		"http://user:pass@location.com/abcd/ada/reso://urce.cgi?asd=b#pa://rt");
sl@0
   219
_LIT(KScheme12,		"http");
sl@0
   220
_LIT(KAuthority12,	"user:pass@location.com");
sl@0
   221
_LIT(KPath12,		"/abcd/ada/reso://urce.cgi");
sl@0
   222
_LIT(KQuery12,		"asd=b");
sl@0
   223
_LIT(KFragment12,	"pa://rt");
sl@0
   224
_LIT(KUser12,		"user");
sl@0
   225
_LIT(KPass12,		"pass");
sl@0
   226
_LIT(KHost12,		"location.com");
sl@0
   227
_LIT(KUserInfo12,	"user:pass");
sl@0
   228
_LIT(KPort12,		"");
sl@0
   229
sl@0
   230
_LIT(KComps13,		"http://user:pass@location.com/abc://d/ada/resource.cgi?asd=b#pa://rt");
sl@0
   231
_LIT(KScheme13,		"http");
sl@0
   232
_LIT(KAuthority13,	"user:pass@location.com");
sl@0
   233
_LIT(KPath13,		"/abc://d/ada/resource.cgi");
sl@0
   234
_LIT(KQuery13,		"asd=b");
sl@0
   235
_LIT(KFragment13,	"pa://rt");
sl@0
   236
_LIT(KUser13,		"user");
sl@0
   237
_LIT(KPass13,		"pass");
sl@0
   238
_LIT(KHost13,		"location.com");
sl@0
   239
_LIT(KUserInfo13,	"user:pass");
sl@0
   240
_LIT(KPort13,		"");
sl@0
   241
sl@0
   242
_LIT(KComps14,		"http://user:pass@loc://ation.com/abcd/ada/resource.cgi?asd=b#pa://rt");
sl@0
   243
_LIT(KScheme14,		"http");
sl@0
   244
_LIT(KAuthority14,	"user:pass@loc:");
sl@0
   245
_LIT(KPath14,		"//ation.com/abcd/ada/resource.cgi");
sl@0
   246
_LIT(KQuery14,		"asd=b");
sl@0
   247
_LIT(KFragment14,	"pa://rt");
sl@0
   248
_LIT(KUser14,		"user");
sl@0
   249
_LIT(KPass14,		"pass");
sl@0
   250
_LIT(KHost14,		"loc");
sl@0
   251
_LIT(KUserInfo14,	"user:pass");
sl@0
   252
_LIT(KPort14,		"");
sl@0
   253
sl@0
   254
_LIT(KComps15,		"ht~tp://user:pass@location.com/abcd/ada/resource.cgi?asd=b#pa://rt");
sl@0
   255
_LIT(KScheme15,		"ht~tp");
sl@0
   256
_LIT(KAuthority15,	"user:pass@location.com");
sl@0
   257
_LIT(KPath15,		"/abcd/ada/resource.cgi");
sl@0
   258
_LIT(KQuery15,		"asd=b");
sl@0
   259
_LIT(KFragment15,	"pa://rt");
sl@0
   260
_LIT(KUser15,		"user");
sl@0
   261
_LIT(KPass15,		"pass");
sl@0
   262
_LIT(KHost15,		"location.com");
sl@0
   263
_LIT(KUserInfo15,	"user:pass");
sl@0
   264
_LIT(KPort15,		"");
sl@0
   265
sl@0
   266
_LIT(KComps16,		"user:pass@location.com/abcd/ada/resource.cgi?asd=b#pa://rt");
sl@0
   267
_LIT(KScheme16,		"user");
sl@0
   268
_LIT(KAuthority16,	"");
sl@0
   269
_LIT(KPath16,		"pass@location.com/abcd/ada/resource.cgi");
sl@0
   270
_LIT(KQuery16,		"asd=b");
sl@0
   271
_LIT(KFragment16,	"pa://rt");
sl@0
   272
_LIT(KUser16,		"");
sl@0
   273
_LIT(KPass16,		"");
sl@0
   274
_LIT(KHost16,		"");
sl@0
   275
_LIT(KUserInfo16,	"");
sl@0
   276
_LIT(KPort16,		"");
sl@0
   277
sl@0
   278
_LIT(KComps17,		"/abcd/ada/resource.cgi?asd=b#pa://rt");
sl@0
   279
_LIT(KScheme17,		"");
sl@0
   280
_LIT(KAuthority17,	"");
sl@0
   281
_LIT(KPath17,		"/abcd/ada/resource.cgi");
sl@0
   282
_LIT(KQuery17,		"asd=b");
sl@0
   283
_LIT(KFragment17,	"pa://rt");
sl@0
   284
_LIT(KUser17,		"");
sl@0
   285
_LIT(KPass17,		"");
sl@0
   286
_LIT(KHost17,		"");
sl@0
   287
_LIT(KUserInfo17,	"");
sl@0
   288
_LIT(KPort17,		"");
sl@0
   289
sl@0
   290
_LIT(KComps18,		"resource.cgi?asd=b#pa://rt");
sl@0
   291
_LIT(KScheme18,		"");
sl@0
   292
_LIT(KAuthority18,	"");
sl@0
   293
_LIT(KPath18,		"resource.cgi");
sl@0
   294
_LIT(KQuery18,		"asd=b");
sl@0
   295
_LIT(KFragment18,	"pa://rt");
sl@0
   296
_LIT(KUser18,		"");
sl@0
   297
_LIT(KPass18,		"");
sl@0
   298
_LIT(KHost18,		"");
sl@0
   299
_LIT(KUserInfo18,	"");
sl@0
   300
_LIT(KPort18,		"");
sl@0
   301
sl@0
   302
_LIT(KComps19,		"?asd=b#pa://rt");
sl@0
   303
_LIT(KScheme19,		"");
sl@0
   304
_LIT(KAuthority19,	"");
sl@0
   305
_LIT(KPath19,		"");
sl@0
   306
_LIT(KQuery19,		"asd=b");
sl@0
   307
_LIT(KFragment19,	"pa://rt");
sl@0
   308
_LIT(KUser19,		"");
sl@0
   309
_LIT(KPass19,		"");
sl@0
   310
_LIT(KHost19,		"");
sl@0
   311
_LIT(KUserInfo19,	"");
sl@0
   312
_LIT(KPort19,		"");
sl@0
   313
sl@0
   314
_LIT(KComps20,		"#pa://rt");
sl@0
   315
_LIT(KScheme20,		"");
sl@0
   316
_LIT(KAuthority20,	"");
sl@0
   317
_LIT(KPath20,		"");
sl@0
   318
_LIT(KQuery20,		"");
sl@0
   319
_LIT(KFragment20,	"pa://rt");
sl@0
   320
_LIT(KUser20,		"");
sl@0
   321
_LIT(KPass20,		"");
sl@0
   322
_LIT(KHost20,		"");
sl@0
   323
_LIT(KUserInfo20,	"");
sl@0
   324
_LIT(KPort20,		"");
sl@0
   325
sl@0
   326
_LIT(KComps21,		"resource.cgi");
sl@0
   327
_LIT(KScheme21,		"");
sl@0
   328
_LIT(KAuthority21,	"");
sl@0
   329
_LIT(KPath21,		"resource.cgi");
sl@0
   330
_LIT(KQuery21,		"");
sl@0
   331
_LIT(KFragment21,	"");
sl@0
   332
_LIT(KUser21,		"");
sl@0
   333
_LIT(KPass21,		"");
sl@0
   334
_LIT(KHost21,		"");
sl@0
   335
_LIT(KUserInfo21,	"");
sl@0
   336
_LIT(KPort21,		"");
sl@0
   337
sl@0
   338
_LIT(KComps22,		"?q#f");
sl@0
   339
_LIT(KScheme22,		"");
sl@0
   340
_LIT(KAuthority22,	"");
sl@0
   341
_LIT(KPath22,		"");
sl@0
   342
_LIT(KQuery22,		"q");
sl@0
   343
_LIT(KFragment22,	"f");
sl@0
   344
_LIT(KUser22,		"");
sl@0
   345
_LIT(KPass22,		"");
sl@0
   346
_LIT(KHost22,		"");
sl@0
   347
_LIT(KUserInfo22,	"");
sl@0
   348
_LIT(KPort22,		"");
sl@0
   349
sl@0
   350
_LIT(KComps23,		"?q");
sl@0
   351
_LIT(KScheme23,		"");
sl@0
   352
_LIT(KAuthority23,	"");
sl@0
   353
_LIT(KPath23,		"");
sl@0
   354
_LIT(KQuery23,		"q");
sl@0
   355
_LIT(KFragment23,	"");
sl@0
   356
_LIT(KUser23,		"");
sl@0
   357
_LIT(KPass23,		"");
sl@0
   358
_LIT(KHost23,		"");
sl@0
   359
_LIT(KUserInfo23,	"");
sl@0
   360
_LIT(KPort23,		"");
sl@0
   361
sl@0
   362
_LIT(KComps24,		"#f");
sl@0
   363
_LIT(KScheme24,		"");
sl@0
   364
_LIT(KAuthority24,	"");
sl@0
   365
_LIT(KPath24,		"");
sl@0
   366
_LIT(KQuery24,		"");
sl@0
   367
_LIT(KFragment24,	"f");
sl@0
   368
_LIT(KUser24,		"");
sl@0
   369
_LIT(KPass24,		"");
sl@0
   370
_LIT(KHost24,		"");
sl@0
   371
_LIT(KUserInfo24,	"");
sl@0
   372
_LIT(KPort24,		"");
sl@0
   373
sl@0
   374
_LIT(KComps25,		"http://location.com/abcd/ada/resource.cgi?asd=b#pa://rt");
sl@0
   375
_LIT(KScheme25,		"http");
sl@0
   376
_LIT(KAuthority25,	"location.com");
sl@0
   377
_LIT(KPath25,		"/abcd/ada/resource.cgi");
sl@0
   378
_LIT(KQuery25,		"asd=b");
sl@0
   379
_LIT(KFragment25,	"pa://rt");
sl@0
   380
_LIT(KUser25,		"");
sl@0
   381
_LIT(KPass25,		"");
sl@0
   382
_LIT(KHost25,		"location.com");
sl@0
   383
_LIT(KUserInfo25,	"");
sl@0
   384
_LIT(KPort25,		"");
sl@0
   385
sl@0
   386
_LIT(KComps26,		"http://user@location.com/abcd/ada/resource.cgi?asd=b#pa://rt");
sl@0
   387
_LIT(KScheme26,		"http");
sl@0
   388
_LIT(KAuthority26,	"user@location.com");
sl@0
   389
_LIT(KPath26,		"/abcd/ada/resource.cgi");
sl@0
   390
_LIT(KQuery26,		"asd=b");
sl@0
   391
_LIT(KFragment26,	"pa://rt");
sl@0
   392
_LIT(KUser26,		"user");
sl@0
   393
_LIT(KPass26,		"");
sl@0
   394
_LIT(KHost26,		"location.com");
sl@0
   395
_LIT(KUserInfo26,	"user");
sl@0
   396
_LIT(KPort26,		"");
sl@0
   397
sl@0
   398
_LIT(KComps27,		"http://wap.opengroup.org/");
sl@0
   399
_LIT(KScheme27,		"http");
sl@0
   400
_LIT(KAuthority27,	"wap.opengroup.org");
sl@0
   401
_LIT(KPath27,		"/");
sl@0
   402
_LIT(KQuery27,		"");
sl@0
   403
_LIT(KFragment27,	"");
sl@0
   404
_LIT(KUser27,		"");
sl@0
   405
_LIT(KPass27,		"");
sl@0
   406
_LIT(KHost27,		"wap.opengroup.org");
sl@0
   407
_LIT(KUserInfo27,	"");
sl@0
   408
_LIT(KPort27,		"");
sl@0
   409
sl@0
   410
_LIT(KComps28,		"http://wap.opengroup.org/#index.wml");
sl@0
   411
_LIT(KScheme28,		"http");
sl@0
   412
_LIT(KAuthority28,	"wap.opengroup.org");
sl@0
   413
_LIT(KPath28,		"/");
sl@0
   414
_LIT(KQuery28,		"");
sl@0
   415
_LIT(KFragment28,	"index.wml");
sl@0
   416
_LIT(KUser28,		"");
sl@0
   417
_LIT(KPass28,		"");
sl@0
   418
_LIT(KHost28,		"wap.opengroup.org");
sl@0
   419
_LIT(KUserInfo28,	"");
sl@0
   420
_LIT(KPort28,		"");
sl@0
   421
sl@0
   422
_LIT(KComps29,		"http://wap.opengroup.org/?mystuff");
sl@0
   423
_LIT(KScheme29,		"http");
sl@0
   424
_LIT(KAuthority29,	"wap.opengroup.org");
sl@0
   425
_LIT(KPath29,		"/");
sl@0
   426
_LIT(KQuery29,		"mystuff");
sl@0
   427
_LIT(KFragment29,	"");
sl@0
   428
_LIT(KUser29,		"");
sl@0
   429
_LIT(KPass29,		"");
sl@0
   430
_LIT(KHost29,		"wap.opengroup.org");
sl@0
   431
_LIT(KUserInfo29,	"");
sl@0
   432
_LIT(KPort29,		"");
sl@0
   433
sl@0
   434
sl@0
   435
// IPv6 test cases
sl@0
   436
sl@0
   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");
sl@0
   438
_LIT(KScheme30,		"http");
sl@0
   439
_LIT(KAuthority30,	"user:pass@[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:1666");
sl@0
   440
_LIT(KPath30,		"/abcd/ada/resource.cgi;x=123;df223;2342;2323");
sl@0
   441
_LIT(KQuery30,		"asd=b");
sl@0
   442
_LIT(KFragment30,	"part");
sl@0
   443
_LIT(KUser30,		"user");
sl@0
   444
_LIT(KPass30,		"pass");
sl@0
   445
_LIT(KHost30,		"FEDC:BA98:7654:3210:FEDC:BA98:7654:3210");
sl@0
   446
_LIT(KUserInfo30,	"user:pass");
sl@0
   447
_LIT(KPort30,		"1666");
sl@0
   448
sl@0
   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");
sl@0
   450
_LIT(KScheme31,		"http");
sl@0
   451
_LIT(KAuthority31,	"user:pass@[1080:0:0:0:8:800:200C:417A]:1666");
sl@0
   452
_LIT(KPath31,		"/abcd/ada/resource.cgi;x=123;df223;2342;2323");
sl@0
   453
_LIT(KQuery31,		"asd=b");
sl@0
   454
_LIT(KFragment31,	"part");
sl@0
   455
_LIT(KUser31,		"user");
sl@0
   456
_LIT(KPass31,		"pass");
sl@0
   457
_LIT(KHost31,		"1080:0:0:0:8:800:200C:417A");
sl@0
   458
_LIT(KUserInfo31,	"user:pass");
sl@0
   459
_LIT(KPort31,		"1666");
sl@0
   460
sl@0
   461
_LIT(KComps32,		"http://user:pass@[3ffe:2a00:100:7031::1]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
sl@0
   462
_LIT(KScheme32,		"http");
sl@0
   463
_LIT(KAuthority32,	"user:pass@[3ffe:2a00:100:7031::1]:1666");
sl@0
   464
_LIT(KPath32,		"/abcd/ada/resource.cgi;x=123;df223;2342;2323");
sl@0
   465
_LIT(KQuery32,		"asd=b");
sl@0
   466
_LIT(KFragment32,	"part");
sl@0
   467
_LIT(KUser32,		"user");
sl@0
   468
_LIT(KPass32,		"pass");
sl@0
   469
_LIT(KHost32,		"3ffe:2a00:100:7031::1");
sl@0
   470
_LIT(KUserInfo32,	"user:pass");
sl@0
   471
_LIT(KPort32,		"1666");
sl@0
   472
sl@0
   473
_LIT(KComps33,		"http://user:pass@[1080::8:800:200C:417A]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
sl@0
   474
_LIT(KScheme33,		"http");
sl@0
   475
_LIT(KAuthority33,	"user:pass@[1080::8:800:200C:417A]:1666");
sl@0
   476
_LIT(KPath33,		"/abcd/ada/resource.cgi;x=123;df223;2342;2323");
sl@0
   477
_LIT(KQuery33,		"asd=b");
sl@0
   478
_LIT(KFragment33,	"part");
sl@0
   479
_LIT(KUser33,		"user");
sl@0
   480
_LIT(KPass33,		"pass");
sl@0
   481
_LIT(KHost33,		"1080::8:800:200C:417A");
sl@0
   482
_LIT(KUserInfo33,	"user:pass");
sl@0
   483
_LIT(KPort33,		"1666");
sl@0
   484
sl@0
   485
_LIT(KComps34,		"http://user:pass@[::192.9.5.5]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
sl@0
   486
_LIT(KScheme34,		"http");
sl@0
   487
_LIT(KAuthority34,	"user:pass@[::192.9.5.5]:1666");
sl@0
   488
_LIT(KPath34,		"/abcd/ada/resource.cgi;x=123;df223;2342;2323");
sl@0
   489
_LIT(KQuery34,		"asd=b");
sl@0
   490
_LIT(KFragment34,	"part");
sl@0
   491
_LIT(KUser34,		"user");
sl@0
   492
_LIT(KPass34,		"pass");
sl@0
   493
_LIT(KHost34,		"::192.9.5.5");
sl@0
   494
_LIT(KUserInfo34,	"user:pass");
sl@0
   495
_LIT(KPort34,		"1666"); 
sl@0
   496
sl@0
   497
_LIT(KComps35,		"http://user:pass@[::FfFf:129.144.52.38]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
sl@0
   498
_LIT(KScheme35,		"http");
sl@0
   499
_LIT(KAuthority35,	"user:pass@[::FfFf:129.144.52.38]:1666");
sl@0
   500
_LIT(KPath35,		"/abcd/ada/resource.cgi;x=123;df223;2342;2323");
sl@0
   501
_LIT(KQuery35,		"asd=b");
sl@0
   502
_LIT(KFragment35,	"part");
sl@0
   503
_LIT(KUser35,		"user");
sl@0
   504
_LIT(KPass35,		"pass");
sl@0
   505
_LIT(KHost35,		"::FfFf:129.144.52.38");
sl@0
   506
_LIT(KUserInfo35,	"user:pass");
sl@0
   507
_LIT(KPort35,		"1666");
sl@0
   508
sl@0
   509
_LIT(KComps36,		"http://user:pass@[2010:836B:4179::836B:4179]:1666/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part");
sl@0
   510
_LIT(KScheme36,		"http");
sl@0
   511
_LIT(KAuthority36,	"user:pass@[2010:836B:4179::836B:4179]:1666");
sl@0
   512
_LIT(KPath36,		"/abcd/ada/resource.cgi;x=123;df223;2342;2323");
sl@0
   513
_LIT(KQuery36,		"asd=b");
sl@0
   514
_LIT(KFragment36,	"part");
sl@0
   515
_LIT(KUser36,		"user");
sl@0
   516
_LIT(KPass36,		"pass");
sl@0
   517
_LIT(KHost36,		"2010:836B:4179::836B:4179");
sl@0
   518
_LIT(KUserInfo36,	"user:pass");
sl@0
   519
_LIT(KPort36,		"1666");
sl@0
   520
sl@0
   521
sl@0
   522
_LIT(KFileName1,	"http://www.symbian.com");							_LIT(KFileNameExpected1, "");
sl@0
   523
_LIT(KFileName2,	"http://www.symbian.com/");							_LIT(KFileNameExpected2, "");
sl@0
   524
_LIT(KFileName3,	"http://www.symbian.com/images/");					_LIT(KFileNameExpected3, "");
sl@0
   525
_LIT(KFileName4,	"http://www.symbian.com/images");					_LIT(KFileNameExpected4, "images");
sl@0
   526
_LIT(KFileName5,	"http://www.symbian.com/images/epoc/img1.jpg");		_LIT(KFileNameExpected5, "img1.jpg");
sl@0
   527
_LIT(KFileName6,	"http://www.symbian.com/file.txt");					_LIT(KFileNameExpected6, "file.txt");
sl@0
   528
sl@0
   529
//
sl@0
   530
//
sl@0
   531
//	Misc test data
sl@0
   532
//
sl@0
   533
//
sl@0
   534
sl@0
   535
//	TestCompare input data
sl@0
   536
//
sl@0
   537
//_LIT(KUrl0,"http://user:pass@location.com/abcd/ada/resource.cgi;x=123;df223;2342;2323?asd=b#part"); // SLPRQG
sl@0
   538
_LIT(KUrl0,"http://user:pass@location.com/abcd/ada/resource.cgi?asd=b#part"); // SLPRQG
sl@0
   539
_LIT(KUrl1,"http://user:pass@location.com/abcd/ada/resource.cgi?asd=b"); // SLPRQ
sl@0
   540
_LIT(KUrl2,"http://user:pass@location.com/abcd/ada/resource.cgi"); // SLPR
sl@0
   541
_LIT(KUrl3,"http://user:pass@location.com/abcd/ada/"); // SLP
sl@0
   542
_LIT(KUrl4,"http://user:pass@location.com"); // SL
sl@0
   543
_LIT(KUrl5,"http://"); // S
sl@0
   544
_LIT(KUrl6,""); // 
sl@0
   545
sl@0
   546
_LIT(KUrl10,"http://user:pass@location.com/abcd/ada/resource.cgi?asd=b#pa://rt"); // SLPRQg
sl@0
   547
_LIT(KUrl11,"http://user:pass@location.com/abcd/ada/resource.cgi?as/d=b#pa://rt"); // SLPRqG
sl@0
   548
_LIT(KUrl12,"http://user:pass@location.com/abcd/ada/reso://urce.cgi?asd=b#pa://rt"); // SLPrQG
sl@0
   549
_LIT(KUrl13,"http://user:pass@location.com/abc://d/ada/resource.cgi?asd=b#pa://rt"); // SLpRQG
sl@0
   550
_LIT(KUrl14,"http://user:pass@loc://ation.com/abcd/ada/resource.cgi?asd=b#pa://rt"); // SlPRQG
sl@0
   551
_LIT(KUrl15,"ht~tp://user:pass@location.com/abcd/ada/resource.cgi?asd=b#pa://rt"); // sLPRQG
sl@0
   552
sl@0
   553
_LIT(KUrl16,"user:pass@location.com/abcd/ada/resource.cgi?asd=b#pa://rt"); // SLPRQg
sl@0
   554
_LIT(KUrl17,"/abcd/ada/resource.cgi?asd=b#pa://rt"); // SLPRQg
sl@0
   555
_LIT(KUrl18,"resource.cgi?asd=b#pa://rt"); // SLPRQg
sl@0
   556
_LIT(KUrl19,"?asd=b#pa://rt"); // SLPRQg
sl@0
   557
_LIT(KUrl20,"#pa://rt"); // SLPRQg
sl@0
   558
_LIT(KUrl21,"resource.cgi"); // SLPRQg
sl@0
   559
sl@0
   560
//	Construct with TParseBase test data
sl@0
   561
//
sl@0
   562
_LIT(KParse0, "c:\\system\\data.wml");	_LIT(KParseResult0, "file://c|/system/data.wml");
sl@0
   563
_LIT(KParse1, "c:\\wap files\\test.wml");	_LIT(KParseResult1, "file://c|/wap%20files/test.wml");	// Defect EDNTDAS-4N4K72
sl@0
   564
sl@0
   565
//	Unescape url creation test data
sl@0
   566
//
sl@0
   567
_LIT(KEscapedString0, "the%20%25%5E%20weather");				_LIT(KUnescapedString0, "the %^ weather");
sl@0
   568
_LIT(KEscapedString1, "%7Bcheck%3C%3Ethis%5B%5Dout%7D");		_LIT(KUnescapedString1, "{check<>this[]out}");
sl@0
   569
_LIT(KEscapedString2a, "Reserved;/?:@&=+$,");					_LIT(KUnescapedString2, "Reserved;/?:@&=+$,");
sl@0
   570
_LIT(KEscapedString2b, "Reserved%3B%2F%3F%3A%40%26%3D%2B%24%2C");
sl@0
   571
sl@0
   572
sl@0
   573
// Construction defect EDNFUDN-4K9MD8
sl@0
   574
// 
sl@0
   575
_LIT(KCtorUrl0, ":\\http://www.bbc.co.uk/mobile/mainmenu.wml");
sl@0
   576
sl@0
   577
_LIT(KRubbish, "rubbish");
sl@0
   578
_LIT(KSlashRubbish, "/rubbish");
sl@0
   579
sl@0
   580
// Leading whitespace defect EDNEPTA-4PBHSE - WAP:Go-element causes breakpoint if href-attribute has space in its beginning
sl@0
   581
_LIT(KLeadWhitespace1, " http://wap.iobox.com");	_LIT(KLeadWhitespaceUrl, "http://wap.iobox.com");
sl@0
   582
_LIT(KLeadWhitespace2, "        http://wap.iobox.com");
sl@0
   583
sl@0
   584
//
sl@0
   585
//
sl@0
   586
// Uri test data
sl@0
   587
//
sl@0
   588
//
sl@0
   589
sl@0
   590
_LIT(KUri_IPv6Fragment0,"http://userinfo@[::FfFf:129.144.52.38]:port/a/b/c?query#fragment");	// with fragment
sl@0
   591
_LIT(KUri_IPv6Query0,	"http://userinfo@[::FfFf:129.144.52.38]:port/a/b/c?query");			// with query
sl@0
   592
_LIT(KUri_IPv6Path0,	"http://userinfo@[::FfFf:129.144.52.38]:port/a/b/c");					// with path
sl@0
   593
_LIT(KUri_IPv6Port0,	"http://userinfo@[::FfFf:129.144.52.38]:port");						// with port
sl@0
   594
_LIT(KUri_IPv6UserInfo0,"http://userinfo@[::FfFf:129.144.52.38]");							// with userinfo
sl@0
   595
_LIT(KUri_IPv6Host0,	"http://[::FfFf:129.144.52.38]");										// with scheme
sl@0
   596
sl@0
   597
sl@0
   598
sl@0
   599
sl@0
   600
sl@0
   601
_LIT(KUri_IPv6HostComp0,	"::FfFf:129.144.52.38");
sl@0
   602
sl@0
   603
_LIT(KUri_Fragment0,	"http://userinfo@host:port/a/b/c?query#fragment");	// With fragment
sl@0
   604
_LIT(KUri_Query0,		"http://userinfo@host:port/a/b/c?query");			// With query
sl@0
   605
_LIT(KUri_Path0,		"http://userinfo@host:port/a/b/c");					// With path
sl@0
   606
_LIT(KUri_Port0,		"http://userinfo@host:port");						// With port
sl@0
   607
_LIT(KUri_Userinfo0,	"http://userinfo@host");							// With userinfo
sl@0
   608
_LIT(KUri_Host0,		"http://host");										// With host
sl@0
   609
_LIT(KUri_Scheme0,		"http:");											// With scheme
sl@0
   610
sl@0
   611
_LIT(KUri_SchemeComp0,		"http");
sl@0
   612
_LIT(KUri_UserinfoComp0,	"userinfo");
sl@0
   613
_LIT(KUri_HostComp0,		"host");
sl@0
   614
_LIT(KUri_PortComp0,		"port");
sl@0
   615
_LIT(KUri_PathComp0,		"/a/b/c");
sl@0
   616
_LIT(KUri_QueryComp0,		"query");
sl@0
   617
_LIT(KUri_FragmentComp0,	"fragment");
sl@0
   618
sl@0
   619
_LIT(KUri_Compare0_a, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
sl@0
   620
_LIT(KUri_Compare0_b, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
sl@0
   621
const TInt KUriMatchFlags0 = (ESchemeFlag | EUserinfoFlag | EHostFlag | EPortFlag | EPathFlag | EQueryFlag | EFragmentFlag);
sl@0
   622
sl@0
   623
_LIT(KUri_Compare1_a, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
sl@0
   624
_LIT(KUri_Compare1_b, "HTTP://USER@Www.symbian.com:1666/wap/dev/different.wml?name=dave#card1");
sl@0
   625
const TInt KUriMatchFlags1 = (ESchemeFlag | EHostFlag | EPortFlag | EQueryFlag | EFragmentFlag);
sl@0
   626
sl@0
   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");
sl@0
   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");
sl@0
   629
const TInt KUriMatchFlags2 = (ESchemeFlag | EUserinfoFlag | EHostFlag | EPortFlag | EPathFlag | EQueryFlag | EFragmentFlag);
sl@0
   630
sl@0
   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");
sl@0
   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");
sl@0
   633
const TInt KUriMatchFlags3 = (ESchemeFlag | EHostFlag | EPortFlag | EPathFlag | EQueryFlag | EFragmentFlag);
sl@0
   634
sl@0
   635
sl@0
   636
sl@0
   637
_LIT(KUri_SchemeValidation0, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
sl@0
   638
TBool KUri_SchemeValidity0 = ETrue;
sl@0
   639
sl@0
   640
_LIT(KUri_SchemeValidation1, "ht~tp://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
sl@0
   641
TBool KUri_SchemeValidity1 = EFalse;
sl@0
   642
sl@0
   643
_LIT(KUri_WithoutFragment0, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
sl@0
   644
_LIT(KUri_WithoutFragment_Result0, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave");
sl@0
   645
sl@0
   646
_LIT(KUri_WithoutFragment1, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave");
sl@0
   647
_LIT(KUri_WithoutFragment_Result1, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave");
sl@0
   648
sl@0
   649
_LIT(KUri_Whole0,		"http://userinfo@host:port/a/b/c?query#fragment");	// Whole uri
sl@0
   650
_LIT(KUri_NoFragment0,	"http://userinfo@host:port/a/b/c?query");			// Without fragment
sl@0
   651
_LIT(KUri_NoQuery0,		"http://userinfo@host:port/a/b/c");					// Without query
sl@0
   652
_LIT(KUri_NoPath0,		"http://userinfo@host:port");						// Without path
sl@0
   653
_LIT(KUri_NoPort0,		"http://userinfo@host");							// Without port
sl@0
   654
_LIT(KUri_NoUserinfo0,	"http://host");										// Without userinfo
sl@0
   655
_LIT(KUri_NoHost0,		"http:");											// Without host
sl@0
   656
_LIT(KUri_NoScheme0,	"");												// Without scheme
sl@0
   657
sl@0
   658
_LIT(KUri_IPv6Whole0,		"http://userinfo@[::FfFf:129.144.52.38]:port/a/b/c?query#fragment");	// Whole uri
sl@0
   659
_LIT(KUri_IPv6NoFragment0,	"http://userinfo@[::FfFf:129.144.52.38]:port/a/b/c?query");				// Without fragment
sl@0
   660
_LIT(KUri_IPv6NoQuery0,		"http://userinfo@[::FfFf:129.144.52.38]:port/a/b/c");					// Without query
sl@0
   661
_LIT(KUri_IPv6NoPath0,		"http://userinfo@[::FfFf:129.144.52.38]:port");							// Without path
sl@0
   662
_LIT(KUri_IPv6NoPort0,		"http://userinfo@[::FfFf:129.144.52.38]");								// Without port
sl@0
   663
_LIT(KUri_IPv6NoUserinfo0,	"http://[::FfFf:129.144.52.38]");										// Without userinfo
sl@0
   664
_LIT(KUri_IPv6NoHost0,		"http:");																// Without host
sl@0
   665
_LIT(KUri_IPv6NoScheme0,	"");	
sl@0
   666
sl@0
   667
_LIT(KUri_Presence0, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
sl@0
   668
const TInt KUriPresenceFlags0 = (ESchemeFlag | EUserinfoFlag | EHostFlag | EPortFlag | EPathFlag | EQueryFlag | EFragmentFlag);
sl@0
   669
sl@0
   670
_LIT(KUri_Presence1, "http://www.symbian.com:1666?name=dave");
sl@0
   671
const TInt KUriPresenceFlags1 = (ESchemeFlag | EHostFlag | EPortFlag | EPathFlag | EQueryFlag );
sl@0
   672
sl@0
   673
_LIT(KAuthority_Presence0, "user@www.symbian.com:1666");
sl@0
   674
const TInt KAuthorityPresenceFlags0 = (EUserinfoFlag | EHostFlag | EPortFlag );
sl@0
   675
sl@0
   676
_LIT(KAuthority_Presence1, "www.symbian.com");
sl@0
   677
const TInt KAuthorityPresenceFlags1 = (EHostFlag);
sl@0
   678
sl@0
   679
_LIT(KUri_Des0, "http://user@www.symbian.com:1666/wap/dev/my.wml?name=dave#card1");
sl@0
   680
sl@0
   681
//
sl@0
   682
//
sl@0
   683
// Authority test data
sl@0
   684
//
sl@0
   685
//
sl@0
   686
sl@0
   687
_LIT(KAuth_Compare0_a, "user@www.symbian.com:1666");
sl@0
   688
_LIT(KAuth_Compare0_b, "user@www.symbian.com:1666");
sl@0
   689
const TInt KAuthMatchFlags0 = (EUserinfoFlag | EHostFlag | EPortFlag);
sl@0
   690
sl@0
   691
_LIT(KAuth_Compare1_a, "user@www.symbian.com:1666");
sl@0
   692
_LIT(KAuth_Compare1_b, "USER@Www.symbian.com:1666");
sl@0
   693
const TInt KAuthMatchFlags1 = (EHostFlag | EPortFlag);
sl@0
   694
sl@0
   695
_LIT(KAuthority_Des0, "user@www.symbian.com:1666");
sl@0
   696
sl@0
   697
_LIT(KAuthority_Port0,		"userinfo@host:port");	// With port
sl@0
   698
_LIT(KAuthority_Userinfo0,	"userinfo@host");		// With userinfo
sl@0
   699
_LIT(KAuthority_Host0,		"host");				// With host
sl@0
   700
sl@0
   701
_LIT(KAuthority_UserinfoComp0,	"userinfo");
sl@0
   702
_LIT(KAuthority_HostComp0,		"host");
sl@0
   703
_LIT(KAuthority_PortComp0,		"port");
sl@0
   704
sl@0
   705
_LIT(KAuthorityEscaped_Port0,		"some%3Astuff@host%2Fname:port%3Fnum");	// With port
sl@0
   706
_LIT(KAuthorityEscaped_Userinfo0,	"some%3Astuff@host%2Fname");			// With userinfo
sl@0
   707
_LIT(KAuthorityEscaped_Host0,		"host%2Fname");							// With host
sl@0
   708
sl@0
   709
_LIT(KAuthorityEscaped_UserinfoComp0,	"some:stuff");
sl@0
   710
_LIT(KAuthorityEscaped_HostComp0,		"host/name");
sl@0
   711
_LIT(KAuthorityEscaped_PortComp0,		"port?num");
sl@0
   712
sl@0
   713
_LIT(KAuthority_Whole0,			"userinfo@host:port");	// Whole authority
sl@0
   714
_LIT(KAuthority_NoPort0,		"userinfo@host");		// Without port
sl@0
   715
_LIT(KAuthority_NoUserinfo0,	"host");				// Without userinfo
sl@0
   716
_LIT(KAuthority_NoHost0,		"");					// Without host
sl@0
   717
sl@0
   718
_LIT(KAuthority_IPv6Whole0,			"userinfo@[::FfFf:129.144.52.38]:port");	// Whole authority
sl@0
   719
_LIT(KAuthority_IPv6NoPort0,		"userinfo@[::FfFf:129.144.52.38]");			// Without port
sl@0
   720
_LIT(KAuthority_IPv6NoUserinfo0,	"[::FfFf:129.144.52.38]");					// Without userinfo
sl@0
   721
_LIT(KAuthority_IPv6NoHost0,		"");
sl@0
   722
sl@0
   723
_LIT(KAuthority_IPv6Port0,		"userinfo@[::FfFf:129.144.52.38]:port");	// With port
sl@0
   724
_LIT(KAuthority_IPv6Userinfo0,	"userinfo@[::FfFf:129.144.52.38]");			// With userinfo
sl@0
   725
_LIT(KAuthority_IPv6Host0,		"[::FfFf:129.144.52.38]");					// With host
sl@0
   726
sl@0
   727
_LIT(KAuthority_IPv6UserinfoComp0,	"userinfo");
sl@0
   728
_LIT(KAuthority_IPv6HostComp0,		"::FfFf:129.144.52.38");
sl@0
   729
_LIT(KAuthority_IPv6PortComp0,		"port");
sl@0
   730
sl@0
   731
#endif	// __URIANDAUTHORITYTESTS_H__