os/graphics/windowing/windowserver/test/tdynamicres/src/t_wsdynamicrestestserver.cpp
First public contribution.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 #include <test/ctefunitserver.h>
20 #include "globalsettings.h"
21 #include "screenselect.h"
22 #include "wsdynamicresbase.h"
23 #include "wsdynamicresbasic.h"
25 _LIT( KServerName, "wsdynamicrestestserver" );
27 GLDEF_C const TTestName ServerName()
31 * @return - The TEF server name
34 TTestName serverName(KServerName);
38 GLDEF_C CTestSuite* CreateTestSuiteL()
40 * Create the overall test suite.
42 * @return - The top level suite
46 ADD_TEST_SUITE( CWsDynamicResBasic );
47 ADD_TEST_SUITE( CGlobalSettings );
51 _LIT(KSelectScreen0, "SelectScreen0");
52 _LIT(KSelectScreen1, "SelectScreen1");
54 GLDEF_C CTestStep* CreateTEFTestStep(const TDesC& aStepName, CTEFUnitServer& /* aServer */)
56 * Create individual test steps, outside the suite.
59 // Initialise test step object to NULL if no TEF step is found
60 CTestStep* testStep = NULL;
62 if (aStepName == KSelectScreen0)
63 testStep = new CScreenSelect(0, aStepName);
64 else if (aStepName == KSelectScreen1)
65 testStep = new CScreenSelect(1, aStepName);