localisation/apparchitecture/tef/T_NonNativeAppsStep.h
branchSymbian3
changeset 57 b8d18c84f71c
parent 6 c108117318cb
equal deleted inserted replaced
56:aa99f2208aad 57:b8d18c84f71c
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 //
    14 //
    15 
    15 
    16 
       
    17 
       
    18 /**
    16 /**
    19  @file
    17  @file
    20  @test
    18  @test
    21  @internalComponent - Internal Symbian test code  
    19  @internalComponent - Internal Symbian test code  
    22 */
    20 */
    23 
    21 
    24 #if (!defined __T_NONNATIVEAPPSTEP_H__)
    22 #if (!defined __T_NONNATIVEAPPSTEP_H__)
    25 #define __T_NONNATIVEAPPSTEP_H__
    23 #define __T_NONNATIVEAPPSTEP_H__
    26 
    24 
    27 #include <APASERVERAPP.H>
    25 #include <apaserverapp.h>
    28 #include <EIKSERVERAPP.H>
    26 #include <eikserverapp.h>
    29 
    27 
    30 #include "ApparcTestServer.h"
    28 #include "apparctestserver.h"
    31 
    29 
    32 // RTstFileArray
    30 // RTstFileArray
    33 
    31 
    34 class RTstFileArray
    32 class RTstFileArray
    35 	{
    33 	{
    77 	~CT_NonNativeAppsStep();
    75 	~CT_NonNativeAppsStep();
    78 
    76 
    79 	virtual TVerdict doTestStepPreambleL();
    77 	virtual TVerdict doTestStepPreambleL();
    80 	virtual TVerdict doTestStepPostambleL();
    78 	virtual TVerdict doTestStepPostambleL();
    81 	virtual TVerdict doTestStepL();
    79 	virtual TVerdict doTestStepL();
       
    80 	
       
    81 	enum TOption 
       
    82 	{
       
    83 	EAppA,
       
    84 	EAppB
       
    85 	};
    82 
    86 
    83 private:
    87 private:
    84 	HBufC8* OpenFileAndReadBufferLC(RApaLsSession& aApparcServer, RFs& aFileServer, const TDesC& aFullFileName);
    88 	HBufC8* OpenFileAndReadBufferLC(RApaLsSession& aApparcServer, RFs& aFileServer, const TDesC& aFullFileName);
    85 	void OpenFileAndSetFilePositionToSomewhereUnusualLC(RFile& aFile, TInt& aFilePosition, RFs& aFileServer, const TDesC& aFullFileName);
    89 	void OpenFileAndSetFilePositionToSomewhereUnusualLC(RFile& aFile, TInt& aFilePosition, RFs& aFileServer, const TDesC& aFullFileName);
    86 	void TestFilePosition(RFile& aFile, TInt aFilePosition);
    90 	void TestFilePosition(RFile& aFile, TInt aFilePosition);
    87 	void TestResultsOfAppForDocumentAndServiceL(TUid aServiceUid, TInt aError, const TUid& aAppUid, const TDataType& aDataType, const TDesC8& aExpectedDataType);
    91 	void TestResultsOfAppForDocumentAndServiceL(TUid aServiceUid, TInt aError, const TUid& aAppUid, const TDataType& aDataType, const TDesC8& aExpectedDataType);
    88 	void CheckPropertyUpdateAndResetL(const TDesC& aExpectedNewValue);
    92 	void CheckPropertyUpdateAndResetL(const TDesC& aExpectedNewValue);
    89 	void CheckApplicationLaunchesOkayL(RApaLsSession& aApparcServer, const CApaCommandLine& aCommandLine, TAny* aOption);
    93 	void CheckApplicationLaunchesOkayL(RApaLsSession& aApparcServer, const CApaCommandLine& aCommandLine, TOption aOption);
    90 	void CheckApplicationFailsToLaunchL(RApaLsSession& aApparcServer, const CApaCommandLine& aCommandLine, TAny* aOption);	
    94 	void CheckApplicationFailsToLaunchL(RApaLsSession& aApparcServer, const CApaCommandLine& aCommandLine, TOption aOption);	
    91 	void WaitForApplistUpdate(RApaLsSession& aApparcServer);
    95 	void WaitForApplistUpdate(RApaLsSession& aApparcServer);
    92 private:
    96 private:
    93 	void TestAppForDocumentL(RApaLsSession& aApparcServer, RFs& aFileServer, const RTstFileArray& aFileArray);
    97 	void TestAppForDocumentL(RApaLsSession& aApparcServer, RFs& aFileServer, const RTstFileArray& aFileArray);
    94 	void TestAppForDocumentAndServiceL(RApaLsSession& aApparcServer, RFs& aFileServer, const RTstFileArray& aFileArray);
    98 	void TestAppForDocumentAndServiceL(RApaLsSession& aApparcServer, RFs& aFileServer, const RTstFileArray& aFileArray);
    95 	void TestRecognizingL(RApaLsSession& aApparcServer, RFs& aFileServer, const RTstFileArray& aFileArray);
    99 	void TestRecognizingL(RApaLsSession& aApparcServer, RFs& aFileServer, const RTstFileArray& aFileArray);
    96 	void TestStartDocumentL(RApaLsSession& aApparcServer, RFs& aFileServer, const RTstFileArray& aFileArray);
   100 	void TestStartDocumentL(RApaLsSession& aApparcServer, RFs& aFileServer, const RTstFileArray& aFileArray);
    97 	void TestRegisterNonNativeApplicationL(RApaLsSession& aApparcServer, RFs& aFileServer);
   101 	void TestRegisterNonNativeApplicationL(RApaLsSession& aApparcServer, RFs& aFileServer);
    98 	void TestGetAppIconForNonNativeL(RApaLsSession& aApparcServer, RFs& aFileServer, CApaRegistrationResourceFileWriter* const aRegistrationResourceFileWriter, CApaLocalisableResourceFileWriter* const aLocalisableResourceFileWriter);	
   102 	void TestGetAppIconForNonNativeL(RApaLsSession& aApparcServer, RFs& aFileServer, CApaRegistrationResourceFileWriter* const aRegistrationResourceFileWriter, CApaLocalisableResourceFileWriter* const aLocalisableResourceFileWriter);	
    99 	void TestCommitNNAppUpdatesL(RApaLsSession& aApparcServer);	
   103 	void TestCommitNNAppUpdatesL(RApaLsSession& aApparcServer);
   100 	void TestForceCommitNNAppUpdatesL(RApaLsSession& aApparcServer);
   104 	void TestForceCommitNNAppUpdatesL(RApaLsSession& aApparcServer);
   101 	void TestForceCommitL(RApaLsSession& aApparcServer, CApaRegistrationResourceFileWriter& aRegistrationResourceFileWriter, CApaRegistrationResourceFileWriter& aRegistrationResourceFileWriterB, CApaCommandLine& aNextCommandLine);
   105 	void TestForceCommitL(RApaLsSession& aApparcServer, CApaRegistrationResourceFileWriter& aRegistrationResourceFileWriter, CApaRegistrationResourceFileWriter& aRegistrationResourceFileWriterB, CApaCommandLine& aNextCommandLine);
   102 	void TestRollbackRegistrationL(RApaLsSession& aApparcServer, CApaRegistrationResourceFileWriter& aRegistrationResourceFileWriter, CApaRegistrationResourceFileWriter& aRegistrationResourceFileWriterB, CApaCommandLine& aNextCommandLine);
   106 	void TestRollbackRegistrationL(RApaLsSession& aApparcServer, CApaRegistrationResourceFileWriter& aRegistrationResourceFileWriter, CApaRegistrationResourceFileWriter& aRegistrationResourceFileWriterB, CApaCommandLine& aNextCommandLine);
   103 	void TestRollbackDeregistrationL(RApaLsSession& aApparcServer, CApaRegistrationResourceFileWriter& aRegistrationResourceFileWriter, CApaRegistrationResourceFileWriter& aRegistrationResourceFileWriterB, CApaCommandLine& aNextCommandLine);	
   107 	void TestRollbackDeregistrationL(RApaLsSession& aApparcServer, CApaRegistrationResourceFileWriter& aRegistrationResourceFileWriter, CApaRegistrationResourceFileWriter& aRegistrationResourceFileWriterB, CApaCommandLine& aNextCommandLine);	
   104 
   108 	
   105 private:
   109 private:
   106 
   110 
   107 	};
   111 	};
   108 
   112 
   109 
   113 
   110 _LIT(KT_NonNativeAppsStep,"T_NonNativeApps");
   114 _LIT(KT_NonNativeAppsStep,"T_NonNativeApps");
   111 
   115 
   112 #endif
   116 #endif
       
   117