First public contribution.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __DELIMITEDQUERYTESTS_H__
17 #define __DELIMITEDQUERYTESTS_H__
25 // Delmiited Query test data
29 _LIT(KQueryParse0, "a&bc&def&ghij");
30 _LIT(KQueryParse0Seg0, "a");
31 _LIT(KQueryParse0Seg1, "bc");
32 _LIT(KQueryParse0Seg2, "def");
33 _LIT(KQueryParse0Seg3, "ghij");
35 _LIT(KQueryParse1, "name=dave&surname=cunado");
36 _LIT(KQueryParse1Seg0, "name=dave");
37 _LIT(KQueryParse1Seg1, "surname=cunado");
39 _LIT(KQueryParse2, "hello&there=p1&is&there&any&stuff");
40 _LIT(KQueryParse2Seg0, "hello");
41 _LIT(KQueryParse2Seg1, "there=p1");
42 _LIT(KQueryParse2Seg2, "is");
43 _LIT(KQueryParse2Seg3, "there");
44 _LIT(KQueryParse2Seg4, "any");
45 _LIT(KQueryParse2Seg5, "stuff");
47 _LIT(KQuery_DelimPresence0, "&afrontdelim&abackdelim&");
48 TBool KQuery_FrontDelim0 = ETrue;
49 TBool KQuery_BackDelim0 = ETrue;
51 _LIT(KQuery_DelimPresence1, "nofrontdelim&abackdelim&");
52 TBool KQuery_FrontDelim1 = EFalse;
53 TBool KQuery_BackDelim1 = ETrue;
55 _LIT(KQuery_DelimPresence2, "&afrontdelim&nobackdelim");
56 TBool KQuery_FrontDelim2 = ETrue;
57 TBool KQuery_BackDelim2 = EFalse;
59 _LIT(KQuery_DelimPresence3, "nofrontdelim&nobackdelim");
60 TBool KQuery_FrontDelim3 = EFalse;
61 TBool KQuery_BackDelim3 = EFalse;
63 _LIT(KQuery_Rem_Forwards0_0, "a&bc&def&ghikj");
64 _LIT(KQuery_Rem_Forwards0_1, "&bc&def&ghikj");
65 _LIT(KQuery_Rem_Forwards0_2, "&def&ghikj");
66 _LIT(KQuery_Rem_Forwards0_3, "&ghikj");
68 _LIT(KQuery_Rem_Backwards0_0, "a&bc&def&ghikj");
69 _LIT(KQuery_Rem_Backwards0_1, "a&bc&def");
70 _LIT(KQuery_Rem_Backwards0_2, "a&bc");
71 _LIT(KQuery_Rem_Backwards0_3, "a");
73 _LIT(KQuery_Des0, "a&bc&def&ghij/");
75 _LIT(KQuery_PushPopFront0_0, "");
76 _LIT(KQuery_PushPopFront0_1, "&zero");
77 _LIT(KQuery_PushPopFront0_2, "&one&zero");
78 _LIT(KQuery_PushPopFront0_3, "&two&one&zero");
79 _LIT(KQuery_PushPopFront0_4, "&three&two&one&zero");
80 _LIT(KQuery_PushPopFront0_5, "&four&three&two&one&zero");
82 _LIT(KQuery_PushPopBack0_0, "");
83 _LIT(KQuery_PushPopBack0_1, "&zero");
84 _LIT(KQuery_PushPopBack0_2, "&zero&one");
85 _LIT(KQuery_PushPopBack0_3, "&zero&one&two");
86 _LIT(KQuery_PushPopBack0_4, "&zero&one&two&three");
87 _LIT(KQuery_PushPopBack0_5, "&zero&one&two&three&four");
89 _LIT(KQuery_Push0_a, "zero");
90 _LIT(KQuery_Push0_b, "one");
91 _LIT(KQuery_Push0_c, "two");
92 _LIT(KQuery_Push0_d, "three");
93 _LIT(KQuery_Push0_e, "four");
95 _LIT(KQuery_AddTrimDelim0, "zero&one&two&three&four");
97 _LIT(KQuery_InsertBackwards0_0, "some&rubbish&before&some&rubbish&after");
98 _LIT(KQuery_InsertBackwards0_1, "some&rubbish&before&zero&some&rubbish&after");
99 _LIT(KQuery_InsertBackwards0_2, "some&rubbish&before&one&zero&some&rubbish&after");
100 _LIT(KQuery_InsertBackwards0_3, "some&rubbish&before&two&one&zero&some&rubbish&after");
101 _LIT(KQuery_InsertBackwards0_4, "some&rubbish&before&three&two&one&zero&some&rubbish&after");
102 _LIT(KQuery_InsertBackwards0_5, "some&rubbish&before&four&three&two&one&zero&some&rubbish&after");
103 const TInt KQueryInsertBackwardsPos0 = 3;
105 _LIT(KQuery_RemoveBackwards0_5, "some&rubbish&before&some&rubbish&after");
106 _LIT(KQuery_RemoveBackwards0_4, "some&rubbish&before&zero&some&rubbish&after");
107 _LIT(KQuery_RemoveBackwards0_3, "some&rubbish&before&zero&one&some&rubbish&after");
108 _LIT(KQuery_RemoveBackwards0_2, "some&rubbish&before&zero&one&two&some&rubbish&after");
109 _LIT(KQuery_RemoveBackwards0_1, "some&rubbish&before&zero&one&two&three&some&rubbish&after");
110 _LIT(KQuery_RemoveBackwards0_0, "some&rubbish&before&zero&one&two&three&four&some&rubbish&after");
111 const TInt KQueryRemoveBackwardsPos0 = 3;
113 _LIT(KQuery_InsertForwards0_0, "some&rubbish&before&some&rubbish&after");
114 _LIT(KQuery_InsertForwards0_1, "some&rubbish&before&zero&some&rubbish&after");
115 _LIT(KQuery_InsertForwards0_2, "some&rubbish&before&zero&one&some&rubbish&after");
116 _LIT(KQuery_InsertForwards0_3, "some&rubbish&before&zero&one&two&some&rubbish&after");
117 _LIT(KQuery_InsertForwards0_4, "some&rubbish&before&zero&one&two&three&some&rubbish&after");
118 _LIT(KQuery_InsertForwards0_5, "some&rubbish&before&zero&one&two&three&four&some&rubbish&after");
119 const TInt KQueryInsertForwardsPos0 = 3;
121 _LIT(KQuery_RemoveForwards0_5, "some&rubbish&before&some&rubbish&after");
122 _LIT(KQuery_RemoveForwards0_4, "some&rubbish&before&zero&some&rubbish&after");
123 _LIT(KQuery_RemoveForwards0_3, "some&rubbish&before&one&zero&some&rubbish&after");
124 _LIT(KQuery_RemoveForwards0_2, "some&rubbish&before&two&one&zero&some&rubbish&after");
125 _LIT(KQuery_RemoveForwards0_1, "some&rubbish&before&three&two&one&zero&some&rubbish&after");
126 _LIT(KQuery_RemoveForwards0_0, "some&rubbish&before&four&three&two&one&zero&some&rubbish&after");
127 const TInt KQueryRemoveForwardsPos0 = 3;
129 _LIT(KQuery_Insert0_a, "zero");
130 _LIT(KQuery_Insert0_b, "one");
131 _LIT(KQuery_Insert0_c, "two");
132 _LIT(KQuery_Insert0_d, "three");
133 _LIT(KQuery_Insert0_e, "four");
135 _LIT(KQuery_InsertEscapeBackwards0_0, "some&rubbish&before&some&rubbish&after");
136 _LIT(KQuery_InsertEscapeBackwards0_1, "some&rubbish&before&a%2Fa&some&rubbish&after");
137 _LIT(KQuery_InsertEscapeBackwards0_2, "some&rubbish&before&a%3Ba&a%2Fa&some&rubbish&after");
138 _LIT(KQuery_InsertEscapeBackwards0_3, "some&rubbish&before&a%3Da&a%3Ba&a%2Fa&some&rubbish&after");
139 _LIT(KQuery_InsertEscapeBackwards0_4, "some&rubbish&before&a%3Fa&a%3Da&a%3Ba&a%2Fa&some&rubbish&after");
140 _LIT(KQuery_InsertEscapeBackwards0_5, "some&rubbish&before&a%20a&a%3Fa&a%3Da&a%3Ba&a%2Fa&some&rubbish&after");
141 const TInt KQueryInsertEscapeBackwardsPos0 = 3;
143 _LIT(KQuery_InsertEscapeForwards0_0, "some&rubbish&before&some&rubbish&after");
144 _LIT(KQuery_InsertEscapeForwards0_1, "some&rubbish&before&a%2Fa&some&rubbish&after");
145 _LIT(KQuery_InsertEscapeForwards0_2, "some&rubbish&before&a%2Fa&a%3Ba&some&rubbish&after");
146 _LIT(KQuery_InsertEscapeForwards0_3, "some&rubbish&before&a%2Fa&a%3Ba&a%3Da&some&rubbish&after");
147 _LIT(KQuery_InsertEscapeForwards0_4, "some&rubbish&before&a%2Fa&a%3Ba&a%3Da&a%3Fa&some&rubbish&after");
148 _LIT(KQuery_InsertEscapeForwards0_5, "some&rubbish&before&a%2Fa&a%3Ba&a%3Da&a%3Fa&a%20a&some&rubbish&after");
149 const TInt KQueryInsertEscapeForwardsPos0 = 3;
151 _LIT(KQuery_InsertEscape0_a, "a/a");
152 _LIT(KQuery_InsertEscape0_b, "a;a");
153 _LIT(KQuery_InsertEscape0_c, "a=a");
154 _LIT(KQuery_InsertEscape0_d, "a?a");
155 _LIT(KQuery_InsertEscape0_e, "a a");
157 _LIT(KQuery_PushEscapeFront0_0, "");
158 _LIT(KQuery_PushEscapeFront0_1, "&a%2Fa");
159 _LIT(KQuery_PushEscapeFront0_2, "&a%3Ba&a%2Fa");
160 _LIT(KQuery_PushEscapeFront0_3, "&a%3Da&a%3Ba&a%2Fa");
161 _LIT(KQuery_PushEscapeFront0_4, "&a%3Fa&a%3Da&a%3Ba&a%2Fa");
162 _LIT(KQuery_PushEscapeFront0_5, "&a%20a&a%3Fa&a%3Da&a%3Ba&a%2Fa");
164 _LIT(KQuery_PushEscapeBack0_0, "");
165 _LIT(KQuery_PushEscapeBack0_1, "&a%2Fa");
166 _LIT(KQuery_PushEscapeBack0_2, "&a%2Fa&a%3Ba");
167 _LIT(KQuery_PushEscapeBack0_3, "&a%2Fa&a%3Ba&a%3Da");
168 _LIT(KQuery_PushEscapeBack0_4, "&a%2Fa&a%3Ba&a%3Da&a%3Fa");
169 _LIT(KQuery_PushEscapeBack0_5, "&a%2Fa&a%3Ba&a%3Da&a%3Fa&a%20a");
171 _LIT(KQuery_PushEscape0_a, "a/a");
172 _LIT(KQuery_PushEscape0_b, "a;a");
173 _LIT(KQuery_PushEscape0_c, "a=a");
174 _LIT(KQuery_PushEscape0_d, "a?a");
175 _LIT(KQuery_PushEscape0_e, "a a");
177 #endif // __DELIMITEDQUERYTESTS_H__