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