diff options
author | Alex <qt-info@nokia.com> | 2010-07-27 20:56:20 +1000 |
---|---|---|
committer | Alex <qt-info@nokia.com> | 2010-07-27 20:56:20 +1000 |
commit | e60b4351bfb03f32a0b919bd2235b41168a5dbc5 (patch) | |
tree | 4c6d66d7ee1f09725efc36a0d69b218515276a27 /plugins/contacts/symbian/contactsmodel/tsrc/integration/tcntpolice/incsql/csuite.h | |
parent | aed8acb961c5320299496a4a33391d64062c093f (diff) |
huge CRLF->LF change (mostly related to Symbian contactsmodel)
Diffstat (limited to 'plugins/contacts/symbian/contactsmodel/tsrc/integration/tcntpolice/incsql/csuite.h')
-rw-r--r-- | plugins/contacts/symbian/contactsmodel/tsrc/integration/tcntpolice/incsql/csuite.h | 276 |
1 files changed, 138 insertions, 138 deletions
diff --git a/plugins/contacts/symbian/contactsmodel/tsrc/integration/tcntpolice/incsql/csuite.h b/plugins/contacts/symbian/contactsmodel/tsrc/integration/tcntpolice/incsql/csuite.h index 287eb18c2a..f6dce47435 100644 --- a/plugins/contacts/symbian/contactsmodel/tsrc/integration/tcntpolice/incsql/csuite.h +++ b/plugins/contacts/symbian/contactsmodel/tsrc/integration/tcntpolice/incsql/csuite.h @@ -1,138 +1,138 @@ -/*
-* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
-
-
-#ifndef CAP_TE_Cntsrv_API_Policing_SERVER_H_
-#define CAP_TE_Cntsrv_API_Policing_SERVER_H_
-
-#include <e32base.h>
-#include <e32svr.h>
-#include <f32file.h>
-#include <e32test.h>
-#include <testexecutestepbase.h>
-#include <testexecuteserverbase.h>
-
-//The two ways to get thru
-#define API_RetValue_ServerPanic 0
-#define API_RetValue_NoCapError 0
-
-//The only way to get rejected
-#define API_RetValue_PermissionDenied 1
-#define DEBUG_ONLY 1
-#define DYNAMIC_IPC 2
-// TS_TE_Cntsrv_API_PolicingServer.h
-//
-// Copyright (c) 2003 Symbian Ltd. All rights reserved.
-//
-// This contains CTestTE_Cntsrv_API_PolicingSuite
-
-const TUint KTestSecureServerMajorVersionNumber = 0;
-const TUint KTestSecureServerMinorVersionNumber = 1;
-const TUint KTestSecureServerBuildVersionNumber = 1;
-
-
-class CTestTE_Cntsrv_API_PolicingServer : public CTestServer
-{
-public:
- static CTestTE_Cntsrv_API_PolicingServer* NewL();
- // Base class pure virtual override
- virtual CTestStep* CreateTestStep(const TDesC& aStepName);
-
-};
-
-
-
-class CCapabilityTestStep : public CTestStep, public RSessionBase
-{
-public:
- virtual TVerdict doTestStepPreambleL( void );
- virtual TVerdict doTestStepPostambleL( void );
-// void ServerClose(RTelServer& aServer);
- CActiveScheduler* testScheduler;
-
- TInt StartServer() ;
-// from CStep.h
- #define SR_MESSAGE_TYPE_CHNGED 2
- #define SR_MESSAGE_ID_CHNGED 10
- #define SR_ServerName_CHNGED _L("FLogger server")
-
- #define SR_CAPTEST_INVERSE 0
-
- //The Server Name (eg: CommServer, EtelServer,FLogger server, etc)
- TBuf<100> SR_ServerName;
- TBuf<100> iServer_Panic;
-
- //Following flags influence inverse tests
- TBool iExpect_Rejection;
-
- TUint64 iStepCap;
-
-
- //Is it Async or sync?
- TInt SR_MESSAGE_TYPE;
-
- //It holds the IPC number
- TInt SR_MESSAGE_ID;
-
- //Holds the cap mask for the message
- TInt64 SR_MESSAGE_MASK;
-
- //We name the child thread appended by the IPC_Number it tests
- TBuf<100> ChildThread_SR;
-
- //The flag informs the main thread whether the connection to the server was established
- volatile TBool iSessionCreated;
-
- //To find out if an Async message was completed and if then with what result?
- TRequestStatus RequestStatus_SR;
-
- //For an Sync message, nResult_SR get you the return value
- TInt iResult_SR;
-
- //Hold the retusn value from "CreateSession" API
- TInt iResult_Server;
-
- TInt iResult_C32;
-
- enum TDbgFns {MarkHeapStart, MarkHeapEnd, CheckHeap, FailNext, ResetFailNext};
-
- TInt iOptions;
-
-
- //The Child thread object
- RThread tChildThread;
-
- //This is the Function called from "doTestStepL" by the test Suite,and it creates an
- //child thread which internally calls the corresponding Exec_SendReceive_SERVERNAME fn.
- TVerdict MainThread();
- TVerdict GetVerdict(TInt aAPIretValue);
- TVerdict GetVerdict(TExitType aExit,TInt aInitRetValue, TInt aApiRetValue);
- TInt TestDebugHeap(TInt *iDbgIPCNo);
-
-
- //This is for the scheduler test framework
- virtual enum TVerdict doTestStepL();
-
- // Stuff that derived classes need to implement
- virtual TVersion Version()=0;
- virtual TInt Exec_SendReceive()=0;
-
-
-};
-
-
-#endif /* TS_TE_Cntsrv_API_Policing_SERVER_H_ */
+/* +* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#ifndef CAP_TE_Cntsrv_API_Policing_SERVER_H_ +#define CAP_TE_Cntsrv_API_Policing_SERVER_H_ + +#include <e32base.h> +#include <e32svr.h> +#include <f32file.h> +#include <e32test.h> +#include <testexecutestepbase.h> +#include <testexecuteserverbase.h> + +//The two ways to get thru +#define API_RetValue_ServerPanic 0 +#define API_RetValue_NoCapError 0 + +//The only way to get rejected +#define API_RetValue_PermissionDenied 1 +#define DEBUG_ONLY 1 +#define DYNAMIC_IPC 2 +// TS_TE_Cntsrv_API_PolicingServer.h +// +// Copyright (c) 2003 Symbian Ltd. All rights reserved. +// +// This contains CTestTE_Cntsrv_API_PolicingSuite + +const TUint KTestSecureServerMajorVersionNumber = 0; +const TUint KTestSecureServerMinorVersionNumber = 1; +const TUint KTestSecureServerBuildVersionNumber = 1; + + +class CTestTE_Cntsrv_API_PolicingServer : public CTestServer +{ +public: + static CTestTE_Cntsrv_API_PolicingServer* NewL(); + // Base class pure virtual override + virtual CTestStep* CreateTestStep(const TDesC& aStepName); + +}; + + + +class CCapabilityTestStep : public CTestStep, public RSessionBase +{ +public: + virtual TVerdict doTestStepPreambleL( void ); + virtual TVerdict doTestStepPostambleL( void ); +// void ServerClose(RTelServer& aServer); + CActiveScheduler* testScheduler; + + TInt StartServer() ; +// from CStep.h + #define SR_MESSAGE_TYPE_CHNGED 2 + #define SR_MESSAGE_ID_CHNGED 10 + #define SR_ServerName_CHNGED _L("FLogger server") + + #define SR_CAPTEST_INVERSE 0 + + //The Server Name (eg: CommServer, EtelServer,FLogger server, etc) + TBuf<100> SR_ServerName; + TBuf<100> iServer_Panic; + + //Following flags influence inverse tests + TBool iExpect_Rejection; + + TUint64 iStepCap; + + + //Is it Async or sync? + TInt SR_MESSAGE_TYPE; + + //It holds the IPC number + TInt SR_MESSAGE_ID; + + //Holds the cap mask for the message + TInt64 SR_MESSAGE_MASK; + + //We name the child thread appended by the IPC_Number it tests + TBuf<100> ChildThread_SR; + + //The flag informs the main thread whether the connection to the server was established + volatile TBool iSessionCreated; + + //To find out if an Async message was completed and if then with what result? + TRequestStatus RequestStatus_SR; + + //For an Sync message, nResult_SR get you the return value + TInt iResult_SR; + + //Hold the retusn value from "CreateSession" API + TInt iResult_Server; + + TInt iResult_C32; + + enum TDbgFns {MarkHeapStart, MarkHeapEnd, CheckHeap, FailNext, ResetFailNext}; + + TInt iOptions; + + + //The Child thread object + RThread tChildThread; + + //This is the Function called from "doTestStepL" by the test Suite,and it creates an + //child thread which internally calls the corresponding Exec_SendReceive_SERVERNAME fn. + TVerdict MainThread(); + TVerdict GetVerdict(TInt aAPIretValue); + TVerdict GetVerdict(TExitType aExit,TInt aInitRetValue, TInt aApiRetValue); + TInt TestDebugHeap(TInt *iDbgIPCNo); + + + //This is for the scheduler test framework + virtual enum TVerdict doTestStepL(); + + // Stuff that derived classes need to implement + virtual TVersion Version()=0; + virtual TInt Exec_SendReceive()=0; + + +}; + + +#endif /* TS_TE_Cntsrv_API_Policing_SERVER_H_ */ |