|
1 // |
|
2 // Copyright (c) 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 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
18 // All rights reserved. |
|
19 // This component and the accompanying materials are made available |
|
20 // under the terms of the License "Symbian Foundation License v1.0" |
|
21 // which accompanies this distribution, and is available |
|
22 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
23 // |
|
24 // Initial Contributors: |
|
25 // Nokia Corporation - initial contribution. |
|
26 // |
|
27 // Contributors: |
|
28 // |
|
29 // Description: |
|
30 // |
|
31 |
|
32 LOAD_SUITE tcaf |
|
33 |
|
34 RUN_UTILS MkDir c:\tcaf\ |
|
35 RUN_UTILS MkDir c:\tcaf\testdata\ |
|
36 RUN_UTILS MkDir c:\tcaf\testdata\TestAgentPrivateDir\ |
|
37 |
|
38 RUN_UTILS CopyFile z:\rta\testdata\*.* c:\rta\testdata\*.* |
|
39 RUN_UTILS CopyFile z:\tcaf\testdata\*.* c:\tcaf\testdata\*.* |
|
40 RUN_UTILS CopyFile z:\tcaf\testdata\TestAgentPrivateDir\*.* c:\tcaf\testdata\TestAgentPrivateDir\*.* |
|
41 |
|
42 //! @file |
|
43 //! @SYMTestCaseID SEC-CAFHELPER-0001 |
|
44 //! @SYMTestCaseDesc CafHelper API Test 1 |
|
45 //! @SYMPREQ PREQ2086 |
|
46 //! @SYMTestStatus Implemented |
|
47 //! @SYMTestPriority Medium |
|
48 //! @SYMTestActions Constructs CCafHelper and tests if the reference cafhelper.dll gets loaded properly and |
|
49 //! calls the HandleCAFErrorL API overload which takes in the filename as input parameter. |
|
50 //! @SYMTestExpectedResults Reference cafhelper.dll must be loaded successfully and the result of the HandleCAFErrorL |
|
51 //! API must match the expected. |
|
52 //! @SYMTestType CIT |
|
53 START_TESTCASE SEC-CAFHELPER-0001 |
|
54 RUN_TEST_STEP 100 tcaf CAFHelperStep c:\tcaf\tcafhelper.ini CafHelperFilename |
|
55 END_TESTCASE SEC-CAFHELPER-0001 |
|
56 |
|
57 //! @file |
|
58 //! @SYMTestCaseID SEC-CAFHELPER-0002 |
|
59 //! @SYMTestCaseDesc CafHelper API Test 2 |
|
60 //! @SYMPREQ PREQ2086 |
|
61 //! @SYMTestStatus Implemented |
|
62 //! @SYMTestPriority Medium |
|
63 //! @SYMTestActions Constructs CCafHelper and tests if the reference cafhelper.dll gets loaded properly and |
|
64 //! calls the HandleCAFErrorL API overload which takes in the filehandle as input parameter. |
|
65 //! @SYMTestExpectedResults Reference cafhelper.dll must be loaded successfully and the result of the HandleCAFErrorL |
|
66 //! API must match the expected. |
|
67 //! @SYMTestType CIT |
|
68 START_TESTCASE SEC-CAF-UTILS-0002 |
|
69 RUN_TEST_STEP 100 tcaf CAFHelperStep c:\tcaf\tcafhelper.ini CafHelperFileHandle |
|
70 END_TESTCASE SEC-CAF-UTILS-0002 |
|
71 |
|
72 //! @file |
|
73 //! @SYMTestCaseID SEC-CAFHELPER-0003 |
|
74 //! @SYMTestCaseDesc CafHelper API Test 3 |
|
75 //! @SYMPREQ PREQ2086 |
|
76 //! @SYMTestStatus Implemented |
|
77 //! @SYMTestPriority Medium |
|
78 //! @SYMTestActions Constructs CCafHelper and tests if the reference cafhelper.dll gets loaded properly and |
|
79 //! calls the HandleCAFErrorL API overload which takes in the fileheader as input parameter. |
|
80 //! @SYMTestExpectedResults Reference cafhelper.dll must be loaded successfully and the result of the HandleCAFErrorL |
|
81 //! API must match the expected. |
|
82 //! @SYMTestType CIT |
|
83 START_TESTCASE SEC-CAFHELPER-0003 |
|
84 RUN_TEST_STEP 100 tcaf CAFHelperStep c:\tcaf\tcafhelper.ini CafHelperFileHeader |
|
85 END_TESTCASE SEC-CAFHELPER-0003 |
|
86 |
|
87 |