|
1 /* |
|
2 * Copyright (c) 2005-2009 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 "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef TAUTHKEYSSTEP_H |
|
20 #define TAUTHKEYSSTEP_H |
|
21 |
|
22 #include <test/testexecutestepbase.h> |
|
23 #include <test/testexecutelog.h> |
|
24 #include "tauthkeysserver.h" |
|
25 |
|
26 #include "encryptedprotectionkey.h" |
|
27 #include "transientkey.h" |
|
28 #include "transientkey.h" |
|
29 #include "transientkeyinfo.h" |
|
30 |
|
31 _LIT(KTStepPersist, "PERSIST"); |
|
32 _LIT(KTStepEncryptKey, "ENCRYPT_KEY"); |
|
33 |
|
34 class CTAuthKeysStepBase : public CTestStep |
|
35 { |
|
36 protected: |
|
37 CTAuthKeysStepBase() {} |
|
38 ~CTAuthKeysStepBase() {} |
|
39 virtual TVerdict doTestStepPreambleL() |
|
40 { |
|
41 iFs.Connect(); |
|
42 return TestStepResult(); |
|
43 } |
|
44 virtual TVerdict doTestStepPostambleL() |
|
45 { |
|
46 iFs.Close(); |
|
47 return TestStepResult(); |
|
48 } |
|
49 |
|
50 protected: |
|
51 RFs iFs; |
|
52 }; |
|
53 |
|
54 class CTStepPersist : public CTAuthKeysStepBase |
|
55 { |
|
56 public: |
|
57 CTStepPersist(); |
|
58 virtual TVerdict doTestStepL(); |
|
59 }; |
|
60 |
|
61 |
|
62 class CTStepEncryptKey : public CTAuthKeysStepBase |
|
63 { |
|
64 public: |
|
65 CTStepEncryptKey(); |
|
66 virtual TVerdict doTestStepL(); |
|
67 }; |
|
68 |
|
69 #endif /* TAUTHKEYSSTEP_H */ |