sl@0: // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef __DELIMITEDQUERYTESTS_H__ sl@0: #define __DELIMITEDQUERYTESTS_H__ sl@0: sl@0: // System includes sl@0: // sl@0: #include sl@0: sl@0: // sl@0: // sl@0: // Delmiited Query test data sl@0: // sl@0: // sl@0: sl@0: _LIT(KQueryParse0, "a&bc&def&ghij"); sl@0: _LIT(KQueryParse0Seg0, "a"); sl@0: _LIT(KQueryParse0Seg1, "bc"); sl@0: _LIT(KQueryParse0Seg2, "def"); sl@0: _LIT(KQueryParse0Seg3, "ghij"); sl@0: sl@0: _LIT(KQueryParse1, "name=dave&surname=cunado"); sl@0: _LIT(KQueryParse1Seg0, "name=dave"); sl@0: _LIT(KQueryParse1Seg1, "surname=cunado"); sl@0: sl@0: _LIT(KQueryParse2, "hello&there=p1&is&there&any&stuff"); sl@0: _LIT(KQueryParse2Seg0, "hello"); sl@0: _LIT(KQueryParse2Seg1, "there=p1"); sl@0: _LIT(KQueryParse2Seg2, "is"); sl@0: _LIT(KQueryParse2Seg3, "there"); sl@0: _LIT(KQueryParse2Seg4, "any"); sl@0: _LIT(KQueryParse2Seg5, "stuff"); sl@0: sl@0: _LIT(KQuery_DelimPresence0, "&afrontdelim&abackdelim&"); sl@0: TBool KQuery_FrontDelim0 = ETrue; sl@0: TBool KQuery_BackDelim0 = ETrue; sl@0: sl@0: _LIT(KQuery_DelimPresence1, "nofrontdelim&abackdelim&"); sl@0: TBool KQuery_FrontDelim1 = EFalse; sl@0: TBool KQuery_BackDelim1 = ETrue; sl@0: sl@0: _LIT(KQuery_DelimPresence2, "&afrontdelim&nobackdelim"); sl@0: TBool KQuery_FrontDelim2 = ETrue; sl@0: TBool KQuery_BackDelim2 = EFalse; sl@0: sl@0: _LIT(KQuery_DelimPresence3, "nofrontdelim&nobackdelim"); sl@0: TBool KQuery_FrontDelim3 = EFalse; sl@0: TBool KQuery_BackDelim3 = EFalse; sl@0: sl@0: _LIT(KQuery_Rem_Forwards0_0, "a&bc&def&ghikj"); sl@0: _LIT(KQuery_Rem_Forwards0_1, "&bc&def&ghikj"); sl@0: _LIT(KQuery_Rem_Forwards0_2, "&def&ghikj"); sl@0: _LIT(KQuery_Rem_Forwards0_3, "&ghikj"); sl@0: sl@0: _LIT(KQuery_Rem_Backwards0_0, "a&bc&def&ghikj"); sl@0: _LIT(KQuery_Rem_Backwards0_1, "a&bc&def"); sl@0: _LIT(KQuery_Rem_Backwards0_2, "a&bc"); sl@0: _LIT(KQuery_Rem_Backwards0_3, "a"); sl@0: sl@0: _LIT(KQuery_Des0, "a&bc&def&ghij/"); sl@0: sl@0: _LIT(KQuery_PushPopFront0_0, ""); sl@0: _LIT(KQuery_PushPopFront0_1, "&zero"); sl@0: _LIT(KQuery_PushPopFront0_2, "&one&zero"); sl@0: _LIT(KQuery_PushPopFront0_3, "&two&one&zero"); sl@0: _LIT(KQuery_PushPopFront0_4, "&three&two&one&zero"); sl@0: _LIT(KQuery_PushPopFront0_5, "&four&three&two&one&zero"); sl@0: sl@0: _LIT(KQuery_PushPopBack0_0, ""); sl@0: _LIT(KQuery_PushPopBack0_1, "&zero"); sl@0: _LIT(KQuery_PushPopBack0_2, "&zero&one"); sl@0: _LIT(KQuery_PushPopBack0_3, "&zero&one&two"); sl@0: _LIT(KQuery_PushPopBack0_4, "&zero&one&two&three"); sl@0: _LIT(KQuery_PushPopBack0_5, "&zero&one&two&three&four"); sl@0: sl@0: _LIT(KQuery_Push0_a, "zero"); sl@0: _LIT(KQuery_Push0_b, "one"); sl@0: _LIT(KQuery_Push0_c, "two"); sl@0: _LIT(KQuery_Push0_d, "three"); sl@0: _LIT(KQuery_Push0_e, "four"); sl@0: sl@0: _LIT(KQuery_AddTrimDelim0, "zero&one&two&three&four"); sl@0: sl@0: _LIT(KQuery_InsertBackwards0_0, "some&rubbish&before&some&rubbish&after"); sl@0: _LIT(KQuery_InsertBackwards0_1, "some&rubbish&before&zero&some&rubbish&after"); sl@0: _LIT(KQuery_InsertBackwards0_2, "some&rubbish&before&one&zero&some&rubbish&after"); sl@0: _LIT(KQuery_InsertBackwards0_3, "some&rubbish&before&two&one&zero&some&rubbish&after"); sl@0: _LIT(KQuery_InsertBackwards0_4, "some&rubbish&before&three&two&one&zero&some&rubbish&after"); sl@0: _LIT(KQuery_InsertBackwards0_5, "some&rubbish&before&four&three&two&one&zero&some&rubbish&after"); sl@0: const TInt KQueryInsertBackwardsPos0 = 3; sl@0: sl@0: _LIT(KQuery_RemoveBackwards0_5, "some&rubbish&before&some&rubbish&after"); sl@0: _LIT(KQuery_RemoveBackwards0_4, "some&rubbish&before&zero&some&rubbish&after"); sl@0: _LIT(KQuery_RemoveBackwards0_3, "some&rubbish&before&zero&one&some&rubbish&after"); sl@0: _LIT(KQuery_RemoveBackwards0_2, "some&rubbish&before&zero&one&two&some&rubbish&after"); sl@0: _LIT(KQuery_RemoveBackwards0_1, "some&rubbish&before&zero&one&two&three&some&rubbish&after"); sl@0: _LIT(KQuery_RemoveBackwards0_0, "some&rubbish&before&zero&one&two&three&four&some&rubbish&after"); sl@0: const TInt KQueryRemoveBackwardsPos0 = 3; sl@0: sl@0: _LIT(KQuery_InsertForwards0_0, "some&rubbish&before&some&rubbish&after"); sl@0: _LIT(KQuery_InsertForwards0_1, "some&rubbish&before&zero&some&rubbish&after"); sl@0: _LIT(KQuery_InsertForwards0_2, "some&rubbish&before&zero&one&some&rubbish&after"); sl@0: _LIT(KQuery_InsertForwards0_3, "some&rubbish&before&zero&one&two&some&rubbish&after"); sl@0: _LIT(KQuery_InsertForwards0_4, "some&rubbish&before&zero&one&two&three&some&rubbish&after"); sl@0: _LIT(KQuery_InsertForwards0_5, "some&rubbish&before&zero&one&two&three&four&some&rubbish&after"); sl@0: const TInt KQueryInsertForwardsPos0 = 3; sl@0: sl@0: _LIT(KQuery_RemoveForwards0_5, "some&rubbish&before&some&rubbish&after"); sl@0: _LIT(KQuery_RemoveForwards0_4, "some&rubbish&before&zero&some&rubbish&after"); sl@0: _LIT(KQuery_RemoveForwards0_3, "some&rubbish&before&one&zero&some&rubbish&after"); sl@0: _LIT(KQuery_RemoveForwards0_2, "some&rubbish&before&two&one&zero&some&rubbish&after"); sl@0: _LIT(KQuery_RemoveForwards0_1, "some&rubbish&before&three&two&one&zero&some&rubbish&after"); sl@0: _LIT(KQuery_RemoveForwards0_0, "some&rubbish&before&four&three&two&one&zero&some&rubbish&after"); sl@0: const TInt KQueryRemoveForwardsPos0 = 3; sl@0: sl@0: _LIT(KQuery_Insert0_a, "zero"); sl@0: _LIT(KQuery_Insert0_b, "one"); sl@0: _LIT(KQuery_Insert0_c, "two"); sl@0: _LIT(KQuery_Insert0_d, "three"); sl@0: _LIT(KQuery_Insert0_e, "four"); sl@0: sl@0: _LIT(KQuery_InsertEscapeBackwards0_0, "some&rubbish&before&some&rubbish&after"); sl@0: _LIT(KQuery_InsertEscapeBackwards0_1, "some&rubbish&before&a%2Fa&some&rubbish&after"); sl@0: _LIT(KQuery_InsertEscapeBackwards0_2, "some&rubbish&before&a%3Ba&a%2Fa&some&rubbish&after"); sl@0: _LIT(KQuery_InsertEscapeBackwards0_3, "some&rubbish&before&a%3Da&a%3Ba&a%2Fa&some&rubbish&after"); sl@0: _LIT(KQuery_InsertEscapeBackwards0_4, "some&rubbish&before&a%3Fa&a%3Da&a%3Ba&a%2Fa&some&rubbish&after"); sl@0: _LIT(KQuery_InsertEscapeBackwards0_5, "some&rubbish&before&a%20a&a%3Fa&a%3Da&a%3Ba&a%2Fa&some&rubbish&after"); sl@0: const TInt KQueryInsertEscapeBackwardsPos0 = 3; sl@0: sl@0: _LIT(KQuery_InsertEscapeForwards0_0, "some&rubbish&before&some&rubbish&after"); sl@0: _LIT(KQuery_InsertEscapeForwards0_1, "some&rubbish&before&a%2Fa&some&rubbish&after"); sl@0: _LIT(KQuery_InsertEscapeForwards0_2, "some&rubbish&before&a%2Fa&a%3Ba&some&rubbish&after"); sl@0: _LIT(KQuery_InsertEscapeForwards0_3, "some&rubbish&before&a%2Fa&a%3Ba&a%3Da&some&rubbish&after"); sl@0: _LIT(KQuery_InsertEscapeForwards0_4, "some&rubbish&before&a%2Fa&a%3Ba&a%3Da&a%3Fa&some&rubbish&after"); sl@0: _LIT(KQuery_InsertEscapeForwards0_5, "some&rubbish&before&a%2Fa&a%3Ba&a%3Da&a%3Fa&a%20a&some&rubbish&after"); sl@0: const TInt KQueryInsertEscapeForwardsPos0 = 3; sl@0: sl@0: _LIT(KQuery_InsertEscape0_a, "a/a"); sl@0: _LIT(KQuery_InsertEscape0_b, "a;a"); sl@0: _LIT(KQuery_InsertEscape0_c, "a=a"); sl@0: _LIT(KQuery_InsertEscape0_d, "a?a"); sl@0: _LIT(KQuery_InsertEscape0_e, "a a"); sl@0: sl@0: _LIT(KQuery_PushEscapeFront0_0, ""); sl@0: _LIT(KQuery_PushEscapeFront0_1, "&a%2Fa"); sl@0: _LIT(KQuery_PushEscapeFront0_2, "&a%3Ba&a%2Fa"); sl@0: _LIT(KQuery_PushEscapeFront0_3, "&a%3Da&a%3Ba&a%2Fa"); sl@0: _LIT(KQuery_PushEscapeFront0_4, "&a%3Fa&a%3Da&a%3Ba&a%2Fa"); sl@0: _LIT(KQuery_PushEscapeFront0_5, "&a%20a&a%3Fa&a%3Da&a%3Ba&a%2Fa"); sl@0: sl@0: _LIT(KQuery_PushEscapeBack0_0, ""); sl@0: _LIT(KQuery_PushEscapeBack0_1, "&a%2Fa"); sl@0: _LIT(KQuery_PushEscapeBack0_2, "&a%2Fa&a%3Ba"); sl@0: _LIT(KQuery_PushEscapeBack0_3, "&a%2Fa&a%3Ba&a%3Da"); sl@0: _LIT(KQuery_PushEscapeBack0_4, "&a%2Fa&a%3Ba&a%3Da&a%3Fa"); sl@0: _LIT(KQuery_PushEscapeBack0_5, "&a%2Fa&a%3Ba&a%3Da&a%3Fa&a%20a"); sl@0: sl@0: _LIT(KQuery_PushEscape0_a, "a/a"); sl@0: _LIT(KQuery_PushEscape0_b, "a;a"); sl@0: _LIT(KQuery_PushEscape0_c, "a=a"); sl@0: _LIT(KQuery_PushEscape0_d, "a?a"); sl@0: _LIT(KQuery_PushEscape0_e, "a a"); sl@0: sl@0: #endif // __DELIMITEDQUERYTESTS_H__