appfw/apparchitecture/tef/T_RApaLsSessionStep.h
author William Roberts <williamr@symbian.org>
Fri, 23 Apr 2010 14:37:17 +0100
branchRCL_3
changeset 22 c82a39b81a38
parent 0 2e3d3ce01487
child 29 6a787171e1de
permissions -rw-r--r--
Rework addition of Symbian splash screen to reduce the source impact (uses SVG from Bug 2414) Notes: by using the OPTION SOURCEDIR parameter in the mifconv extension instructions, I can arrange to use the same source file name in sfimage, without having to export over the original Nokia file. This means that the name inside splashscreen.mbg is the same, which removes the need for the conditional compilation in SplashScreen.cpp, and gets rid of sf_splashscreen.mmp.

// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// t_rapalssessionstep.h
//

/**
 @file t_rapalssessionstep.h
 @test
 @internalComponent - Internal Symbian test code  
*/

#if (!defined __T_RAPALSSESSION_STEP_H__)
#define __T_RAPALSSESSION_STEP_H__

_LIT(KT_RApaLsSessionStep,"T_RApaLsSession");

#include "apparctestserver.h"

#include <coecntrl.h>
#include <coeccntx.h>
#include <coemain.h>
#include <coeview.h>
#include <techview/eikdialg.h>
#include <eikdoc.h>
#include <eikapp.h>
#include <eiksrvc.h>
#include <techview/eikconso.h>
#include <eikenv.h>

#include <apaid.h>
#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
#include <apaidpartner.h>
#include <apgicnflpartner.h>
#endif //SYMBIAN_ENABLE_SPLIT_HEADERS
#include "../apparc/apadll.h"
#include <apgaplst.h>
#include <apgicnfl.h>
#include <apgdoor.h>
#include <apfrec.h>
#include <apfctlf.h>
#include <apgctl.h>
#include <apgaplst.h>
#include <apaflrec.h>
#include "testableapalssession.h"
#include <apacmdln.h>
#include <datastor.h>
#include "appfwk_test_appui.h"
#include "TAppEmbedUids.h"
#include "appfwk_test_utils.h"


class CT_RApaLsSessionTestStep : public CTestStep
	{
public:
	CT_RApaLsSessionTestStep();
	~CT_RApaLsSessionTestStep();
	virtual TVerdict doTestStepPreambleL();
	virtual TVerdict doTestStepPostambleL();
	virtual TVerdict doTestStepL();
	void RunTestCases();

private:
	void ConstructL();
	void setup();
	void RunTestCasesL();
	void TestAppListInvalidSetupL();
	TBool ComparePaths(const TDesC& aFilename, const TDesC& aPath);
	
	void TestAppListInvalidL();
	
	void IconLoadingTestCasesL();
	void TestServerIconLoadingBySizeSetupL();
	void TestServerIconSizeCountL(CArrayFixFlat<TSize>& aTestIconSizeArray);
	void TestServerIconLoadingBySize1L(CArrayFixFlat<TSize>& aTestIconSizeArray);
	void TestServerIconLoadingBySize2L(CArrayFixFlat<TSize>& aTestIconSizeArray);
	void TestServerIconLoadingBySize3L(CArrayFixFlat<TSize>& aTestIconSizeArray);
	
	void AppInfoTestCasesL();
	void TestGetAppCapabilityL();
	void TestRecognizeSpecificData();
	void TestSetGetAcceptedConfidenceL();
	void TestSetGetMaxDataBufSizeL();
	void TestGetSupportedDataTypesL();
	void TestGetAppIconL();
	void TestGetAppIcon1L();
	void TestGetAppIcon2L();
	void TestGetAppIconForMBMIconsL();
	void TestGetAppIconForSVGIconsL();

	void TestGetAppViewsL();
	void TestGetAppViewsFailureL();
	
	void TestAppListInfoDataInterrogationSetupL();
	void TestAppInfo1();
	void TestAppInfo2();
	void TestAppInfo3();
	void TestAppInfo4();

	void TestAppListRecognizeDataL();
	void TestAppListRecognizeDataBufferOnlyL();
	void TestAppListRecognizeDataPassedByBufferL();
	void TestAppListInstallationL();
	void TestAppListInstallation1L();
	void TestAppFolderNonRomDrivesL();
	void TestZeroSizedIconFileL();

	void EmbeddedAppsTestCases();
	void DoGetAllApps();
	void DoGetEmbeddableApps();
	void DoEmbeddableAppCount();
	void DoGetAppCapability();
	void DoGetFilteredApps1();
	void DoGetFilteredApps2();
	void DoGetFilteredApps3();
	void DoGetFilteredApps4();
	void DoGetFilteredApps5();
	void DoGetFilteredApps6();
	void DoTestEmbeddabilityFilter1();
	void DoTestEmbeddabilityFilter2();
	void DoTestEmbeddabilityFilter3();
	void DoTestEmbeddabilityFilter4();
	void DoTestEmbeddabilityFilter5();
	void DoNumDefIconsTestL();
	void TestMatchesSecurityPolicy();
	void TestNotifyOnDataMappingChangeL();
	void TestDataPriorityForUnTrustedApps();
	void TestDataPriorityForUnTrustedAppsRegFile();
	void TestIconLoaderAndIconArrayMemoryLeaksL();
	TInt DeleteFileL(RSmlTestUtils &aFs, const TDesC &aFileName);
private:
	RFs iFs;
	RTestableApaLsSession iLs;
	};

#endif