smsprotocols/smsstack/wapprot/test/Te_wapprot/WapIoctlSteps.h
branchRCL_3
changeset 14 7ef16719d8cb
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
child 69 b982c3e940f3
equal deleted inserted replaced
9:962e6306d9d2 14:7ef16719d8cb
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 /**
    19 
    19     @file
    20 /**
    20     @test
    21  @file
       
    22 */
    21 */
    23 #if (!defined __Ioctl_STEP_H__)
    22 
    24 #define __Ioctl_STEP_H__
    23 #ifndef WAPIOCTLTESTSTEPS_H
    25 #include <test/testexecutestepbase.h>
    24 #define WAPIOCTLTESTSTEPS_H
    26 #include <in_sock.h>
    25 
    27 #include <es_sock.h>
       
    28 #include <wapmessage.h>
       
    29 #include "WapProtSuiteStepBase.h"
    26 #include "WapProtSuiteStepBase.h"
    30 
    27 
    31 
       
    32 class CIoctlStep_1 : public CWapProtSuiteStepBase
    28 class CIoctlStep_1 : public CWapProtSuiteStepBase
    33 /**
    29 /**
    34  *  Sends/receives a 7_Bit business card using IOCTL
    30  *  Sends/receives a 7_Bit business card using IOCTL
    35  */
    31  */
    36 	{
    32 	{
    37 public:
    33 public:
    38 	virtual TVerdict doTestStepL();
    34 	virtual TVerdict doTestStepL();
    39 	};
    35 	};
    40 
    36 
    41 
       
    42 class CIoctlStep_2 : public CWapProtSuiteStepBase
    37 class CIoctlStep_2 : public CWapProtSuiteStepBase
    43 /**
    38 /**
    44  *  Send/receive a long 7-Bit calendar entry using IOCTL(two segments)
    39  *  Send/receive a long 7-Bit calendar entry using IOCTL(two segments)
    45  */
    40  */
    46 	{
    41 	{
    47 public:
    42 public:
    48 	virtual TVerdict doTestStepL();
    43 	virtual TVerdict doTestStepL();
    49 	};
    44 	};
    50 
    45 
    51 
       
    52 class CIoctlStep_3 : public CWapProtSuiteStepBase
    46 class CIoctlStep_3 : public CWapProtSuiteStepBase
    53 /**
    47 /**
    54  *  send/receive one 7-Bit two segments message and one 7-Bit one segment message
    48  *  send/receive one 7-Bit two segments message and one 7-Bit one segment message
    55  */
    49  */
    56 	{
    50 	{
    57 public:
    51 public:
    58 	virtual TVerdict doTestStepL();
    52 	virtual TVerdict doTestStepL();
    59 	};
    53 	};
    60 
    54 
    61 
       
    62 class CIoctlStep_4 : public CWapProtSuiteStepBase
    55 class CIoctlStep_4 : public CWapProtSuiteStepBase
    63 /**
    56 /**
    64  *  Simulating client crash conditions with 7bit message
    57  *  Simulating client crash conditions with 7bit message
    65  */
    58  */
    66 	{
    59 	{
    67 public:
    60 public:
    68 	virtual TVerdict doTestStepL();
    61 	virtual TVerdict doTestStepL();
    69 	};
    62 	};
    70 
    63 
    71 
       
    72 class CIoctlStep_5 : public CWapProtSuiteStepBase
    64 class CIoctlStep_5 : public CWapProtSuiteStepBase
    73 /**
    65 /**
    74  *  Simulating client crash conditions with 8bit push message
    66  *  Simulating client crash conditions with 8bit push message
    75  */
    67  */
    76 	{
    68 	{
    77 public:
    69 public:
    78 	virtual TVerdict doTestStepL();
    70 	virtual TVerdict doTestStepL();
    79 	};
    71 	};
    80 
    72 
    81 
       
    82 class CIoctlStep_6 : public CWapProtSuiteStepBase
    73 class CIoctlStep_6 : public CWapProtSuiteStepBase
    83 /**
    74 /**
    84  *  Testing the old client for 7Bit message
    75  *  Testing the old client for 7Bit message
    85  */
    76  */
    86 	{
    77 	{
    87 public:
    78 public:
    88 	virtual TVerdict doTestStepL();
    79 	virtual TVerdict doTestStepL();
    89 	};
    80 	};
    90 
    81 
    91 
       
    92 class CIoctlStep_7 : public CWapProtSuiteStepBase
    82 class CIoctlStep_7 : public CWapProtSuiteStepBase
    93 /**
    83 /**
    94  *  Testing push messages (8-Bit)
    84  *  Testing push messages (8-Bit)
    95  */
    85  */
    96 	{
    86 	{
    97 public:
    87 public:
    98 	virtual TVerdict doTestStepL();
    88 	virtual TVerdict doTestStepL();
    99 	};
    89 	};
   100 
    90 
   101 
       
   102 class CIoctlStep_8 : public CWapProtSuiteStepBase
    91 class CIoctlStep_8 : public CWapProtSuiteStepBase
   103 /**
    92 /**
   104  *  Testing store of 8-Bit messages
    93  *  Testing store of 8-Bit messages
   105  */
    94  */
   106 	{
    95 	{
   107 public:
    96 public:
   108 	virtual TVerdict doTestStepL();
    97 	virtual TVerdict doTestStepL();
   109 	};
    98 	};
   110 
    99 
   111 
       
   112 class CIoctlStep_9 : public CWapProtSuiteStepBase
   100 class CIoctlStep_9 : public CWapProtSuiteStepBase
   113 /**
   101 /**
   114  *  Testing old clientwith 8-Bit messages
   102  *  Testing old clientwith 8-Bit messages
   115  */
   103  */
   116 	{
   104 	{
   117 public:
   105 public:
   118 	virtual TVerdict doTestStepL();
   106 	virtual TVerdict doTestStepL();
   119 	};
   107 	};
   120 
   108 
   121 
       
   122 class CIoctlStep_10 : public CWapProtSuiteStepBase
   109 class CIoctlStep_10 : public CWapProtSuiteStepBase
   123 /**
   110 /**
   124  *  Testing wrong port numebr (i.e.8Bit port number) for 7Bit message
   111  *  Testing wrong port numebr (i.e.8Bit port number) for 7Bit message
   125  */
   112  */
   126 	{
   113 	{
   127 public:
   114 public:
   128 	virtual TVerdict doTestStepL();
   115 	virtual TVerdict doTestStepL();
   129 	};
   116 	};
   130 
   117 
   131 
       
   132 class CIoctlStep_11 : public CWapProtSuiteStepBase
   118 class CIoctlStep_11 : public CWapProtSuiteStepBase
   133 /**
   119 /**
   134  *  Testing CancelIOCTL
   120  *  Testing CancelIOCTL
   135  */
   121  */
   136 	{
   122 	{
   137 public:
   123 public:
   138 	virtual TVerdict doTestStepL();
   124 	virtual TVerdict doTestStepL();
   139 	};
   125 	};
   140 
   126 
   141 
       
   142 class CIoctlStep_12 : public CWapProtSuiteStepBase
   127 class CIoctlStep_12 : public CWapProtSuiteStepBase
   143 /**
   128 /**
   144  *  Test issue IOCTL without SetOption NewStyleClient
   129  *  Test issue IOCTL without SetOption NewStyleClient
   145  */
   130  */
   146 	{
   131 	{
   147 public:
   132 public:
   148 	virtual TVerdict doTestStepL();
   133 	virtual TVerdict doTestStepL();
   149 	};
   134 	};
   150 
   135 
   151 
       
   152 class CIoctlStep_13 : public CWapProtSuiteStepBase
   136 class CIoctlStep_13 : public CWapProtSuiteStepBase
   153 /**
   137 /**
   154  *  Test sending 8-Bit Calendar entry
   138  *  Test sending 8-Bit Calendar entry
   155  */
   139  */
   156 	{
   140 	{
   157 public:
   141 public:
   158 	virtual TVerdict doTestStepL();
   142 	virtual TVerdict doTestStepL();
   159 	};
   143 	};
   160 
   144 
   161 
       
   162 class CIoctlStep_14 : public CWapProtSuiteStepBase
   145 class CIoctlStep_14 : public CWapProtSuiteStepBase
   163 /**
   146 /**
   164  *  Simulating client crash conditions with 8bit message
   147  *  Simulating client crash conditions with 8bit message
   165  */
   148  */
   166 	{
   149 	{
   167 public:
   150 public:
   168 	virtual TVerdict doTestStepL();
   151 	virtual TVerdict doTestStepL();
   169 	};
   152 	};
   170 
   153 
   171 
       
   172 class CIoctlStep_15 : public CWapProtSuiteStepBase
   154 class CIoctlStep_15 : public CWapProtSuiteStepBase
   173 /**
   155 /**
   174  *  Receives a 7Bit v-card using IOCTL with concatenation for new style client
   156  *  Receives a 7Bit v-card using IOCTL with concatenation for new style client
   175  */
   157  */
   176 	{
   158 	{
   177 public:
   159 public:
   178 	virtual TVerdict doTestStepL();
   160 	virtual TVerdict doTestStepL();
   179 	};
   161 	};
   180 
       
   181 
   162 
   182 class CBackupRestoreStep : public CWapProtSuiteStepBase
   163 class CBackupRestoreStep : public CWapProtSuiteStepBase
   183 /**
   164 /**
   184  *  Simulating client crash conditions with 8bit message
   165  *  Simulating client crash conditions with 8bit message
   185  */
   166  */
   188 	virtual TVerdict doTestStepL();
   169 	virtual TVerdict doTestStepL();
   189 
   170 
   190 private:
   171 private:
   191 	TInt SendWapL();
   172 	TInt SendWapL();
   192 	TBool IsWapFileOpenL();
   173 	TBool IsWapFileOpenL();
   193 	RSocketServ iSocketServer;
       
   194 	};
   174 	};
   195 
   175 
   196 class CIoctlStep_17 : public CWapProtSuiteStepBase
   176 class CIoctlStep_17 : public CWapProtSuiteStepBase
   197 /**
   177 /**
   198  *  Sends a 7_Bit business card. Using IOCTL query SMS transport parameters
   178  *  Sends a 7_Bit business card. Using IOCTL query SMS transport parameters
   301  *  Sends a 7_Bit business card. Issue a get message parameters to IOCTL without correct platform security
   281  *  Sends a 7_Bit business card. Issue a get message parameters to IOCTL without correct platform security
   302  */
   282  */
   303 	{
   283 	{
   304 public:
   284 public:
   305 
   285 
   306 	virtual TVerdict doTestStepPreambleL();
   286     virtual TVerdict doTestStepPreambleL();
   307 	TInt DoPanicTestL(TPtrC* aTestData1, TPtrC16* aTelNumber, TInt aPort);
   287 	TInt DoPanicTestL(TPtrC* aTestData1, TPtrC16* aTelNumber, TInt aPort);
   308 	virtual TVerdict doTestStepL();
   288 	virtual TVerdict doTestStepL();
   309 	virtual TVerdict doTestStepPostambleL();
   289 	virtual TVerdict doTestStepPostambleL();
   310 	};
   290 	};
   311 
   291 
   314 /**
   294 /**
   315  *  Setting the Disk space monitor space limits
   295  *  Setting the Disk space monitor space limits
   316  */
   296  */
   317 	{
   297 	{
   318 public:
   298 public:
   319 	virtual TVerdict doTestStepL();
   299     CSetDiskMonitorLimits();
   320 
   300 	virtual TVerdict doTestStepL();
   321 	};
   301 	};
   322 
   302 
   323 class CSetDiskSpace : public CWapProtSuiteStepBase
   303 class CSetDiskSpace : public CWapProtSuiteStepBase
   324 /**
   304 	{
   325  *  Fill the disk space
   305 public:
   326  */
   306     CSetDiskSpace();
   327 	{
       
   328 public:
       
   329 	virtual TVerdict doTestStepL();
   307 	virtual TVerdict doTestStepL();
   330 
   308 
   331 	};
   309 	};
   332 	
   310 	
   333 class CFreeDiskSpace : public CWapProtSuiteStepBase
   311 class CFreeDiskSpace : public CWapProtSuiteStepBase
   339 	virtual TVerdict doTestStepL();
   317 	virtual TVerdict doTestStepL();
   340 
   318 
   341 	};
   319 	};
   342 
   320 
   343 class CReceiveWapMessage : public CWapProtSuiteStepBase
   321 class CReceiveWapMessage : public CWapProtSuiteStepBase
   344 /**
   322 	{
   345  *  Free the disk space
   323 public:
   346  */
   324     CReceiveWapMessage();
   347 	{
   325 	virtual TVerdict doTestStepL();
   348 public:
   326 	};
   349 	virtual TVerdict doTestStepL();
       
   350 
       
   351 	};
       
   352 	
       
   353 class CInitializePhone : public CWapProtSuiteStepBase
       
   354 /**
       
   355  *  Free the disk space
       
   356  */
       
   357 	{
       
   358 public:
       
   359 	virtual TVerdict doTestStepL();
       
   360 
       
   361 	};
       
   362 
       
   363 
   327 
   364 /**
   328 /**
   365 Tests enumerating of a VCard which needs to go via the observer and
   329 Tests enumerating of a VCard which needs to go via the observer and
   366 not returned to the client.
   330 not returned to the client.
   367 */
   331 */
   369 	{
   333 	{
   370 public:
   334 public:
   371 	virtual TVerdict doTestStepL();
   335 	virtual TVerdict doTestStepL();
   372 	};
   336 	};
   373 
   337 
   374 
       
   375 /**
   338 /**
   376  *  Sends a 7-bit VCard with an email address in it, to ensure that '@'
   339  *  Sends a 7-bit VCard with an email address in it, to ensure that '@'
   377  *  characters are sent correctly.
   340  *  characters are sent correctly.
   378  */
   341  */
   379 class CTest7BitBusinessCardWithEmail : public CWapProtSuiteStepBase
   342 class CTest7BitBusinessCardWithEmail : public CWapProtSuiteStepBase
   380 	{
   343 	{
   381 public:
   344 public:
   382 	virtual TVerdict doTestStepL();
   345 	virtual TVerdict doTestStepL();
   383 	};
   346 	};
   384 
       
   385 
   347 
   386 /**
   348 /**
   387  *  Attempts to send datagrams bigger than the maximum message and bigger
   349  *  Attempts to send datagrams bigger than the maximum message and bigger
   388  *  than the maximum size of an MBuf.
   350  *  than the maximum size of an MBuf.
   389  */
   351  */
   397  /**
   359  /**
   398   *  Receive 3 WAP datagrams. Each contains a datagram with at least 1
   360   *  Receive 3 WAP datagrams. Each contains a datagram with at least 1
   399   *  segment which has a wap header but an empty data field.
   361   *  segment which has a wap header but an empty data field.
   400   */
   362   */
   401      {
   363      {
   402  public:
   364 public:
   403      virtual TVerdict doTestStepL();
   365      virtual TVerdict doTestStepL();
   404      };
   366      };
   405 
   367 
   406 	
   368 #endif // WAPIOCTLTESTSTEPS_H
   407 #endif