sl@0: /* sl@0: * Copyright (c) 2003-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: sl@0: sl@0: /** sl@0: @file sl@0: */ sl@0: #ifndef __TESTEXECUTEINTERFACE_H__ sl@0: #define __TESTEXECUTEINTERFACE_H__ sl@0: sl@0: #include sl@0: sl@0: struct TScriptTests; sl@0: sl@0: namespace TestExecuteInterface sl@0: { sl@0: // The test code's WinsMain() should call this to kick off sl@0: // the server thread for wins/eka1. Usage is: sl@0: // EXPORT_C TInt WinsMain() sl@0: // { sl@0: // return TTestExecuteInterface::StartWinsEka1Thread(E32Main); sl@0: // } sl@0: IMPORT_C TInt StartWinsEka1Thread(TInt (*aE32Main)(), sl@0: const TDesC& aServerName); sl@0: sl@0: // Client calls this to perform the tests instead of sl@0: // CTestSetup::CreateAndRunTestsL sl@0: IMPORT_C void StartWithTestExecuteL(TScriptTests theTestTypes[], sl@0: const TDesC& aServerName); sl@0: } sl@0: sl@0: #endif