authenticationservices/authenticationserver/test/securitytests/source/authsecuritytests.cpp
changeset 29 ece3df019add
equal deleted inserted replaced
19:cd501b96611d 29:ece3df019add
       
     1 /*
       
     2 * Copyright (c) 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 #include "captestutility.h"
       
    20 #include "authwriteuserdata.h"
       
    21 #include "authreaduserdata.h"
       
    22 #include "authreaddevicedata.h"
       
    23 #include "authwritedevicedata.h"
       
    24 #include "authtrustedui.h"
       
    25 #include "authreaduseranddevicedata.h"
       
    26 
       
    27 #include <s32file.h>
       
    28 
       
    29 // Factory function
       
    30 MCapabilityTestFactory* CapabilityTestFactoryL()
       
    31 	{
       
    32 	CDefaultCapabilityTestFactory* factory=new(ELeave) CDefaultCapabilityTestFactory();
       
    33 
       
    34 	factory->AddTestL(CAuthReadUserDataSecTest::NewL());
       
    35 	factory->AddTestL(CAuthReadDeviceDataSecTest::NewL());
       
    36 	factory->AddTestL(CAuthWriteUserDataSecTest::NewL());
       
    37 	factory->AddTestL(CAuthWriteDeviceDataSecTest::NewL());
       
    38 	factory->AddTestL(CAuthReadUserAndDeviceDataSecTest::NewL());
       
    39 	factory->AddTestL(CAuthTrustedUISecTest::NewL());
       
    40 	
       
    41 	return factory;
       
    42 	}
       
    43 
       
    44 EXPORT_C MCapabilityTestFactory* CapabilityTestFactory()
       
    45 	{
       
    46 	MCapabilityTestFactory* factory=NULL;
       
    47 	TRAP_IGNORE(factory = CapabilityTestFactoryL());
       
    48 	return factory;
       
    49 	}
       
    50 
       
    51