smsprotocols/smsstack/smsprot/Test/TE_SMSEMSPRT/TE_SMSEMSPRT.h
changeset 20 244d7c5f118e
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
19:1f776524b15c 20:244d7c5f118e
    14 //
    14 //
    15 
    15 
    16 #ifndef __TE_SMSEMSPRT_H_
    16 #ifndef __TE_SMSEMSPRT_H_
    17 #define __TE_SMSEMSPRT_H_
    17 #define __TE_SMSEMSPRT_H_
    18 
    18 
    19 
    19 #include "TE_SMSEMSPRTBASE.h"
    20 //
       
    21 // Test Initialisation test object - Initializes the members
       
    22 //
       
    23 class CTestInit : public CSmsEmsPrtTestStep
       
    24 	{
       
    25 public:
       
    26 	virtual TVerdict doTestStepPreambleL() { return EPass; }
       
    27 	virtual TVerdict doTestStepPostambleL() { return EPass; }
       
    28 	TInt GetTestNumber() { return -1 ; /* return test order number */ } ;
       
    29 	virtual TVerdict doTestStepL();
       
    30 	};
       
    31 
       
    32 
    20 
    33 //
    21 //
    34 // Test EMS FormatA test object - basic Format IE test
    22 // Test EMS FormatA test object - basic Format IE test
    35 //
    23 //
    36 class CTestEmsFormatA : public CSmsEmsPrtTestStep
    24 class CTestEmsFormatA : public CSmsEmsPrtTestStep
    37 	{
    25 	{
    38 public:
    26 public:
    39 	TInt GetTestNumber() { return 1 ; /* return test order number */ } ;
       
    40 	virtual TVerdict doTestStepL();
    27 	virtual TVerdict doTestStepL();
    41 	};
    28 	};
    42 
    29 
    43 
    30 
    44 //
    31 //
    46 // object in the middle
    33 // object in the middle
    47 //
    34 //
    48 class CTestEmsFormatB : public CSmsEmsPrtTestStep
    35 class CTestEmsFormatB : public CSmsEmsPrtTestStep
    49 	{
    36 	{
    50 public:
    37 public:
    51 	TInt GetTestNumber() { return 2 ; /* return test order number */ } ;
       
    52 	virtual TVerdict doTestStepL();
    38 	virtual TVerdict doTestStepL();
    53 	};
    39 	};
    54 
    40 
    55 
    41 
    56 //
    42 //
    58 // object in the middle
    44 // object in the middle
    59 //
    45 //
    60 class CTestEmsFormatC : public CSmsEmsPrtTestStep
    46 class CTestEmsFormatC : public CSmsEmsPrtTestStep
    61 	{
    47 	{
    62 public:
    48 public:
    63 	TInt GetTestNumber() { return 3 ; /* return test order number */ } ;
       
    64 	virtual TVerdict doTestStepL();
    49 	virtual TVerdict doTestStepL();
    65 	};
    50 	};
    66 
    51 
    67 
    52 
    68 //
    53 //
    70 // object in the middle
    55 // object in the middle
    71 //
    56 //
    72 class CTestEmsFormatD : public CSmsEmsPrtTestStep
    57 class CTestEmsFormatD : public CSmsEmsPrtTestStep
    73 	{
    58 	{
    74 public:
    59 public:
    75 	TInt GetTestNumber() { return 4 ; /* return test order number */ } ;
       
    76 	virtual TVerdict doTestStepL();
    60 	virtual TVerdict doTestStepL();
    77 	};
    61 	};
    78 
    62 
    79 
    63 
    80 //
    64 //
    82 // get sent
    66 // get sent
    83 //
    67 //
    84 class CTestEmsFormatE : public CSmsEmsPrtTestStep
    68 class CTestEmsFormatE : public CSmsEmsPrtTestStep
    85 	{
    69 	{
    86 public:
    70 public:
    87 	TInt GetTestNumber() { return 5 ; /* return test order number */ } ;
       
    88 	virtual TVerdict doTestStepL();
    71 	virtual TVerdict doTestStepL();
    89 	};
    72 	};
    90 
    73 
    91 
    74 
    92 //
    75 //
    94 // correctly
    77 // correctly
    95 //
    78 //
    96 class CTestEmsFormatF : public CSmsEmsPrtTestStep
    79 class CTestEmsFormatF : public CSmsEmsPrtTestStep
    97 	{
    80 	{
    98 public:
    81 public:
    99 	TInt GetTestNumber() { return 6 ; /* return test order number */ } ;
       
   100 	virtual TVerdict doTestStepL();
    82 	virtual TVerdict doTestStepL();
   101 	};
    83 	};
   102 
    84 
   103 
    85 
   104 //
    86 //
   105 // Test EMS SoundA - predefined sounds
    87 // Test EMS SoundA - predefined sounds
   106 //
    88 //
   107 class CTestEmsSoundA : public CSmsEmsPrtTestStep
    89 class CTestEmsSoundA : public CSmsEmsPrtTestStep
   108 	{
    90 	{
   109 public:
    91 public:
   110 	TInt GetTestNumber() { return 7 ; /* return test order number */ } ;
       
   111 	virtual TVerdict doTestStepL();
    92 	virtual TVerdict doTestStepL();
   112 	};
    93 	};
   113 
    94 
   114 
    95 
   115 //
    96 //
   116 // Test EMS SoundB - user-defined sounds
    97 // Test EMS SoundB - user-defined sounds
   117 //
    98 //
   118 class CTestEmsSoundB : public CSmsEmsPrtTestStep
    99 class CTestEmsSoundB : public CSmsEmsPrtTestStep
   119 	{
   100 	{
   120 public:
   101 public:
   121 	TInt GetTestNumber() { return 8 ; /* return test order number */ } ;
       
   122 	virtual TVerdict doTestStepL();
   102 	virtual TVerdict doTestStepL();
   123 	};
   103 	};
   124 
   104 
   125 
   105 
   126 //
   106 //
   127 // Test EMS SoundC - userdefined sounds over 5 PDUs
   107 // Test EMS SoundC - userdefined sounds over 5 PDUs
   128 //
   108 //
   129 class CTestEmsSoundC : public CSmsEmsPrtTestStep
   109 class CTestEmsSoundC : public CSmsEmsPrtTestStep
   130 	{
   110 	{
   131 public:
   111 public:
   132 	TInt GetTestNumber() { return 9 ; /* return test order number */ } ;
       
   133 	virtual TVerdict doTestStepL();
   112 	virtual TVerdict doTestStepL();
   134 	};
   113 	};
   135 
   114 
   136 
   115 
   137 //
   116 //
   138 // Test EMS SoundD - sending sound over 128 bytes
   117 // Test EMS SoundD - sending sound over 128 bytes
   139 //
   118 //
   140 class CTestEmsSoundD : public CSmsEmsPrtTestStep
   119 class CTestEmsSoundD : public CSmsEmsPrtTestStep
   141 	{
   120 	{
   142 public:
   121 public:
   143 	TInt GetTestNumber() { return 10 ; /* return test order number */ } ;
       
   144 	virtual TVerdict doTestStepL();
   122 	virtual TVerdict doTestStepL();
   145 	};
   123 	};
   146 
   124 
   147 
   125 
   148 //
   126 //
   149 // Test EMS Picture - sending small, large, and variable pictures
   127 // Test EMS Picture - sending small, large, and variable pictures
   150 //
   128 //
   151 class CTestEmsPicture : public CSmsEmsPrtTestStep
   129 class CTestEmsPicture : public CSmsEmsPrtTestStep
   152 	{
   130 	{
   153 public:
   131 public:
   154 	TInt GetTestNumber() { return 11 ; /* return test order number */ } ;
       
   155 	virtual TVerdict doTestStepL();
   132 	virtual TVerdict doTestStepL();
   156 	};
   133 	};
   157 
   134 
   158 
   135 
   159 //
   136 //
   160 // Test EMS Animations - sending predefined, large, and small animations
   137 // Test EMS Animations - sending predefined, large, and small animations
   161 //
   138 //
   162 class CTestEmsAnimation : public CSmsEmsPrtTestStep
   139 class CTestEmsAnimation : public CSmsEmsPrtTestStep
   163 	{
   140 	{
   164 public:
   141 public:
   165 	TInt GetTestNumber() { return 12 ; /* return test order number */ } ;
       
   166 	virtual TVerdict doTestStepL();
   142 	virtual TVerdict doTestStepL();
   167 	};
   143 	};
   168 
   144 
   169 
   145 
   170 //
   146 //
   171 // Test EMS UserPromptA - basic scenario
   147 // Test EMS UserPromptA - basic scenario
   172 //
   148 //
   173 class CTestEmsUserPromptA : public CSmsEmsPrtTestStep
   149 class CTestEmsUserPromptA : public CSmsEmsPrtTestStep
   174 	{
   150 	{
   175 public:
   151 public:
   176 	TInt GetTestNumber() { return 13 ; /* return test order number */ } ;
       
   177 	virtual TVerdict doTestStepL();
   152 	virtual TVerdict doTestStepL();
   178 	};
   153 	};
   179 
   154 
   180 
   155 
   181 //
   156 //
   183 // two melodies at 20 and 21.
   158 // two melodies at 20 and 21.
   184 //
   159 //
   185 class CTestEmsUserPromptB : public CSmsEmsPrtTestStep
   160 class CTestEmsUserPromptB : public CSmsEmsPrtTestStep
   186 	{
   161 	{
   187 public:
   162 public:
   188 	TInt GetTestNumber() { return 14 ; /* return test order number */ } ;
       
   189 	virtual TVerdict doTestStepL();
   163 	virtual TVerdict doTestStepL();
   190 	};
   164 	};
   191 
   165 
   192 
   166 
   193 //
   167 //
   208 	};
   182 	};
   209 
   183 
   210 class CTestEmsLongMessageA : public CTestEmsLongMsgBase
   184 class CTestEmsLongMessageA : public CTestEmsLongMsgBase
   211 	{
   185 	{
   212 public:
   186 public:
   213 	TInt GetTestNumber() { return 15 ; /* return test order number */ } ;
       
   214 	virtual TVerdict doTestStepL();
   187 	virtual TVerdict doTestStepL();
   215 	};
   188 	};
   216 
   189 
   217 
   190 
   218 class CTestEmsLongMessageB : public CTestEmsLongMsgBase
   191 class CTestEmsLongMessageB : public CTestEmsLongMsgBase
   219 	{
   192 	{
   220 public:
   193 public:
   221 	TInt GetTestNumber() { return 16 ; /* return test order number */ } ;
       
   222 	virtual TVerdict doTestStepL();
   194 	virtual TVerdict doTestStepL();
   223 	};
   195 	};
   224 
   196 
   225 
   197 
   226 class CTestEmsLongMessageC : public CTestEmsLongMsgBase
   198 class CTestEmsLongMessageC : public CTestEmsLongMsgBase
   227 	{
   199 	{
   228 public:
   200 public:
   229 	TInt GetTestNumber() { return 17 ; /* return test order number */ } ;
       
   230 	virtual TVerdict doTestStepL();
   201 	virtual TVerdict doTestStepL();
   231 	};
   202 	};
   232 
   203 
   233 
   204 
   234 //
   205 //
   236 // Verify it doesn't crash.
   207 // Verify it doesn't crash.
   237 //
   208 //
   238 class CTestEmsUnsupportedIE : public CSmsEmsPrtTestStep
   209 class CTestEmsUnsupportedIE : public CSmsEmsPrtTestStep
   239 	{
   210 	{
   240 public:
   211 public:
   241 	TInt GetTestNumber() { return 18 ; /* return test order number */ } ;
       
   242 	virtual TVerdict doTestStepL();
   212 	virtual TVerdict doTestStepL();
   243 	};
   213 	};
   244 
   214 
   245 
   215 
   246 //
   216 //
   249 // should still compare OK.
   219 // should still compare OK.
   250 //
   220 //
   251 class CTestEmsUnsorted : public CSmsEmsPrtTestStep
   221 class CTestEmsUnsorted : public CSmsEmsPrtTestStep
   252 	{
   222 	{
   253 public:
   223 public:
   254 	TInt GetTestNumber() { return 19 ; /* return test order number */ } ;
       
   255 	virtual TVerdict doTestStepL();
   224 	virtual TVerdict doTestStepL();
   256 	};
   225 	};
   257 
   226 
   258 
   227 
   259 //
   228 //
   260 // Test EMS TestEmsObjectDistributionA - basic scenario
   229 // Test EMS TestEmsObjectDistributionA - basic scenario
   261 //
   230 //
   262 class CTestEmsODIA : public CSmsEmsPrtTestStep
   231 class CTestEmsODIA : public CSmsEmsPrtTestStep
   263 	{
   232 	{
   264 public:
   233 public:
   265 	TInt GetTestNumber() { return 20 ; /* return test order number */ } ;
       
   266 	virtual TVerdict doTestStepL();
   234 	virtual TVerdict doTestStepL();
   267 	};
   235 	};
   268 
   236 
   269 
   237 
   270 //
   238 //
   272 // two melodies at 20 and 21.
   240 // two melodies at 20 and 21.
   273 //
   241 //
   274 class CTestEmsODIB : public CSmsEmsPrtTestStep
   242 class CTestEmsODIB : public CSmsEmsPrtTestStep
   275 	{
   243 	{
   276 public:
   244 public:
   277 	TInt GetTestNumber() { return 21 ; /* return test order number */ } ;
       
   278 	virtual TVerdict doTestStepL();
   245 	virtual TVerdict doTestStepL();
   279 	};
   246 	};
   280 
   247 
   281 
   248 
   282 //
   249 //
   284 // two melodies at 20 and 21.
   251 // two melodies at 20 and 21.
   285 //
   252 //
   286 class CTestEmsODIC : public CSmsEmsPrtTestStep
   253 class CTestEmsODIC : public CSmsEmsPrtTestStep
   287 	{
   254 	{
   288 public:
   255 public:
   289 	TInt GetTestNumber() { return 22 ; /* return test order number */ } ;
       
   290 	virtual TVerdict doTestStepL();
   256 	virtual TVerdict doTestStepL();
   291 	};
   257 	};
   292 
   258 
   293 
   259 
   294 //
   260 //
   295 // Test EMS TestEmsObjectDistributionD - test zero object count applies to all IEs
   261 // Test EMS TestEmsObjectDistributionD - test zero object count applies to all IEs
   296 //
   262 //
   297 class CTestEmsODID : public CSmsEmsPrtTestStep
   263 class CTestEmsODID : public CSmsEmsPrtTestStep
   298 	{
   264 	{
   299 public:
   265 public:
   300 	TInt GetTestNumber() { return 23 ; /* return test order number */ } ;
       
   301 	virtual TVerdict doTestStepL();
   266 	virtual TVerdict doTestStepL();
   302 	};
   267 	};
   303 
   268 
   304 
   269 
   305 //
   270 //
   306 // Test EMS TestEmsObjectDistributionE - apply two odi IEs over more than 1 PDUs
   271 // Test EMS TestEmsObjectDistributionE - apply two odi IEs over more than 1 PDUs
   307 //
   272 //
   308 class CTestEmsODIE : public CSmsEmsPrtTestStep
   273 class CTestEmsODIE : public CSmsEmsPrtTestStep
   309 	{
   274 	{
   310 public:
   275 public:
   311 	TInt GetTestNumber() { return 24 ; /* return test order number */ } ;
       
   312 	virtual TVerdict doTestStepL();
   276 	virtual TVerdict doTestStepL();
   313 	};
   277 	};
   314 
   278 
   315 
   279 
   316 //
   280 //
   317 // Test EMS TestEmsObjectDistributionF - apply odi and user prompt in wrong order
   281 // Test EMS TestEmsObjectDistributionF - apply odi and user prompt in wrong order
   318 //
   282 //
   319 class CTestEmsODIF : public CSmsEmsPrtTestStep
   283 class CTestEmsODIF : public CSmsEmsPrtTestStep
   320 	{
   284 	{
   321 public:
   285 public:
   322 	TInt GetTestNumber() { return 25 ; /* return test order number */ } ;
       
   323 	virtual TVerdict doTestStepL();
   286 	virtual TVerdict doTestStepL();
   324 	};
   287 	};
   325 
   288 
   326 
   289 
   327 #endif
   290 #endif