os/security/authorisation/userpromptservice/policies/test/tupspolicies/source/tupspolicies.cpp
Update contrib.
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
20 #include <test/ctefunitserver.h>
21 #include <test/tefunit.h>
23 #include "tpolicyreader.h"
24 #include "tupsplugins.h"
25 #include "tserviceconfig.h"
27 _LIT( KServerName, "tupspolicies" );
29 const TTestName ServerName()
32 @return - The TEF server name
35 TTestName serverName(KServerName);
39 CTestSuite* CreateTestSuiteL()
41 Gets the top level test suite
42 @return - The top level suite
46 ADD_TEST_SUITE(CTestPlugins);
47 ADD_TEST_SUITE(CTestPolicyReader);
51 GLDEF_C CTestStep* CreateTEFTestStep(const TDesC& aStepName, CTEFUnitServer& /* aServer */)
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();