os/security/authorisation/userpromptservice/policies/test/tupspolicies/source/tupspolicies.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 *
    16 */
    17 
    18 
    19 
    20 #include <test/ctefunitserver.h>
    21 #include <test/tefunit.h>
    22 
    23 #include "tpolicyreader.h"
    24 #include "tupsplugins.h"
    25 #include "tserviceconfig.h"
    26 
    27 _LIT( KServerName, "tupspolicies" );
    28 
    29 const TTestName ServerName()
    30 /**
    31 ServerName
    32 @return - The TEF server name
    33 */
    34 	{
    35 	TTestName serverName(KServerName);
    36 	return serverName;
    37 	}
    38 
    39 CTestSuite* CreateTestSuiteL()
    40 /**
    41 Gets the top level test suite
    42 @return - The top level suite
    43 */
    44 	{
    45 	START_SUITE
    46 	ADD_TEST_SUITE(CTestPlugins);
    47 	ADD_TEST_SUITE(CTestPolicyReader);
    48 	END_SUITE
    49 	}
    50 
    51 GLDEF_C CTestStep* CreateTEFTestStep(const TDesC& aStepName, CTEFUnitServer& /* aServer */)
    52 	{
    53 	// Initialise test step object to NULL if no TEF steps are assigned
    54 	CTestStep* testStep(0);
    55 	if(aStepName == KServiceConfigStep)
    56 		testStep = new CServiceConfigTestStep();
    57 	return testStep;
    58 	}