1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/cryptomgmtlibs/securitycommonutils/test/inc_private/scstestclient.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,74 @@
1.4 +/*
1.5 +* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of the License "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +* Client-side API which tests the session count server.
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +/**
1.24 + @internalComponent
1.25 + @test
1.26 + @file
1.27 +*/
1.28 +
1.29 +
1.30 +#ifndef SSCTESTCLIENT_H
1.31 +#define SSCTESTCLIENT_H
1.32 +
1.33 +#include <scs/scsclient.h>
1.34 +
1.35 +_LIT(KDisableScsTestServerTimeout, "c:\\scstest_notimer");
1.36 +
1.37 +class RScsTestSession : public RScsClientBase
1.38 +/**
1.39 + Client-side handle to an SCS test session.
1.40 + Provides an API from which synchronous and asynchronous
1.41 + requests can be executed.
1.42 + */
1.43 + {
1.44 +public:
1.45 + IMPORT_C RScsTestSession();
1.46 + IMPORT_C TInt Connect();
1.47 + IMPORT_C TInt Connect(const TVersion& aVersion);
1.48 +
1.49 + IMPORT_C TInt SendCustomFunction(TInt aFunction);
1.50 +
1.51 + IMPORT_C TInt NukeServer();
1.52 + IMPORT_C TInt Double(TInt& aValue);
1.53 +
1.54 + IMPORT_C void Treble(TDes8& aValue, TRequestStatus& aStatus);
1.55 + IMPORT_C void CancelTreble();
1.56 + };
1.57 +
1.58 +class RScsTestSubsession : public RScsClientSubsessionBase
1.59 +/**
1.60 + Provides an API from which synchronous and asynchronous
1.61 + requests can be executed.
1.62 + */
1.63 + {
1.64 +public:
1.65 + IMPORT_C RScsTestSubsession();
1.66 + IMPORT_C TInt Create(RScsTestSession& aSession, TInt aValue);
1.67 +
1.68 + IMPORT_C TInt SendFunction(TInt aFunction);
1.69 +
1.70 + IMPORT_C TInt Quadruple(TInt& aResult);
1.71 +
1.72 + IMPORT_C void Treble(TDes8& aValue, TRequestStatus& aRequestStatus);
1.73 + IMPORT_C void CancelTreble();
1.74 + };
1.75 +
1.76 +#endif // #ifndef SSCTESTCLIENT_H
1.77 +