telephonyserverplugins/common_tsy/test/integration/inc/cctsyintegrationtestapncontrollist.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Test step declarations for the APNControlList functional unit.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @internalTechnology
       
    20 */
       
    21 
       
    22 
       
    23 #ifndef __CCTSYINTEGRATIONTESTAPNCONTROLLIST_H__
       
    24 #define __CCTSYINTEGRATIONTESTAPNCONTROLLIST_H__
       
    25 
       
    26 
       
    27 #include <test/testexecutestepbase.h>
       
    28 #include "cctsyintegrationtestsuitebase.h"
       
    29 #include "tphonetsytesthelper.h"
       
    30 #include "tnetworktsytesthelper.h"
       
    31 #include "tsimtsytesthelper.h"
       
    32 #include "tpacketservicetsytesthelper.h"
       
    33 #include "ttsytesthelperbase.h"
       
    34 
       
    35 class CEtelSessionMgr;
       
    36 
       
    37 class CCTSYIntegrationTestAPNControlListBase : public CCTSYIntegrationTestSuiteStepBase
       
    38 	{
       
    39 public:
       
    40 
       
    41 	CCTSYIntegrationTestAPNControlListBase(CEtelSessionMgr& aEtelSessionMgr);
       
    42 	virtual ~CCTSYIntegrationTestAPNControlListBase();
       
    43 
       
    44 protected:
       
    45 	
       
    46 	void EnsureApnListIsEmptyL(RMobilePhone &aMobilePhone);
       
    47 	TBool CheckEntryIsInListL(RMobilePhone &aMobilePhone,RMobilePhone::TAPNEntryV3 &aExpectedAPnEntry, TUint32 &aIndex);
       
    48 	
       
    49 	// Declare a TSY test helper here if required
       
    50 	TPhoneTsyTestHelper iPhoneTestHelper;
       
    51 	TNetworkTsyTestHelper iNetworkTestHelper;
       
    52 	TSimTsyTestHelper iSimTestHelper;
       
    53 	TPacketServiceTsyTestHelper iPacketServiceHelper;
       
    54 	
       
    55 	}; // class CCTSYIntegrationTestAPNControlListBase
       
    56 
       
    57 
       
    58 class CCTSYIntegrationTestAPNControlList0001 : public CCTSYIntegrationTestAPNControlListBase
       
    59 	{
       
    60 public:
       
    61 
       
    62 	CCTSYIntegrationTestAPNControlList0001(CEtelSessionMgr& aEtelSessionMgr);
       
    63 	~CCTSYIntegrationTestAPNControlList0001();
       
    64 	virtual TVerdict doTestStepL();
       
    65 	static TPtrC GetTestStepName();
       
    66 
       
    67 private:
       
    68 
       
    69 	}; // class CCTSYIntegrationTestAPNControlList0001
       
    70 
       
    71 
       
    72 class CCTSYIntegrationTestAPNControlList0002 : public CCTSYIntegrationTestAPNControlListBase
       
    73 	{
       
    74 public:
       
    75 
       
    76 	CCTSYIntegrationTestAPNControlList0002(CEtelSessionMgr& aEtelSessionMgr);
       
    77 	~CCTSYIntegrationTestAPNControlList0002();
       
    78 	virtual TVerdict doTestStepL();
       
    79 	static TPtrC GetTestStepName();
       
    80 
       
    81 private:
       
    82 
       
    83 	}; // class CCTSYIntegrationTestAPNControlList0002
       
    84 
       
    85 
       
    86 class CCTSYIntegrationTestAPNControlList0003 : public CCTSYIntegrationTestAPNControlListBase
       
    87 	{
       
    88 public:
       
    89 
       
    90 	CCTSYIntegrationTestAPNControlList0003(CEtelSessionMgr& aEtelSessionMgr);
       
    91 	~CCTSYIntegrationTestAPNControlList0003();
       
    92 	virtual TVerdict doTestStepL();
       
    93 	static TPtrC GetTestStepName();
       
    94 
       
    95 private:
       
    96 
       
    97 	}; // class CCTSYIntegrationTestAPNControlList0003
       
    98 
       
    99 
       
   100 class CCTSYIntegrationTestAPNControlList0004 : public CCTSYIntegrationTestAPNControlListBase
       
   101 	{
       
   102 public:
       
   103 
       
   104 	CCTSYIntegrationTestAPNControlList0004(CEtelSessionMgr& aEtelSessionMgr);
       
   105 	~CCTSYIntegrationTestAPNControlList0004();
       
   106 	virtual TVerdict doTestStepL();
       
   107 	static TPtrC GetTestStepName();
       
   108 
       
   109 private:
       
   110 
       
   111 	}; // class CCTSYIntegrationTestAPNControlList0004
       
   112 
       
   113 
       
   114 class CCTSYIntegrationTestAPNControlList0005 : public CCTSYIntegrationTestAPNControlListBase
       
   115 	{
       
   116 public:
       
   117 
       
   118 	CCTSYIntegrationTestAPNControlList0005(CEtelSessionMgr& aEtelSessionMgr);
       
   119 	~CCTSYIntegrationTestAPNControlList0005();
       
   120 	virtual TVerdict doTestStepL();
       
   121 	static TPtrC GetTestStepName();
       
   122 
       
   123 private:
       
   124 
       
   125 	}; // class CCTSYIntegrationTestAPNControlList0005
       
   126 
       
   127 
       
   128 class CCTSYIntegrationTestAPNControlList0006 : public CCTSYIntegrationTestAPNControlListBase
       
   129 	{
       
   130 public:
       
   131 
       
   132 	CCTSYIntegrationTestAPNControlList0006(CEtelSessionMgr& aEtelSessionMgr);
       
   133 	~CCTSYIntegrationTestAPNControlList0006();
       
   134 	virtual TVerdict doTestStepL();
       
   135 	static TPtrC GetTestStepName();
       
   136 
       
   137 private:
       
   138 
       
   139 	}; // class CCTSYIntegrationTestAPNControlList0006
       
   140 
       
   141 
       
   142 class CCTSYIntegrationTestAPNControlList0007 : public CCTSYIntegrationTestAPNControlListBase
       
   143 	{
       
   144 public:
       
   145 
       
   146 	CCTSYIntegrationTestAPNControlList0007(CEtelSessionMgr& aEtelSessionMgr);
       
   147 	~CCTSYIntegrationTestAPNControlList0007();
       
   148 	virtual TVerdict doTestStepL();
       
   149 	static TPtrC GetTestStepName();
       
   150 
       
   151 private:
       
   152 
       
   153 	}; // class CCTSYIntegrationTestAPNControlList0007
       
   154 
       
   155 
       
   156 class CCTSYIntegrationTestAPNControlList0008 : public CCTSYIntegrationTestAPNControlListBase
       
   157 	{
       
   158 public:
       
   159 
       
   160 	CCTSYIntegrationTestAPNControlList0008(CEtelSessionMgr& aEtelSessionMgr);
       
   161 	~CCTSYIntegrationTestAPNControlList0008();
       
   162 	virtual TVerdict doTestStepL();
       
   163 	static TPtrC GetTestStepName();
       
   164 
       
   165 private:
       
   166 
       
   167 	}; // class CCTSYIntegrationTestAPNControlList0008
       
   168 
       
   169 
       
   170 class CCTSYIntegrationTestAPNControlList0009 : public CCTSYIntegrationTestAPNControlListBase
       
   171 	{
       
   172 public:
       
   173 
       
   174 	CCTSYIntegrationTestAPNControlList0009(CEtelSessionMgr& aEtelSessionMgr);
       
   175 	~CCTSYIntegrationTestAPNControlList0009();
       
   176 	virtual TVerdict doTestStepL();
       
   177 	static TPtrC GetTestStepName();
       
   178 
       
   179 private:
       
   180 
       
   181 	}; // class CCTSYIntegrationTestAPNControlList0009
       
   182 
       
   183 
       
   184 class CCTSYIntegrationTestAPNControlList0010 : public CCTSYIntegrationTestAPNControlListBase
       
   185 	{
       
   186 public:
       
   187 
       
   188 	CCTSYIntegrationTestAPNControlList0010(CEtelSessionMgr& aEtelSessionMgr);
       
   189 	~CCTSYIntegrationTestAPNControlList0010();
       
   190 	virtual TVerdict doTestStepL();
       
   191 	static TPtrC GetTestStepName();
       
   192 
       
   193 private:
       
   194 
       
   195 	}; // class CCTSYIntegrationTestAPNControlList0010
       
   196 
       
   197 
       
   198 class CCTSYIntegrationTestAPNControlList0011 : public CCTSYIntegrationTestAPNControlListBase
       
   199 	{
       
   200 public:
       
   201 
       
   202 	CCTSYIntegrationTestAPNControlList0011(CEtelSessionMgr& aEtelSessionMgr);
       
   203 	~CCTSYIntegrationTestAPNControlList0011();
       
   204 	virtual TVerdict doTestStepL();
       
   205 	static TPtrC GetTestStepName();
       
   206 
       
   207 private:
       
   208 
       
   209 	}; // class CCTSYIntegrationTestAPNControlList0011
       
   210 
       
   211 
       
   212 class CCTSYIntegrationTestAPNControlList0012 : public CCTSYIntegrationTestAPNControlListBase
       
   213 	{
       
   214 public:
       
   215 
       
   216 	CCTSYIntegrationTestAPNControlList0012(CEtelSessionMgr& aEtelSessionMgr);
       
   217 	~CCTSYIntegrationTestAPNControlList0012();
       
   218 	virtual TVerdict doTestStepL();
       
   219 	static TPtrC GetTestStepName();
       
   220 
       
   221 private:
       
   222 
       
   223 	}; // class CCTSYIntegrationTestAPNControlList0012
       
   224 
       
   225 
       
   226 class CCTSYIntegrationTestAPNControlList0013 : public CCTSYIntegrationTestAPNControlListBase
       
   227 	{
       
   228 public:
       
   229 
       
   230 	CCTSYIntegrationTestAPNControlList0013(CEtelSessionMgr& aEtelSessionMgr);
       
   231 	~CCTSYIntegrationTestAPNControlList0013();
       
   232 	virtual TVerdict doTestStepL();
       
   233 	static TPtrC GetTestStepName();
       
   234 
       
   235 private:
       
   236 
       
   237 	}; // class CCTSYIntegrationTestAPNControlList0013
       
   238 
       
   239 
       
   240 class CCTSYIntegrationTestAPNControlList0014 : public CCTSYIntegrationTestAPNControlListBase
       
   241 	{
       
   242 public:
       
   243 
       
   244 	CCTSYIntegrationTestAPNControlList0014(CEtelSessionMgr& aEtelSessionMgr);
       
   245 	~CCTSYIntegrationTestAPNControlList0014();
       
   246 	virtual TVerdict doTestStepL();
       
   247 	static TPtrC GetTestStepName();
       
   248 
       
   249 private:
       
   250 
       
   251 	}; // class CCTSYIntegrationTestAPNControlList0014
       
   252 
       
   253 
       
   254 class CCTSYIntegrationTestAPNControlList0015 : public CCTSYIntegrationTestAPNControlListBase
       
   255 	{
       
   256 public:
       
   257 
       
   258 	CCTSYIntegrationTestAPNControlList0015(CEtelSessionMgr& aEtelSessionMgr);
       
   259 	~CCTSYIntegrationTestAPNControlList0015();
       
   260 	virtual TVerdict doTestStepL();
       
   261 	static TPtrC GetTestStepName();
       
   262 
       
   263 private:
       
   264 
       
   265 	}; // class CCTSYIntegrationTestAPNControlList0015
       
   266 
       
   267 
       
   268 class CCTSYIntegrationTestAPNControlList0016 : public CCTSYIntegrationTestAPNControlListBase
       
   269 	{
       
   270 public:
       
   271 
       
   272 	CCTSYIntegrationTestAPNControlList0016(CEtelSessionMgr& aEtelSessionMgr);
       
   273 	~CCTSYIntegrationTestAPNControlList0016();
       
   274 	virtual TVerdict doTestStepL();
       
   275 	static TPtrC GetTestStepName();
       
   276 
       
   277 private:
       
   278 
       
   279 	}; // class CCTSYIntegrationTestAPNControlList0016
       
   280 
       
   281 
       
   282 class CCTSYIntegrationTestAPNControlList0017 : public CCTSYIntegrationTestAPNControlListBase
       
   283 	{
       
   284 public:
       
   285 
       
   286 	CCTSYIntegrationTestAPNControlList0017(CEtelSessionMgr& aEtelSessionMgr);
       
   287 	~CCTSYIntegrationTestAPNControlList0017();
       
   288 	virtual TVerdict doTestStepL();
       
   289 	static TPtrC GetTestStepName();
       
   290 
       
   291 private:
       
   292 
       
   293 	}; // class CCTSYIntegrationTestAPNControlList0017
       
   294 class TBackupAPNList: public TTsyTestHelperBase
       
   295 	{
       
   296 public:
       
   297 	TBackupAPNList(CCTSYIntegrationTestSuiteStepBase &aTestStep,
       
   298 			RMobilePhone &aMobilePhone);
       
   299 	TBool BackupL(TInt &aListCount);
       
   300 	operator TCleanupItem();
       
   301 
       
   302 private:
       
   303 	TBool iValid;
       
   304 	TInt iListCount;
       
   305 	RMobilePhone &iMobilePhone;
       
   306 	RArray<RMobilePhone::TAPNEntryV3> iEntryArray;
       
   307 	static void DoCleanupL(TAny* aPtr);
       
   308 	void CleanupL();
       
   309 	};
       
   310 
       
   311 
       
   312 #endif // __CCTSYINTEGRATIONTESTAPNCONTROLLIST_H__