
[Test]
title PressKey 
pause 10000
presskey global EKeyDevice1
[Endtest]

//----------------------------------------------------------------------------------//
//-----------------------------documenthandler.h------------------------------------//
//----------------------------------------------------------------------------------//
// Test documenthandler.h
// For test function:
// IMPORT_C static CDocumentHandler* NewL( CEikProcess* aProcess );
[Test]
title TestPLNewPL
create testsdkdocumenthandler test
test TestPLNewPL
delete test
[Endtest]

// For test function:
// IMPORT_C static CDocumentHandler* NewLC( CEikProcess* aProcess );
[Test]
title TestDHNewPLC
create testsdkdocumenthandler test
test TestDHNewPLC
delete test
[Endtest]

// For test function:
// IMPORT_C static CDocumentHandler* NewL( );
[Test]
title TestDHNewL
create testsdkdocumenthandler test
test TestDHNewL
delete test
[Endtest]

// For test function:
// IMPORT_C static CDocumentHandler* NewLC( );
[Test]
title TestDHNewLC
create testsdkdocumenthandler test
test TestDHNewLC
delete test
[Endtest]

// For test function:
// IMPORT_C virtual ~CDocumentHandler();
[Test]
title TestDHDeconstructorL
create testsdkdocumenthandler test
test TestDHDeconstructorL
delete test
[Endtest]

// For test function:
// IMPORT_C void OpenTempFileL(
//     const TDesC& aFileName,
//     RFile &aSharableFile);
[Test]
title TestDHOpenTempFileL
create testsdkdocumenthandler test
bringtoforeground
test TestDHOpenTempFileL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void SaveTempFileL(
//     const TDesC8& aContent,
//     TDataType& aDataType,
//     const TDesC& aFileName,
//     RFile &aSharableFile);
[Test]
title TestDHSaveTempFileL
create testsdkdocumenthandler test
bringtoforeground
test TestDHSaveTempFileL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C CAiwGenericParamList& InParamListL();
[Test]
title TestDHInParamListL
create testsdkdocumenthandler test
bringtoforeground
test TestDHInParamListL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C const CAiwGenericParamList* OutParamList();
[Test]
title TestDHOutParamListL
create testsdkdocumenthandler test
bringtoforeground
test TestDHOutParamListL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt OpenFileL(
//     RFile& aSharableFile,
//     TDataType& aDataType); 
[Test]
title TestDHOpenFileRL
create testsdkdocumenthandler test
bringtoforeground
test TestDHOpenFileRL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt OpenFileEmbeddedL(
//     RFile& aSharableFile,
//     TDataType& aDataType,
//     const CAiwGenericParamList& aParamList);
[Test]
title TestDHOpenFileEmbeddedGPL
create testsdkdocumenthandler test
bringtoforeground
test TestDHOpenFileEmbeddedGPL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt OpenFileEmbeddedL(
//     RFile& aSharableFile,
//     TDataType& aDataType);
[Test]
title TestDHOpenFileEmbeddedRL
create testsdkdocumenthandler test
bringtoforeground
test TestDHOpenFileEmbeddedRL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt OpenFileL(
//     const TDesC& aFileName,
//     TDataType& aDataType );
[Test]
title TestDHOpenFileL
create testsdkdocumenthandler test
bringtoforeground
test TestDHOpenFileL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt OpenFileEmbeddedL(
//     const TDesC& aFileName,
//     TDataType& aDataType );
[Test]
title TestDHOpenFileEmbeddedL
create testsdkdocumenthandler test
bringtoforeground
test TestDHOpenFileEmbeddedL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt SaveL(
//     const TDesC8& aContent,
//     TDataType& aDataType,
//     const TUint aAttr );
[Test]
title TestDHSaveL
create testsdkdocumenthandler test
bringtoforeground
test TestDHSaveL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt SaveL(
//     const TDesC8& aContent,
//     TDataType& aDataType,
//     const TDesC& aName,
//     const TUint aAttr );
[Test]
title TestDHSaveNL
create testsdkdocumenthandler test
bringtoforeground
test TestDHSaveNL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt CopyL(
//     const TDesC& aFileNameOld,
//     const TDesC& aNameNew,
//     DataType& aDataType,
//     const TUint aAttr );
[Test]
title TestDHCopyL
create testsdkdocumenthandler test
bringtoforeground
test TestDHCopyL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt CopyL(
//     const RFile& aFileOld,
//     const TDesC& aNameNew,
//     TDataType& aDataType,
//     const TUint aAttr );
[Test]
title TestDHCopyRL
create testsdkdocumenthandler test
bringtoforeground
test TestDHCopyRL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt MoveL(
//     const TDesC& aFileNameOld,
//     const TDesC& aNameNew,
//     TDataType& aDataType,
//     const TUint aAttr );
[Test]
title TestDHMoveL
create testsdkdocumenthandler test
bringtoforeground
test TestDHMoveL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt SilentMoveL(
//     const TDesC& aFileNameOld,
//     const TDesC& aNameNew,
//     const TDesC& aRootPath,
//     TDataType& aDataType,
//     const TUint aAttr );
[Test]
title TestDHSilentMoveL
create testsdkdocumenthandler test
bringtoforeground
test TestDHSilentMoveL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TBool CanHandleL( const TDataType& aDataType );
[Test]
title TestDHCanHandleL
create testsdkdocumenthandler test
bringtoforeground
test TestDHCanHandleL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TBool CanOpenL( const TDataType& aDataType );
[Test]
title TestDHCanOpenL
create testsdkdocumenthandler test
bringtoforeground
test TestDHCanOpenL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TBool CanSaveL( const TDataType& aDataType );
[Test]
title TestDHCanSaveL
create testsdkdocumenthandler test
bringtoforeground
test TestDHCanSaveL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt GetPath( TDes& aPath ); 
[Test]
title TestDHGetPathL
create testsdkdocumenthandler test
bringtoforeground
test TestDHGetPathL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TInt HandlerAppUid( TUid& aUid );  
[Test]
title TestDHHandlerAppUidL
create testsdkdocumenthandler test
bringtoforeground
test TestDHHandlerAppUidL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void SetExitObserver( MAknServerAppExitObserver* aObserver );
[Test]
title TestDHSetExitObserverL
create testsdkdocumenthandler test
bringtoforeground
test TestDHSetExitObserverL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void CheckFileNameExtension(
//     TDes& aFileName,
//     const TDataType& aDatatype );
[Test]
title TestDHCheckFileNameExtensionL
create testsdkdocumenthandler test
bringtoforeground
test TestDHCheckFileNameExtensionL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C TBool CanHandleProgressivelyL( 
//     const TDataType& aDataType, 
//     TUid& aUid );
[Test]
title TestDHCanHandleProgressivelyL
create testsdkdocumenthandler test
bringtoforeground
test TestDHCanHandleProgressivelyL
delete test
sendtobackground
[Endtest]

// For test function:
// IMPORT_C void GetProgressiveDownloadAppUidsL( RArray<TInt32>& aUidList ); 
[Test]
title TestDHGetProgressiveDownloadAppUidsL
create testsdkdocumenthandler test
bringtoforeground
test TestDHGetProgressiveDownloadAppUidsL
delete test
sendtobackground
[Endtest]

[Test]
title PressKey 
pause 2000
presskey global EKeyDevice0
[Endtest]
