|
1 /* |
|
2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /** |
|
20 * @file ts_ipsec_crypto.h header file for main test code for IPsec |
|
21 */ |
|
22 |
|
23 #if (!defined __TEF_IPSEC_COVERAGE_TEST_H__) |
|
24 #define __TEF_IPSEC_COVERAGE_TEST_H__ |
|
25 |
|
26 |
|
27 //local includes here |
|
28 |
|
29 #include "te_IPSec_Load_Policy_Base.h" |
|
30 |
|
31 #include <ipsecpolapi.h> |
|
32 #include <comms-infras\dbaccess.h> |
|
33 #include <CommDbConnPref.h> |
|
34 #include <featureuids.h> |
|
35 #include <e32Debug.h> |
|
36 |
|
37 /** |
|
38 * This class is to test the policy loading in the order of Bypasss policy,Drop Policy, Drop Policy |
|
39 * |
|
40 */ |
|
41 |
|
42 class CT_CoverageTest : public CT_IPSec_Load_Policy_Base |
|
43 { |
|
44 public: |
|
45 CT_CoverageTest(); |
|
46 ~CT_CoverageTest(); |
|
47 |
|
48 static CT_CoverageTest* NewL(); |
|
49 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
50 virtual TCleanupOperation CleanupOperation() |
|
51 { |
|
52 return CleanupOperation; |
|
53 } |
|
54 |
|
55 protected: |
|
56 void ConstructL(); |
|
57 |
|
58 private: |
|
59 static void CleanupOperation(TAny* aAny) |
|
60 { |
|
61 TInt* number = static_cast<TInt*>(aAny); |
|
62 delete number; |
|
63 } |
|
64 |
|
65 inline void DoCmdNewL(const TDesC& aEntry); |
|
66 void DoLoadBypassModePolicy(const TDesC& aSection); |
|
67 void DoCmdClose(const TDesC& /*aSection*/); |
|
68 void DoUnloadBypassPolicy(const TDesC& /*aSection*/); |
|
69 void DoUnloadDropPolicy(const TDesC& /*aSection*/); |
|
70 void DoLoadDropModePolicy(const TDesC& /*aSection*/); |
|
71 void DoLoadNewBypassModePolicy(const TDesC& /*aSection*/); |
|
72 void DoUnloadNewBypassPolicy(const TDesC& /*aSection*/); |
|
73 |
|
74 protected: |
|
75 |
|
76 TZoneInfoSet iMyZoneInfoSet; |
|
77 RIpsecPolicyServ iDrpPolicyServer; |
|
78 TPolicyHandlePckg iDrpPolicyHandle; |
|
79 RIpsecPolicyServ iBypsPolicyServer; |
|
80 TPolicyHandlePckg iBypsPolicyHandle; |
|
81 TPolicyHandlePckg iNewBypsPolicyHandle; |
|
82 }; |
|
83 |
|
84 #endif //__TEF_IPSEC_COVERAGE_TEST_H__ |