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 __DELIMITEDPATHSEGMENTTESTS_H__
|
sl@0
|
17 |
#define __DELIMITEDPATHSEGMENTTESTS_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 |
// DelmiitedPathSegment test data
|
sl@0
|
26 |
//
|
sl@0
|
27 |
//
|
sl@0
|
28 |
|
sl@0
|
29 |
_LIT(KPathSegmentParse0, "abc;def;ghij");
|
sl@0
|
30 |
_LIT(KPathSegmentParse0Seg0, "abc");
|
sl@0
|
31 |
_LIT(KPathSegmentParse0Seg1, "def");
|
sl@0
|
32 |
_LIT(KPathSegmentParse0Seg2, "ghij");
|
sl@0
|
33 |
|
sl@0
|
34 |
_LIT(KPathSegmentParse1, "hello:there;p1;p2;p3");
|
sl@0
|
35 |
_LIT(KPathSegmentParse1Seg0, "hello:there");
|
sl@0
|
36 |
_LIT(KPathSegmentParse1Seg1, "p1");
|
sl@0
|
37 |
_LIT(KPathSegmentParse1Seg2, "p2");
|
sl@0
|
38 |
_LIT(KPathSegmentParse1Seg3, "p3");
|
sl@0
|
39 |
|
sl@0
|
40 |
_LIT(KPathSegmentParse2, "hello:there;p1;p2;p3;is;there;any;stuff");
|
sl@0
|
41 |
_LIT(KPathSegmentParse2Seg0, "hello:there");
|
sl@0
|
42 |
_LIT(KPathSegmentParse2Seg1, "p1");
|
sl@0
|
43 |
_LIT(KPathSegmentParse2Seg2, "p2");
|
sl@0
|
44 |
_LIT(KPathSegmentParse2Seg3, "p3");
|
sl@0
|
45 |
_LIT(KPathSegmentParse2Seg4, "is");
|
sl@0
|
46 |
_LIT(KPathSegmentParse2Seg5, "there");
|
sl@0
|
47 |
_LIT(KPathSegmentParse2Seg6, "any");
|
sl@0
|
48 |
_LIT(KPathSegmentParse2Seg7, "stuff");
|
sl@0
|
49 |
|
sl@0
|
50 |
|
sl@0
|
51 |
_LIT(KPathSegment_DelimPresence0, ";afrontdelim;abackdelim;");
|
sl@0
|
52 |
TBool KPathSegment_FrontDelim0 = ETrue;
|
sl@0
|
53 |
TBool KPathSegment_BackDelim0 = ETrue;
|
sl@0
|
54 |
|
sl@0
|
55 |
_LIT(KPathSegment_DelimPresence1, "nofrontdelim;abackdelim;");
|
sl@0
|
56 |
TBool KPathSegment_FrontDelim1 = EFalse;
|
sl@0
|
57 |
TBool KPathSegment_BackDelim1 = ETrue;
|
sl@0
|
58 |
|
sl@0
|
59 |
_LIT(KPathSegment_DelimPresence2, ";afrontdelim;nobackdelim");
|
sl@0
|
60 |
TBool KPathSegment_FrontDelim2 = ETrue;
|
sl@0
|
61 |
TBool KPathSegment_BackDelim2 = EFalse;
|
sl@0
|
62 |
|
sl@0
|
63 |
_LIT(KPathSegment_DelimPresence3, "nofrontdelim;nobackdelim");
|
sl@0
|
64 |
TBool KPathSegment_FrontDelim3 = EFalse;
|
sl@0
|
65 |
TBool KPathSegment_BackDelim3 = EFalse;
|
sl@0
|
66 |
|
sl@0
|
67 |
_LIT(KPathSegment_Rem_Forwards0_0, "a;bc;def;ghikj");
|
sl@0
|
68 |
_LIT(KPathSegment_Rem_Forwards0_1, ";bc;def;ghikj");
|
sl@0
|
69 |
_LIT(KPathSegment_Rem_Forwards0_2, ";def;ghikj");
|
sl@0
|
70 |
_LIT(KPathSegment_Rem_Forwards0_3, ";ghikj");
|
sl@0
|
71 |
|
sl@0
|
72 |
_LIT(KPathSegment_Rem_Backwards0_0, "a;bc;def;ghikj");
|
sl@0
|
73 |
_LIT(KPathSegment_Rem_Backwards0_1, "a;bc;def");
|
sl@0
|
74 |
_LIT(KPathSegment_Rem_Backwards0_2, "a;bc");
|
sl@0
|
75 |
_LIT(KPathSegment_Rem_Backwards0_3, "a");
|
sl@0
|
76 |
|
sl@0
|
77 |
_LIT(KPathSegment_Des0, "a;bc;def;ghij");
|
sl@0
|
78 |
|
sl@0
|
79 |
_LIT(KPathSegment_PushPopFront0_0, "");
|
sl@0
|
80 |
_LIT(KPathSegment_PushPopFront0_1, ";zero");
|
sl@0
|
81 |
_LIT(KPathSegment_PushPopFront0_2, ";one;zero");
|
sl@0
|
82 |
_LIT(KPathSegment_PushPopFront0_3, ";two;one;zero");
|
sl@0
|
83 |
_LIT(KPathSegment_PushPopFront0_4, ";three;two;one;zero");
|
sl@0
|
84 |
_LIT(KPathSegment_PushPopFront0_5, ";four;three;two;one;zero");
|
sl@0
|
85 |
|
sl@0
|
86 |
_LIT(KPathSegment_PushPopBack0_0, "");
|
sl@0
|
87 |
_LIT(KPathSegment_PushPopBack0_1, ";zero");
|
sl@0
|
88 |
_LIT(KPathSegment_PushPopBack0_2, ";zero;one");
|
sl@0
|
89 |
_LIT(KPathSegment_PushPopBack0_3, ";zero;one;two");
|
sl@0
|
90 |
_LIT(KPathSegment_PushPopBack0_4, ";zero;one;two;three");
|
sl@0
|
91 |
_LIT(KPathSegment_PushPopBack0_5, ";zero;one;two;three;four");
|
sl@0
|
92 |
|
sl@0
|
93 |
_LIT(KPathSegment_Push0_a, "zero");
|
sl@0
|
94 |
_LIT(KPathSegment_Push0_b, "one");
|
sl@0
|
95 |
_LIT(KPathSegment_Push0_c, "two");
|
sl@0
|
96 |
_LIT(KPathSegment_Push0_d, "three");
|
sl@0
|
97 |
_LIT(KPathSegment_Push0_e, "four");
|
sl@0
|
98 |
|
sl@0
|
99 |
_LIT(KPathSegment_AddTrimDelim0, "zero;one;two;three;four");
|
sl@0
|
100 |
|
sl@0
|
101 |
_LIT(KPathSegment_InsertBackwards0_0, "some;rubbish;before;some;rubbish;after");
|
sl@0
|
102 |
_LIT(KPathSegment_InsertBackwards0_1, "some;rubbish;before;zero;some;rubbish;after");
|
sl@0
|
103 |
_LIT(KPathSegment_InsertBackwards0_2, "some;rubbish;before;one;zero;some;rubbish;after");
|
sl@0
|
104 |
_LIT(KPathSegment_InsertBackwards0_3, "some;rubbish;before;two;one;zero;some;rubbish;after");
|
sl@0
|
105 |
_LIT(KPathSegment_InsertBackwards0_4, "some;rubbish;before;three;two;one;zero;some;rubbish;after");
|
sl@0
|
106 |
_LIT(KPathSegment_InsertBackwards0_5, "some;rubbish;before;four;three;two;one;zero;some;rubbish;after");
|
sl@0
|
107 |
const TInt KPathSegmentInsertBackwardsPos0 = 3;
|
sl@0
|
108 |
|
sl@0
|
109 |
_LIT(KPathSegment_RemoveBackwards0_5, "some;rubbish;before;some;rubbish;after");
|
sl@0
|
110 |
_LIT(KPathSegment_RemoveBackwards0_4, "some;rubbish;before;zero;some;rubbish;after");
|
sl@0
|
111 |
_LIT(KPathSegment_RemoveBackwards0_3, "some;rubbish;before;zero;one;some;rubbish;after");
|
sl@0
|
112 |
_LIT(KPathSegment_RemoveBackwards0_2, "some;rubbish;before;zero;one;two;some;rubbish;after");
|
sl@0
|
113 |
_LIT(KPathSegment_RemoveBackwards0_1, "some;rubbish;before;zero;one;two;three;some;rubbish;after");
|
sl@0
|
114 |
_LIT(KPathSegment_RemoveBackwards0_0, "some;rubbish;before;zero;one;two;three;four;some;rubbish;after");
|
sl@0
|
115 |
const TInt KPathSegmentRemoveBackwardsPos0 = 3;
|
sl@0
|
116 |
|
sl@0
|
117 |
_LIT(KPathSegment_InsertForwards0_0, "some;rubbish;before;some;rubbish;after");
|
sl@0
|
118 |
_LIT(KPathSegment_InsertForwards0_1, "some;rubbish;before;zero;some;rubbish;after");
|
sl@0
|
119 |
_LIT(KPathSegment_InsertForwards0_2, "some;rubbish;before;zero;one;some;rubbish;after");
|
sl@0
|
120 |
_LIT(KPathSegment_InsertForwards0_3, "some;rubbish;before;zero;one;two;some;rubbish;after");
|
sl@0
|
121 |
_LIT(KPathSegment_InsertForwards0_4, "some;rubbish;before;zero;one;two;three;some;rubbish;after");
|
sl@0
|
122 |
_LIT(KPathSegment_InsertForwards0_5, "some;rubbish;before;zero;one;two;three;four;some;rubbish;after");
|
sl@0
|
123 |
const TInt KPathSegmentInsertForwardsPos0 = 3;
|
sl@0
|
124 |
|
sl@0
|
125 |
_LIT(KPathSegment_RemoveForwards0_5, "some;rubbish;before;some;rubbish;after");
|
sl@0
|
126 |
_LIT(KPathSegment_RemoveForwards0_4, "some;rubbish;before;zero;some;rubbish;after");
|
sl@0
|
127 |
_LIT(KPathSegment_RemoveForwards0_3, "some;rubbish;before;one;zero;some;rubbish;after");
|
sl@0
|
128 |
_LIT(KPathSegment_RemoveForwards0_2, "some;rubbish;before;two;one;zero;some;rubbish;after");
|
sl@0
|
129 |
_LIT(KPathSegment_RemoveForwards0_1, "some;rubbish;before;three;two;one;zero;some;rubbish;after");
|
sl@0
|
130 |
_LIT(KPathSegment_RemoveForwards0_0, "some;rubbish;before;four;three;two;one;zero;some;rubbish;after");
|
sl@0
|
131 |
const TInt KPathSegmentRemoveForwardsPos0 = 3;
|
sl@0
|
132 |
|
sl@0
|
133 |
_LIT(KPathSegment_Insert0_a, "zero");
|
sl@0
|
134 |
_LIT(KPathSegment_Insert0_b, "one");
|
sl@0
|
135 |
_LIT(KPathSegment_Insert0_c, "two");
|
sl@0
|
136 |
_LIT(KPathSegment_Insert0_d, "three");
|
sl@0
|
137 |
_LIT(KPathSegment_Insert0_e, "four");
|
sl@0
|
138 |
|
sl@0
|
139 |
_LIT(KPathSegment_InsertEscapeBackwards0_0, "some;rubbish;before;some;rubbish;after");
|
sl@0
|
140 |
_LIT(KPathSegment_InsertEscapeBackwards0_1, "some;rubbish;before;a%2Fa;some;rubbish;after");
|
sl@0
|
141 |
_LIT(KPathSegment_InsertEscapeBackwards0_2, "some;rubbish;before;a%3Ba;a%2Fa;some;rubbish;after");
|
sl@0
|
142 |
_LIT(KPathSegment_InsertEscapeBackwards0_3, "some;rubbish;before;a%3Da;a%3Ba;a%2Fa;some;rubbish;after");
|
sl@0
|
143 |
_LIT(KPathSegment_InsertEscapeBackwards0_4, "some;rubbish;before;a%3Fa;a%3Da;a%3Ba;a%2Fa;some;rubbish;after");
|
sl@0
|
144 |
_LIT(KPathSegment_InsertEscapeBackwards0_5, "some;rubbish;before;a%20a;a%3Fa;a%3Da;a%3Ba;a%2Fa;some;rubbish;after");
|
sl@0
|
145 |
const TInt KPathSegmentInsertEscapeBackwardsPos0 = 3;
|
sl@0
|
146 |
|
sl@0
|
147 |
_LIT(KPathSegment_InsertEscapeForwards0_0, "some;rubbish;before;some;rubbish;after");
|
sl@0
|
148 |
_LIT(KPathSegment_InsertEscapeForwards0_1, "some;rubbish;before;a%2Fa;some;rubbish;after");
|
sl@0
|
149 |
_LIT(KPathSegment_InsertEscapeForwards0_2, "some;rubbish;before;a%2Fa;a%3Ba;some;rubbish;after");
|
sl@0
|
150 |
_LIT(KPathSegment_InsertEscapeForwards0_3, "some;rubbish;before;a%2Fa;a%3Ba;a%3Da;some;rubbish;after");
|
sl@0
|
151 |
_LIT(KPathSegment_InsertEscapeForwards0_4, "some;rubbish;before;a%2Fa;a%3Ba;a%3Da;a%3Fa;some;rubbish;after");
|
sl@0
|
152 |
_LIT(KPathSegment_InsertEscapeForwards0_5, "some;rubbish;before;a%2Fa;a%3Ba;a%3Da;a%3Fa;a%20a;some;rubbish;after");
|
sl@0
|
153 |
const TInt KPathSegmentInsertEscapeForwardsPos0 = 3;
|
sl@0
|
154 |
|
sl@0
|
155 |
_LIT(KPathSegment_InsertEscape0_a, "a/a");
|
sl@0
|
156 |
_LIT(KPathSegment_InsertEscape0_b, "a;a");
|
sl@0
|
157 |
_LIT(KPathSegment_InsertEscape0_c, "a=a");
|
sl@0
|
158 |
_LIT(KPathSegment_InsertEscape0_d, "a?a");
|
sl@0
|
159 |
_LIT(KPathSegment_InsertEscape0_e, "a a");
|
sl@0
|
160 |
|
sl@0
|
161 |
_LIT(KPathSegment_PushEscapeFront0_0, "");
|
sl@0
|
162 |
_LIT(KPathSegment_PushEscapeFront0_1, ";a%2Fa");
|
sl@0
|
163 |
_LIT(KPathSegment_PushEscapeFront0_2, ";a%3Ba;a%2Fa");
|
sl@0
|
164 |
_LIT(KPathSegment_PushEscapeFront0_3, ";a%3Da;a%3Ba;a%2Fa");
|
sl@0
|
165 |
_LIT(KPathSegment_PushEscapeFront0_4, ";a%3Fa;a%3Da;a%3Ba;a%2Fa");
|
sl@0
|
166 |
_LIT(KPathSegment_PushEscapeFront0_5, ";a%20a;a%3Fa;a%3Da;a%3Ba;a%2Fa");
|
sl@0
|
167 |
|
sl@0
|
168 |
_LIT(KPathSegment_PushEscapeBack0_0, "");
|
sl@0
|
169 |
_LIT(KPathSegment_PushEscapeBack0_1, ";a%2Fa");
|
sl@0
|
170 |
_LIT(KPathSegment_PushEscapeBack0_2, ";a%2Fa;a%3Ba");
|
sl@0
|
171 |
_LIT(KPathSegment_PushEscapeBack0_3, ";a%2Fa;a%3Ba;a%3Da");
|
sl@0
|
172 |
_LIT(KPathSegment_PushEscapeBack0_4, ";a%2Fa;a%3Ba;a%3Da;a%3Fa");
|
sl@0
|
173 |
_LIT(KPathSegment_PushEscapeBack0_5, ";a%2Fa;a%3Ba;a%3Da;a%3Fa;a%20a");
|
sl@0
|
174 |
|
sl@0
|
175 |
_LIT(KPathSegment_PushEscape0_a, "a/a");
|
sl@0
|
176 |
_LIT(KPathSegment_PushEscape0_b, "a;a");
|
sl@0
|
177 |
_LIT(KPathSegment_PushEscape0_c, "a=a");
|
sl@0
|
178 |
_LIT(KPathSegment_PushEscape0_d, "a?a");
|
sl@0
|
179 |
_LIT(KPathSegment_PushEscape0_e, "a a");
|
sl@0
|
180 |
|
sl@0
|
181 |
#endif // __DELIMITEDPATHSEGMENTTESTS_H__
|