os/ossrv/genericservices/httputils/Test/t_uriparser/DelimitedPathTests.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 __DELIMITEDPATHTESTS_H__
sl@0
    17
#define __DELIMITEDPATHTESTS_H__
sl@0
    18
sl@0
    19
// System includes
sl@0
    20
//
sl@0
    21
#include <e32base.h>
sl@0
    22
sl@0
    23
//
sl@0
    24
//
sl@0
    25
// DelmiitedPath test data
sl@0
    26
//
sl@0
    27
//
sl@0
    28
sl@0
    29
_LIT(KPathParse0,		"/a/bc/def/ghij/");
sl@0
    30
_LIT(KPathParse0Seg0,	"a");
sl@0
    31
_LIT(KPathParse0Seg1,	"bc");
sl@0
    32
_LIT(KPathParse0Seg2,	"def");
sl@0
    33
_LIT(KPathParse0Seg3,	"ghij");
sl@0
    34
_LIT(KPathParse0Seg4,	"");
sl@0
    35
sl@0
    36
_LIT(KPathParse1,		"/hello:there;p1;p2;p3/index.wml");
sl@0
    37
_LIT(KPathParse1Seg0,	"hello:there;p1;p2;p3");
sl@0
    38
_LIT(KPathParse1Seg1,	"index.wml");
sl@0
    39
sl@0
    40
_LIT(KPathParse2,		"/hello/there;p1;p2;p3/is/there/any/filename/");
sl@0
    41
_LIT(KPathParse2Seg0,	"hello");
sl@0
    42
_LIT(KPathParse2Seg1,	"there;p1;p2;p3");
sl@0
    43
_LIT(KPathParse2Seg2,	"is");
sl@0
    44
_LIT(KPathParse2Seg3,	"there");
sl@0
    45
_LIT(KPathParse2Seg4,	"any");
sl@0
    46
_LIT(KPathParse2Seg5,	"filename");
sl@0
    47
_LIT(KPathParse2Seg6,	"");
sl@0
    48
sl@0
    49
_LIT(KPath_DelimPresence0, "/afrontdelim/abackdelim/");
sl@0
    50
TBool KPath_FrontDelim0 = ETrue;
sl@0
    51
TBool KPath_BackDelim0 = ETrue;
sl@0
    52
sl@0
    53
_LIT(KPath_DelimPresence1, "nofrontdelim/abackdelim/");
sl@0
    54
TBool KPath_FrontDelim1 = EFalse;
sl@0
    55
TBool KPath_BackDelim1 = ETrue;
sl@0
    56
sl@0
    57
_LIT(KPath_DelimPresence2, "/afrontdelim/nobackdelim");
sl@0
    58
TBool KPath_FrontDelim2 = ETrue;
sl@0
    59
TBool KPath_BackDelim2 = EFalse;
sl@0
    60
sl@0
    61
_LIT(KPath_DelimPresence3, "nofrontdelim/nobackdelim");
sl@0
    62
TBool KPath_FrontDelim3 = EFalse;
sl@0
    63
TBool KPath_BackDelim3 = EFalse;
sl@0
    64
sl@0
    65
_LIT(KPath_Rem_Forwards0_0, "/a/bc/def/ghikj/");
sl@0
    66
_LIT(KPath_Rem_Forwards0_1, "/bc/def/ghikj/");
sl@0
    67
_LIT(KPath_Rem_Forwards0_2, "/def/ghikj/");
sl@0
    68
_LIT(KPath_Rem_Forwards0_3, "/ghikj/");
sl@0
    69
_LIT(KPath_Rem_Forwards0_4, "/");
sl@0
    70
sl@0
    71
_LIT(KPath_Rem_Forwards1_0, "/a/bc/def/ghikj");
sl@0
    72
_LIT(KPath_Rem_Forwards1_1, "/bc/def/ghikj");
sl@0
    73
_LIT(KPath_Rem_Forwards1_2, "/def/ghikj");
sl@0
    74
_LIT(KPath_Rem_Forwards1_3, "/ghikj");
sl@0
    75
sl@0
    76
_LIT(KPath_Rem_Forwards2_0, "a/bc/def/ghikj");
sl@0
    77
_LIT(KPath_Rem_Forwards2_1, "/bc/def/ghikj");
sl@0
    78
_LIT(KPath_Rem_Forwards2_2, "/def/ghikj");
sl@0
    79
_LIT(KPath_Rem_Forwards2_3, "/ghikj");
sl@0
    80
sl@0
    81
_LIT(KPath_Rem_Backwards0_0, "/a/bc/def/ghikj/");
sl@0
    82
_LIT(KPath_Rem_Backwards0_1, "/a/bc/def/ghikj");
sl@0
    83
_LIT(KPath_Rem_Backwards0_2, "/a/bc/def");
sl@0
    84
_LIT(KPath_Rem_Backwards0_3, "/a/bc");
sl@0
    85
_LIT(KPath_Rem_Backwards0_4, "/a");
sl@0
    86
sl@0
    87
_LIT(KPath_Rem_Backwards1_0, "/a/bc/def/ghikj");
sl@0
    88
_LIT(KPath_Rem_Backwards1_1, "/a/bc/def");
sl@0
    89
_LIT(KPath_Rem_Backwards1_2, "/a/bc");
sl@0
    90
_LIT(KPath_Rem_Backwards1_3, "/a");
sl@0
    91
sl@0
    92
_LIT(KPath_Rem_Backwards2_0, "a/bc/def/ghikj");
sl@0
    93
_LIT(KPath_Rem_Backwards2_1, "a/bc/def");
sl@0
    94
_LIT(KPath_Rem_Backwards2_2, "a/bc");
sl@0
    95
_LIT(KPath_Rem_Backwards2_3, "a");
sl@0
    96
sl@0
    97
_LIT(KPath_Des0, "/a/bc/def/ghij/");
sl@0
    98
sl@0
    99
_LIT(KPath_PushPopFront0_0, "");
sl@0
   100
_LIT(KPath_PushPopFront0_1, "/zero");
sl@0
   101
_LIT(KPath_PushPopFront0_2, "/one/zero");
sl@0
   102
_LIT(KPath_PushPopFront0_3, "/two/one/zero");
sl@0
   103
_LIT(KPath_PushPopFront0_4, "/three/two/one/zero");
sl@0
   104
_LIT(KPath_PushPopFront0_5, "/four/three/two/one/zero");
sl@0
   105
sl@0
   106
_LIT(KPath_PushPopBack0_0, "");
sl@0
   107
_LIT(KPath_PushPopBack0_1, "/zero");
sl@0
   108
_LIT(KPath_PushPopBack0_2, "/zero/one");
sl@0
   109
_LIT(KPath_PushPopBack0_3, "/zero/one/two");
sl@0
   110
_LIT(KPath_PushPopBack0_4, "/zero/one/two/three");
sl@0
   111
_LIT(KPath_PushPopBack0_5, "/zero/one/two/three/four");
sl@0
   112
sl@0
   113
_LIT(KPath_Push0_a, "zero");
sl@0
   114
_LIT(KPath_Push0_b, "one");
sl@0
   115
_LIT(KPath_Push0_c, "two");
sl@0
   116
_LIT(KPath_Push0_d, "three");
sl@0
   117
_LIT(KPath_Push0_e, "four");
sl@0
   118
sl@0
   119
_LIT(KPath_AddTrimDelim0, "zero/one/two/three/four");
sl@0
   120
sl@0
   121
_LIT(KPath_InsertBackwards0_0, "/some/rubbish/before/some/rubbish/after");
sl@0
   122
_LIT(KPath_InsertBackwards0_1, "/some/rubbish/before/zero/some/rubbish/after");
sl@0
   123
_LIT(KPath_InsertBackwards0_2, "/some/rubbish/before/one/zero/some/rubbish/after");
sl@0
   124
_LIT(KPath_InsertBackwards0_3, "/some/rubbish/before/two/one/zero/some/rubbish/after");
sl@0
   125
_LIT(KPath_InsertBackwards0_4, "/some/rubbish/before/three/two/one/zero/some/rubbish/after");
sl@0
   126
_LIT(KPath_InsertBackwards0_5, "/some/rubbish/before/four/three/two/one/zero/some/rubbish/after");
sl@0
   127
const TInt KPathInsertBackwardsPos0 = 3;
sl@0
   128
sl@0
   129
_LIT(KPath_RemoveBackwards0_5, "/some/rubbish/before/some/rubbish/after");
sl@0
   130
_LIT(KPath_RemoveBackwards0_4, "/some/rubbish/before/zero/some/rubbish/after");
sl@0
   131
_LIT(KPath_RemoveBackwards0_3, "/some/rubbish/before/zero/one/some/rubbish/after");
sl@0
   132
_LIT(KPath_RemoveBackwards0_2, "/some/rubbish/before/zero/one/two/some/rubbish/after");
sl@0
   133
_LIT(KPath_RemoveBackwards0_1, "/some/rubbish/before/zero/one/two/three/some/rubbish/after");
sl@0
   134
_LIT(KPath_RemoveBackwards0_0, "/some/rubbish/before/zero/one/two/three/four/some/rubbish/after");
sl@0
   135
const TInt KPathRemoveBackwardsPos0 = 3;
sl@0
   136
sl@0
   137
_LIT(KPath_InsertForwards0_0, "/some/rubbish/before/some/rubbish/after");
sl@0
   138
_LIT(KPath_InsertForwards0_1, "/some/rubbish/before/zero/some/rubbish/after");
sl@0
   139
_LIT(KPath_InsertForwards0_2, "/some/rubbish/before/zero/one/some/rubbish/after");
sl@0
   140
_LIT(KPath_InsertForwards0_3, "/some/rubbish/before/zero/one/two/some/rubbish/after");
sl@0
   141
_LIT(KPath_InsertForwards0_4, "/some/rubbish/before/zero/one/two/three/some/rubbish/after");
sl@0
   142
_LIT(KPath_InsertForwards0_5, "/some/rubbish/before/zero/one/two/three/four/some/rubbish/after");
sl@0
   143
const TInt KPathInsertForwardsPos0 = 3;
sl@0
   144
sl@0
   145
_LIT(KPath_RemoveForwards0_5, "/some/rubbish/before/some/rubbish/after");
sl@0
   146
_LIT(KPath_RemoveForwards0_4, "/some/rubbish/before/zero/some/rubbish/after");
sl@0
   147
_LIT(KPath_RemoveForwards0_3, "/some/rubbish/before/one/zero/some/rubbish/after");
sl@0
   148
_LIT(KPath_RemoveForwards0_2, "/some/rubbish/before/two/one/zero/some/rubbish/after");
sl@0
   149
_LIT(KPath_RemoveForwards0_1, "/some/rubbish/before/three/two/one/zero/some/rubbish/after");
sl@0
   150
_LIT(KPath_RemoveForwards0_0, "/some/rubbish/before/four/three/two/one/zero/some/rubbish/after");
sl@0
   151
const TInt KPathRemoveForwardsPos0 = 3;
sl@0
   152
sl@0
   153
_LIT(KPath_Insert0_a, "zero");
sl@0
   154
_LIT(KPath_Insert0_b, "one");
sl@0
   155
_LIT(KPath_Insert0_c, "two");
sl@0
   156
_LIT(KPath_Insert0_d, "three");
sl@0
   157
_LIT(KPath_Insert0_e, "four");
sl@0
   158
sl@0
   159
_LIT(KPath_InsertEscapeBackwards0_0, "/some/rubbish/before/some/rubbish/after");
sl@0
   160
_LIT(KPath_InsertEscapeBackwards0_1, "/some/rubbish/before/a%2Fa/some/rubbish/after");
sl@0
   161
_LIT(KPath_InsertEscapeBackwards0_2, "/some/rubbish/before/a%3Ba/a%2Fa/some/rubbish/after");
sl@0
   162
_LIT(KPath_InsertEscapeBackwards0_3, "/some/rubbish/before/a%3Da/a%3Ba/a%2Fa/some/rubbish/after");
sl@0
   163
_LIT(KPath_InsertEscapeBackwards0_4, "/some/rubbish/before/a%3Fa/a%3Da/a%3Ba/a%2Fa/some/rubbish/after");
sl@0
   164
_LIT(KPath_InsertEscapeBackwards0_5, "/some/rubbish/before/a%20a/a%3Fa/a%3Da/a%3Ba/a%2Fa/some/rubbish/after");
sl@0
   165
const TInt KPathInsertEscapeBackwardsPos0 = 3;
sl@0
   166
sl@0
   167
_LIT(KPath_InsertEscapeForwards0_0, "/some/rubbish/before/some/rubbish/after");
sl@0
   168
_LIT(KPath_InsertEscapeForwards0_1, "/some/rubbish/before/a%2Fa/some/rubbish/after");
sl@0
   169
_LIT(KPath_InsertEscapeForwards0_2, "/some/rubbish/before/a%2Fa/a%3Ba/some/rubbish/after");
sl@0
   170
_LIT(KPath_InsertEscapeForwards0_3, "/some/rubbish/before/a%2Fa/a%3Ba/a%3Da/some/rubbish/after");
sl@0
   171
_LIT(KPath_InsertEscapeForwards0_4, "/some/rubbish/before/a%2Fa/a%3Ba/a%3Da/a%3Fa/some/rubbish/after");
sl@0
   172
_LIT(KPath_InsertEscapeForwards0_5, "/some/rubbish/before/a%2Fa/a%3Ba/a%3Da/a%3Fa/a%20a/some/rubbish/after");
sl@0
   173
const TInt KPathInsertEscapeForwardsPos0 = 3;
sl@0
   174
sl@0
   175
_LIT(KPath_InsertEscape0_a, "a/a");
sl@0
   176
_LIT(KPath_InsertEscape0_b, "a;a");
sl@0
   177
_LIT(KPath_InsertEscape0_c, "a=a");
sl@0
   178
_LIT(KPath_InsertEscape0_d, "a?a");
sl@0
   179
_LIT(KPath_InsertEscape0_e, "a a");
sl@0
   180
sl@0
   181
_LIT(KPath_PushEscapeFront0_0, "");
sl@0
   182
_LIT(KPath_PushEscapeFront0_1, "/a%2Fa");
sl@0
   183
_LIT(KPath_PushEscapeFront0_2, "/a%3Ba/a%2Fa");
sl@0
   184
_LIT(KPath_PushEscapeFront0_3, "/a%3Da/a%3Ba/a%2Fa");
sl@0
   185
_LIT(KPath_PushEscapeFront0_4, "/a%3Fa/a%3Da/a%3Ba/a%2Fa");
sl@0
   186
_LIT(KPath_PushEscapeFront0_5, "/a%20a/a%3Fa/a%3Da/a%3Ba/a%2Fa");
sl@0
   187
sl@0
   188
_LIT(KPath_PushEscapeBack0_0, "");
sl@0
   189
_LIT(KPath_PushEscapeBack0_1, "/a%2Fa");
sl@0
   190
_LIT(KPath_PushEscapeBack0_2, "/a%2Fa/a%3Ba");
sl@0
   191
_LIT(KPath_PushEscapeBack0_3, "/a%2Fa/a%3Ba/a%3Da");
sl@0
   192
_LIT(KPath_PushEscapeBack0_4, "/a%2Fa/a%3Ba/a%3Da/a%3Fa");
sl@0
   193
_LIT(KPath_PushEscapeBack0_5, "/a%2Fa/a%3Ba/a%3Da/a%3Fa/a%20a");
sl@0
   194
sl@0
   195
_LIT(KPath_PushEscape0_a, "a/a");
sl@0
   196
_LIT(KPath_PushEscape0_b, "a;a");
sl@0
   197
_LIT(KPath_PushEscape0_c, "a=a");
sl@0
   198
_LIT(KPath_PushEscape0_d, "a?a");
sl@0
   199
_LIT(KPath_PushEscape0_e, "a a");
sl@0
   200
sl@0
   201
#endif	// __DELIMITEDPATHTESTS_H__