os/security/cryptoservices/filebasedcertificateandkeystores/test/tfiletokens/CServerOOMTestRunner.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2004-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 #ifndef __CSERVEROOMTESTRUNNER_H__
    20 #define __CSERVEROOMTESTRUNNER_H__
    21 
    22 #include "clientsession.h"
    23 #include "t_testrunner.h"
    24 #include <f32file.h>
    25 
    26 /**
    27  * A test runner that performs OOM testing on the file tokens server.
    28  */
    29 NONSHARABLE_CLASS(CServerOOMTestRunner) : public COOMTestRunnerBase
    30 	{
    31  public:
    32     CServerOOMTestRunner(Output& aOut);
    33     virtual ~CServerOOMTestRunner();
    34 
    35  private:
    36 	// Implement COOMTestRunnerBase interface
    37 	virtual void StartOOMTestL();	
    38 	virtual void IncHeapFailPoint();
    39 	virtual void ResetHeapFail();
    40 	virtual TInt AllocCount();
    41 	virtual void EndOOMTestL();
    42 
    43 	TInt SendRequest(TFSTokenMessages aFunction);
    44 
    45  private:
    46 	RFileStoreClientSession iClient;
    47 	TInt iServerAlloc;
    48 	};
    49 
    50 #endif