sl@0: /* sl@0: * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: #ifndef __CSERVEROOMTESTRUNNER_H__ sl@0: #define __CSERVEROOMTESTRUNNER_H__ sl@0: sl@0: #include "clientsession.h" sl@0: #include "t_testrunner.h" sl@0: #include sl@0: sl@0: /** sl@0: * A test runner that performs OOM testing on the file tokens server. sl@0: */ sl@0: NONSHARABLE_CLASS(CServerOOMTestRunner) : public COOMTestRunnerBase sl@0: { sl@0: public: sl@0: CServerOOMTestRunner(Output& aOut); sl@0: virtual ~CServerOOMTestRunner(); sl@0: sl@0: private: sl@0: // Implement COOMTestRunnerBase interface sl@0: virtual void StartOOMTestL(); sl@0: virtual void IncHeapFailPoint(); sl@0: virtual void ResetHeapFail(); sl@0: virtual TInt AllocCount(); sl@0: virtual void EndOOMTestL(); sl@0: sl@0: TInt SendRequest(TFSTokenMessages aFunction); sl@0: sl@0: private: sl@0: RFileStoreClientSession iClient; sl@0: TInt iServerAlloc; sl@0: }; sl@0: sl@0: #endif