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