os/security/contentmgmt/referencedrmagent/tcaf/scripts/tcafhelper.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/contentmgmt/referencedrmagent/tcaf/scripts/tcafhelper.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,73 @@
     1.4 +//
     1.5 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// under the terms of the License "Eclipse Public License v1.0"
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description: 
    1.18 +//
    1.19 +
    1.20 +
    1.21 +LOAD_SUITE tcaf
    1.22 +
    1.23 +RUN_UTILS MkDir c:\tcaf\
    1.24 +RUN_UTILS MkDir c:\tcaf\testdata\
    1.25 +RUN_UTILS MkDir c:\tcaf\testdata\TestAgentPrivateDir\
    1.26 +
    1.27 +RUN_UTILS CopyFile z:\rta\testdata\*.* c:\rta\testdata\*.*
    1.28 +RUN_UTILS CopyFile z:\tcaf\testdata\*.* c:\tcaf\testdata\*.*
    1.29 +RUN_UTILS CopyFile z:\tcaf\testdata\TestAgentPrivateDir\*.* c:\tcaf\testdata\TestAgentPrivateDir\*.*
    1.30 +
    1.31 +//! @file
    1.32 +//! @SYMTestCaseID 		SEC-CAFHELPER-0001
    1.33 +//! @SYMTestCaseDesc 		CafHelper API Test 1 
    1.34 +//! @SYMPREQ			PREQ2086
    1.35 +//! @SYMTestStatus		Implemented
    1.36 +//! @SYMTestPriority		Medium
    1.37 +//! @SYMTestActions		Constructs CCafHelper and tests if the reference cafhelper.dll gets loaded properly and 
    1.38 +//!				calls the HandleCAFErrorL API overload which takes in the filename as input parameter.
    1.39 +//! @SYMTestExpectedResults	Reference cafhelper.dll must be loaded successfully and the result of the HandleCAFErrorL
    1.40 +//!				API must match the expected.
    1.41 +//! @SYMTestType		CIT
    1.42 +START_TESTCASE SEC-CAFHELPER-0001
    1.43 +RUN_TEST_STEP 100 tcaf CAFHelperStep c:\tcaf\tcafhelper.ini CafHelperFilename
    1.44 +END_TESTCASE SEC-CAFHELPER-0001
    1.45 +
    1.46 +//! @file
    1.47 +//! @SYMTestCaseID 		SEC-CAFHELPER-0002
    1.48 +//! @SYMTestCaseDesc 		CafHelper API Test 2 
    1.49 +//! @SYMPREQ			PREQ2086
    1.50 +//! @SYMTestStatus		Implemented
    1.51 +//! @SYMTestPriority		Medium
    1.52 +//! @SYMTestActions		Constructs CCafHelper and tests if the reference cafhelper.dll gets loaded properly and 
    1.53 +//!				calls the HandleCAFErrorL API overload which takes in the filehandle as input parameter.
    1.54 +//! @SYMTestExpectedResults	Reference cafhelper.dll must be loaded successfully and the result of the HandleCAFErrorL
    1.55 +//!				API must match the expected.
    1.56 +//! @SYMTestType		CIT
    1.57 +START_TESTCASE SEC-CAF-UTILS-0002
    1.58 +RUN_TEST_STEP 100 tcaf CAFHelperStep c:\tcaf\tcafhelper.ini CafHelperFileHandle
    1.59 +END_TESTCASE SEC-CAF-UTILS-0002
    1.60 +
    1.61 +//! @file
    1.62 +//! @SYMTestCaseID 		SEC-CAFHELPER-0003
    1.63 +//! @SYMTestCaseDesc 		CafHelper API Test 3 
    1.64 +//! @SYMPREQ			PREQ2086
    1.65 +//! @SYMTestStatus		Implemented
    1.66 +//! @SYMTestPriority		Medium
    1.67 +//! @SYMTestActions		Constructs CCafHelper and tests if the reference cafhelper.dll gets loaded properly and 
    1.68 +//!				calls the HandleCAFErrorL API overload which takes in the fileheader as input parameter.
    1.69 +//! @SYMTestExpectedResults	Reference cafhelper.dll must be loaded successfully and the result of the HandleCAFErrorL
    1.70 +//!				API must match the expected.
    1.71 +//! @SYMTestType		CIT
    1.72 +START_TESTCASE SEC-CAFHELPER-0003
    1.73 +RUN_TEST_STEP 100 tcaf CAFHelperStep c:\tcaf\tcafhelper.ini CafHelperFileHeader
    1.74 +END_TESTCASE SEC-CAFHELPER-0003
    1.75 +
    1.76 +