os/graphics/windowing/windowserver/test/tdynamicres/src/t_wsdynamicrestestserver.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/windowing/windowserver/test/tdynamicres/src/t_wsdynamicrestestserver.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,69 @@
     1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +/**
    1.20 + @file
    1.21 +*/
    1.22 +#include <test/ctefunitserver.h>
    1.23 +#include "globalsettings.h"
    1.24 +#include "screenselect.h"
    1.25 +#include "wsdynamicresbase.h"
    1.26 +#include "wsdynamicresbasic.h"
    1.27 +
    1.28 +_LIT( KServerName, "wsdynamicrestestserver" );
    1.29 +
    1.30 +GLDEF_C const TTestName ServerName()
    1.31 +/**
    1.32 + * ServerName
    1.33 + *
    1.34 + * @return - The TEF server name
    1.35 + */
    1.36 +	{
    1.37 +	TTestName serverName(KServerName);
    1.38 +	return serverName;
    1.39 +	}
    1.40 +
    1.41 +GLDEF_C CTestSuite* CreateTestSuiteL()
    1.42 +/**
    1.43 + * Create the overall test suite.
    1.44 + *
    1.45 + * @return - The top level suite
    1.46 + */
    1.47 +	{
    1.48 +	START_SUITE;
    1.49 +	ADD_TEST_SUITE( CWsDynamicResBasic );
    1.50 +	ADD_TEST_SUITE( CGlobalSettings );
    1.51 +	END_SUITE;
    1.52 +	}
    1.53 +
    1.54 +_LIT(KSelectScreen0, "SelectScreen0");
    1.55 +_LIT(KSelectScreen1, "SelectScreen1");
    1.56 +
    1.57 +GLDEF_C CTestStep* CreateTEFTestStep(const TDesC& aStepName, CTEFUnitServer& /* aServer */)
    1.58 +/**
    1.59 + * Create individual test steps, outside the suite.
    1.60 + */
    1.61 +	{
    1.62 +	// Initialise test step object to NULL if no TEF step is found
    1.63 +	CTestStep* testStep = NULL;
    1.64 +
    1.65 +	if (aStepName == KSelectScreen0)
    1.66 +		testStep = new CScreenSelect(0, aStepName);
    1.67 +	else if (aStepName == KSelectScreen1)
    1.68 +		testStep = new CScreenSelect(1, aStepName);
    1.69 +
    1.70 +	return testStep;
    1.71 +	}
    1.72 +