pimprotocols/phonebooksync/Test/TE_cntsync/te_cntsyncstress.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef _TE_CNTSYNCSTRESS_H_
       
    22 #define _TE_CNTSYNCSTRESS_H_
       
    23 
       
    24 #include <phbksync.h>
       
    25 #include "te_cntsyncbase.h"
       
    26 
       
    27 class CPhbkIntegrationStressTestBase : public CCntSyncTestStep
       
    28 	{
       
    29 public:
       
    30 	virtual enum TVerdict doTestStepL() {return EFail; };
       
    31 
       
    32 protected:	
       
    33 	static TInt DoSyncThread(TAny* aPtr);
       
    34 	static TInt ServerLaunchThread(TAny* aPtr);
       
    35 	static TInt MultipleReadThread(TAny* aPtr);
       
    36 	static TInt MultipleWriteThread(TAny* aPtr);
       
    37 	static TInt MultipleDeleteThread(TAny* aPtr);
       
    38 	static void CheckServerThreadCountL(TInt aExpectedCount);
       
    39 	static void DoSyncThreadL();
       
    40 	static void MultipleReadThreadL();
       
    41 	static void MultipleWriteThreadL();
       
    42 	static void MultipleDeleteThreadL();
       
    43 	};
       
    44 
       
    45 class CPhbkLaunchServerSimultaneouslyTest : public CPhbkIntegrationStressTestBase
       
    46 	{
       
    47 public:
       
    48 	static CPhbkLaunchServerSimultaneouslyTest* NewL();
       
    49 	virtual enum TVerdict doTestStepL();
       
    50 
       
    51 	CPhbkLaunchServerSimultaneouslyTest();
       
    52 	};
       
    53 
       
    54 class CPhbkRequestDoSyncSimultaneouslyTest : public CPhbkIntegrationStressTestBase
       
    55 	{
       
    56 public:
       
    57 	static CPhbkRequestDoSyncSimultaneouslyTest* NewL();
       
    58 	virtual enum TVerdict doTestStepL();
       
    59 
       
    60 	CPhbkRequestDoSyncSimultaneouslyTest();
       
    61 	};
       
    62 
       
    63 class CPhbkRequestReadSimultaneouslyTest : public CPhbkIntegrationStressTestBase
       
    64 	{
       
    65 public:
       
    66 	static CPhbkRequestReadSimultaneouslyTest* NewL();
       
    67 	virtual enum TVerdict doTestStepL();
       
    68 
       
    69 	CPhbkRequestReadSimultaneouslyTest();
       
    70 	};
       
    71 
       
    72 class CPhbkRequestWriteSimultaneouslyTest : public CPhbkIntegrationStressTestBase
       
    73 	{
       
    74 public:
       
    75 	static CPhbkRequestWriteSimultaneouslyTest* NewL();
       
    76 	virtual enum TVerdict doTestStepL();
       
    77 
       
    78 	CPhbkRequestWriteSimultaneouslyTest();
       
    79 	};
       
    80 
       
    81 class CPhbkRequestDeleteSimultaneouslyTest : public CPhbkIntegrationStressTestBase
       
    82 	{
       
    83 public:
       
    84 	static CPhbkRequestDeleteSimultaneouslyTest* NewL();
       
    85 	virtual enum TVerdict doTestStepL();
       
    86 
       
    87 	CPhbkRequestDeleteSimultaneouslyTest();
       
    88 	};
       
    89 
       
    90 class CPhbkRequestSyncAndReadSimultaneouslyTest : public CPhbkIntegrationStressTestBase
       
    91 	{
       
    92 public:
       
    93 	static CPhbkRequestSyncAndReadSimultaneouslyTest* NewL();
       
    94 	virtual enum TVerdict doTestStepL();
       
    95 
       
    96 	CPhbkRequestSyncAndReadSimultaneouslyTest();
       
    97 	};
       
    98 
       
    99 class CPhbkCheckServerThreadPriorityTest : public CPhbkIntegrationStressTestBase
       
   100 	{
       
   101 public:
       
   102 	static CPhbkCheckServerThreadPriorityTest* NewL();
       
   103 	virtual enum TVerdict doTestStepL();
       
   104 
       
   105 	CPhbkCheckServerThreadPriorityTest();
       
   106 	};
       
   107 
       
   108 class CPhbkServerLostFileRecoveryTest : public CPhbkIntegrationStressTestBase
       
   109 	{
       
   110 public:
       
   111 	static CPhbkServerLostFileRecoveryTest* NewL();
       
   112 	virtual enum TVerdict doTestStepL();
       
   113 
       
   114 	CPhbkServerLostFileRecoveryTest();
       
   115 	};
       
   116 
       
   117 class CPhbkIntegrationBackupTest : public CCntSyncTestStep
       
   118 	{
       
   119 public:
       
   120 	static CPhbkIntegrationBackupTest* NewL();
       
   121 	~CPhbkIntegrationBackupTest()	;
       
   122 	virtual enum TVerdict doTestStepL();
       
   123 	CPhbkIntegrationBackupTest();
       
   124 	};
       
   125 
       
   126 #endif