os/graphics/windowing/windowserver/test/tdynamicres/src/t_wsdynamicrestestserver.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 /**
    17  @file
    18 */
    19 #include <test/ctefunitserver.h>
    20 #include "globalsettings.h"
    21 #include "screenselect.h"
    22 #include "wsdynamicresbase.h"
    23 #include "wsdynamicresbasic.h"
    24 
    25 _LIT( KServerName, "wsdynamicrestestserver" );
    26 
    27 GLDEF_C const TTestName ServerName()
    28 /**
    29  * ServerName
    30  *
    31  * @return - The TEF server name
    32  */
    33 	{
    34 	TTestName serverName(KServerName);
    35 	return serverName;
    36 	}
    37 
    38 GLDEF_C CTestSuite* CreateTestSuiteL()
    39 /**
    40  * Create the overall test suite.
    41  *
    42  * @return - The top level suite
    43  */
    44 	{
    45 	START_SUITE;
    46 	ADD_TEST_SUITE( CWsDynamicResBasic );
    47 	ADD_TEST_SUITE( CGlobalSettings );
    48 	END_SUITE;
    49 	}
    50 
    51 _LIT(KSelectScreen0, "SelectScreen0");
    52 _LIT(KSelectScreen1, "SelectScreen1");
    53 
    54 GLDEF_C CTestStep* CreateTEFTestStep(const TDesC& aStepName, CTEFUnitServer& /* aServer */)
    55 /**
    56  * Create individual test steps, outside the suite.
    57  */
    58 	{
    59 	// Initialise test step object to NULL if no TEF step is found
    60 	CTestStep* testStep = NULL;
    61 
    62 	if (aStepName == KSelectScreen0)
    63 		testStep = new CScreenSelect(0, aStepName);
    64 	else if (aStepName == KSelectScreen1)
    65 		testStep = new CScreenSelect(1, aStepName);
    66 
    67 	return testStep;
    68 	}
    69