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