1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kerneltest/e32test/usbho/t_usbdi/inc/testliterals.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,211 @@
1.4 +#ifndef __TESTLITERALS_H
1.5 +#define __TESTLITERALS_H
1.6 +
1.7 +/*
1.8 +* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
1.9 +* All rights reserved.
1.10 +* This component and the accompanying materials are made available
1.11 +* under the terms of the License "Eclipse Public License v1.0"
1.12 +* which accompanies this distribution, and is available
1.13 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.14 +*
1.15 +* Initial Contributors:
1.16 +* Nokia Corporation - initial contribution.
1.17 +*
1.18 +* Contributors:
1.19 +*
1.20 +* Description:
1.21 +* @file testliterals.h
1.22 +* @internalComponent
1.23 +*
1.24 +*
1.25 +*/
1.26 +
1.27 +
1.28 +
1.29 +namespace NUnitTesting_USBDI
1.30 + {
1.31 +// Warning Debug Print
1.32 +
1.33 +#define __PRINT_CONTROL_TRANSFER_TIMER_COMPARISON_WARNING \
1.34 +RDebug::Printf("\n\n"); \
1.35 +RDebug::Printf("**********************************FAILURE WARNING**************************************"); \
1.36 +RDebug::Printf("The time taken to complete a control transfer with a concurrent bulk transfer"); \
1.37 +RDebug::Printf("is significantly longer than"); \
1.38 +RDebug::Printf("the time taken to complete a control transfer without a concurrent bulk transfer."); \
1.39 +RDebug::Printf("This is likely to be the fault of the USB client stack on the remote."); \
1.40 +RDebug::Printf("Use a tracer tool (e.g. Ellisys) to check that the time difference is all found in"); \
1.41 +RDebug::Printf("the time taken between the control transfer's SetUp transaction and its IN transaction."); \
1.42 +RDebug::Printf("This test will now FAIL to alert you to this WARNING!"); \
1.43 +RDebug::Printf("**********************************FAILURE WARNING**************************************"); \
1.44 +RDebug::Printf("\n\n");
1.45 +
1.46 +
1.47 +// French Literals - various lengths
1.48 +
1.49 +_LIT8(KLiteralFrench4,
1.50 +"\
1.51 +1: \
1.52 +Elle etait dechaussee, elle etait decoiffee, \
1.53 +Assise, les pieds nus, parmi les joncs penchants; \
1.54 +Moi qui passais par la, je crus voir une fee \
1.55 +Et je lui dis: Veux-tu t'en venir dans les champs? \
1.56 +2: \
1.57 +Elle me regarda de ce regard supreme \
1.58 +Qui reste a la beaute quand nous en triomphons, \
1.59 +Et je lui dis: Veux-tu, c'est le mois ou l'on aime, \
1.60 +Veux-tu nous en aller sou les arbres profonds? \
1.61 +3: \
1.62 +Elle essuya ses pieds a l'herbe de la rive; \
1.63 +Elle me regarda pour la seconde fois, \
1.64 +Et ta belle folatre alors devint pensive. \
1.65 +Oh! Comme les oiseaux chantaient au fond du bois! \
1.66 +4: \
1.67 +Comme l'eau caressait doucement le rivage! \
1.68 +Je vis venir a moi, dans les grands roseaux verts, \
1.69 +La belle fille heureuse, effaree et sauvage, \
1.70 +Ses cheveux dans les yeux, riant au travers. \
1.71 +"); // 1446 bytes
1.72 +
1.73 +
1.74 +_LIT8(KLiteralFrench8,
1.75 +"\
1.76 +1: \
1.77 +Elle etait dechaussee, elle etait decoiffee, \
1.78 +Assise, les pieds nus, parmi les joncs penchants; \
1.79 +Moi qui passais par la, je crus voir une fee \
1.80 +Et je lui dis: Veux-tu t'en venir dans les champs? \
1.81 +2: \
1.82 +Elle me regarda de ce regard supreme \
1.83 +Qui reste a la beaute quand nous en triomphons, \
1.84 +Et je lui dis: Veux-tu, c'est le mois ou l'on aime, \
1.85 +Veux-tu nous en aller sou les arbres profonds? \
1.86 +3: \
1.87 +Elle essuya ses pieds a l'herbe de la rive; \
1.88 +Elle me regarda pour la seconde fois, \
1.89 +Et ta belle folatre alors devint pensive. \
1.90 +Oh! Comme les oiseaux chantaient au fond du bois! \
1.91 +4: \
1.92 +Comme l'eau caressait doucement le rivage! \
1.93 +Je vis venir a moi, dans les grands roseaux verts, \
1.94 +La belle fille heureuse, effaree et sauvage, \
1.95 +Ses cheveux dans les yeux, riant au travers. \
1.96 +Je repete... \
1.97 +1: \
1.98 +Elle etait dechaussee, elle etait decoiffee, \
1.99 +Assise, les pieds nus, parmi les joncs penchants; \
1.100 +Moi qui passais par la, je crus voir une fee \
1.101 +Et je lui dis: Veux-tu t'en venir dans les champs? \
1.102 +2: \
1.103 +Elle me regarda de ce regard supreme \
1.104 +Qui reste a la beaute quand nous en triomphons, \
1.105 +Et je lui dis: Veux-tu, c'est le mois ou l'on aime, \
1.106 +Veux-tu nous en aller sou les arbres profonds? \
1.107 +3: \
1.108 +Elle essuya ses pieds a l'herbe de la rive; \
1.109 +Elle me regarda pour la seconde fois, \
1.110 +Et ta belle folatre alors devint pensive. \
1.111 +Oh! Comme les oiseaux chantaient au fond du bois! \
1.112 +4: \
1.113 +Comme l'eau caressait doucement le rivage! \
1.114 +Je vis venir a moi, dans les grands roseaux verts, \
1.115 +La belle fille heureuse, effaree et sauvage, \
1.116 +Ses cheveux dans les yeux, riant au travers. \
1.117 +"); // 1519 bytes
1.118 +
1.119 +
1.120 +
1.121 +// English Literals - various lengths
1.122 +
1.123 +_LIT8(KLiteralEnglish2,
1.124 +"\
1.125 +1: \
1.126 +\"You are old, father William,\" the young man said, \
1.127 +\"And your hair has become very white; \
1.128 +And yet you incessantly stand on your head-- \
1.129 +Do you think, at your age, it is right?\" \
1.130 +2: \
1.131 +\"In my youth,\" father William replied to his son, \
1.132 +\"I feared it might injure the brain; \
1.133 +But, now that I'm perfectly sure I have none, \
1.134 +Why, I do it again and again.\"\
1.135 +"); // 344 bytes
1.136 +
1.137 +
1.138 +_LIT8(KLiteralEnglish5,
1.139 +"\
1.140 +1: \
1.141 +\"You are old, father William,\" the young man said, \
1.142 +\"And your hair has become very white; \
1.143 +And yet you incessantly stand on your head-- \
1.144 +Do you think, at your age, it is right?\" \
1.145 +2: \
1.146 +\"In my youth,\" father William replied to his son, \
1.147 +\"I feared it might injure the brain; \
1.148 +But, now that I'm perfectly sure I have none, \
1.149 +Why, I do it again and again.\" \
1.150 +3: \
1.151 +\"You are old,\" said the youth, \"as I mentioned before, \
1.152 +And you have grown most uncommonly fat; \
1.153 +Yet you turned a back-somersault in at the door-- \
1.154 +Pray what is the reason for that?\" \
1.155 +4: \
1.156 +\"In my youth,\" said the sage, as he shook his grey locks, \
1.157 +\"I kept all my limbs very supple \
1.158 +By the use of this ointment - one shilling a box-- \
1.159 +Allow me to sell you a couple?\" \
1.160 +5: \
1.161 +\"You are old,\" said the youth, \"and your jaws are too weak \
1.162 +For anything tougher than suet; \
1.163 +Yet you finished the goose, with the bones and the beak-- \
1.164 +Pray, how did you manage to do it?\" \
1.165 +"); //893 bytes
1.166 +
1.167 +
1.168 +_LIT8(KLiteralEnglish8,
1.169 +"\
1.170 +1: \
1.171 +\"You are old, father William,\" the young man said, \
1.172 +\"And your hair has become very white; \
1.173 +And yet you incessantly stand on your head-- \
1.174 +Do you think, at your age, it is right?\" \
1.175 +2: \
1.176 +\"In my youth,\" father William replied to his son, \
1.177 +\"I feared it might injure the brain; \
1.178 +But, now that I'm perfectly sure I have none, \
1.179 +Why, I do it again and again.\" \
1.180 +3: \
1.181 +\"You are old,\" said the youth, \"as I mentioned before, \
1.182 +And you have grown most uncommonly fat; \
1.183 +Yet you turned a back-somersault in at the door-- \
1.184 +Pray what is the reason for that?\" \
1.185 +4: \
1.186 +\"In my youth,\" said the sage, as he shook his grey locks, \
1.187 +\"I kept all my limbs very supple \
1.188 +By the use of this ointment - one shilling a box-- \
1.189 +Allow me to sell you a couple?\" \
1.190 +5: \
1.191 +\"You are old,\" said the youth, \"and your jaws are too weak \
1.192 +For anything tougher than suet; \
1.193 +Yet you finished the goose, with the bones and the beak-- \
1.194 +Pray, how did you manage to do it?\" \
1.195 +6: \
1.196 +\"In my youth,\" said his father, \"I took to the law, \
1.197 +And argued each case with my wife; \
1.198 +And the muscular strength, which it gave to my jaw, \
1.199 +Has lasted the rest of my life.\" \
1.200 +7: \
1.201 +\"You are old,\" said the youth, \"one would hardly suppose \
1.202 +That your eye was as steady as ever;\
1.203 +Yet you balanced an eel on the end of your nose-- \
1.204 +What made you so awfully clever?\" \
1.205 +8: \
1.206 +\"I have answered three questions, and that is enough,\" \
1.207 +Said his father. \"Don't give yourself airs! \
1.208 +Do you think I can listen all day to such stuff? \
1.209 +Be off, or I'll kick you down stairs.\" \
1.210 +"); // 1438 bytes
1.211 +
1.212 + }
1.213 +
1.214 +#endif
1.215 \ No newline at end of file