networksecurity/tlsprovider/Test/ttlsoom/tlsoomcipherstep.cpp
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2005-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 
       
    20 #include "tlsoomcipherstep.h"
       
    21 
       
    22 #include "tlsprovinterface.h"
       
    23 
       
    24 CTlsOOMCipherStep* CTlsOOMCipherStep::NewL(CTestExecuteLogger& aLogger)
       
    25 	{
       
    26 	
       
    27 	CTlsOOMCipherStep* self = new (ELeave) CTlsOOMCipherStep(aLogger);
       
    28 	return self;
       
    29 	
       
    30 	}
       
    31 	
       
    32 CTlsOOMCipherStep::CTlsOOMCipherStep(CTestExecuteLogger& aLogger)
       
    33 	: CTlsOOMStepBase(aLogger, KNullDesC)
       
    34 	{
       
    35 	}
       
    36 	
       
    37 void CTlsOOMCipherStep::DoTestStepL()
       
    38 	{
       
    39 	
       
    40 	RArray<TTLSCipherSuite> cipherList;
       
    41 	
       
    42 	CTLSProvider* tlsProvider = CTLSProvider::ConnectL();
       
    43 	CleanupStack::PushL(tlsProvider);
       
    44 	
       
    45 	iStatus = KRequestPending;
       
    46 	tlsProvider->CipherSuitesL(cipherList, iStatus);
       
    47 	SetActive();
       
    48 	CActiveScheduler::Start();
       
    49 	
       
    50 	cipherList.Close();
       
    51 	CleanupStack::PopAndDestroy(tlsProvider);
       
    52 	
       
    53 	}