diff -r 5cc91383ab1e -r 7333d7932ef7 installationservices/swcomponentregistry/test/tscr/inc/subsessionsteps.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/installationservices/swcomponentregistry/test/tscr/inc/subsessionsteps.h Tue Aug 31 15:21:33 2010 +0300 @@ -0,0 +1,99 @@ +/* +* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "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: +* Defines the basic test step for the Software Component Registry test harness +* +*/ + + +/** + @file + @internalComponent + @test +*/ + +#ifndef SUBSESSIONSTEPS_H +#define SUBSESSIONSTEPS_H + +#include "tscrstep.h" + + +class CScrTestServer; + +_LIT(KScrComponentRegistrySubsessionStep, "ScrComponentRegistrySubsession"); +_LIT(KScrFileListSubsessionStep, "ScrFileListSubsession"); +_LIT(KScrAppViewSubsessionStep, "ScrAppViewSubsession"); + +class CScrComponentRegistrySubsessionStep : public CScrTestStep +/** + TEF test step which exercises the SCR RSoftwareComponentRegistryView interface + */ + { +public: + CScrComponentRegistrySubsessionStep(CScrTestServer& aParent); + +protected: + // From CScrTestStep + void ImplTestStepPreambleL(); + void ImplTestStepL(); + void ImplTestStepPostambleL(); +private: + void TestSingleModeL(const Usif::RSoftwareComponentRegistryView& aSubSession, RPointerArray& aExpectedEntries); + void TestSetModeL(const Usif::RSoftwareComponentRegistryView& aSubSession, TInt aSetSize, RPointerArray& aExpectedEntries); + void VerifyNonReturnedEntriesL(const RPointerArray& aExpectedEntries); + void GetComponentEntriesFromConfigL(RPointerArray& aEntries); + }; + +class CScrFileListSubsessionStep : public CScrTestStep +/** + TEF test step which exercises the SCR RSoftwareComponentRegistryFilesList interface + */ + { +public: + CScrFileListSubsessionStep(CScrTestServer& aParent); + +protected: + // From CScrTestStep + void ImplTestStepPreambleL(); + void ImplTestStepL(); + void ImplTestStepPostambleL(); +private: + void TestSingleModeL(const Usif::RSoftwareComponentRegistryFilesList& aSubSession, RPointerArray& expectedFiles); + void TestSetModeL(const Usif::RSoftwareComponentRegistryFilesList& aSubSession, TInt aSetSize, RPointerArray& expectedFiles); + void VerifyNonReturnedFilesL(const RPointerArray& aExpectedFiles); + void ReportUnexpectedFileL(const TDesC& aUnexpectedFileName); + }; + + +class CAppInfoView : public CScrTestStep +/** + TEF test step which exercises the SCR RApplicationInfoView interface + */ + { +public: + CAppInfoView(CScrTestServer& aParent); + +protected: + // From CScrTestStep + void ImplTestStepPreambleL(); + void ImplTestStepL(); + void ImplTestStepPostambleL(); +private: + // + void TestSessionL(TInt aNoOfEntries, const Usif::RApplicationInfoView& aSubSession, RPointerArray& aExpectedEntries); + void GetAppEntryFromConfigL(RPointerArray& aEntries); + void VerifyNonReturnedEntriesL(const RPointerArray& aExpectedEntries); + }; + +#endif /* SUBSESSIONSTEPS_H */