24
|
1 |
// Copyright (c) 2003-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 |
#ifndef __TE_ETELISVSTRESS_H_
|
|
18 |
#define __TE_ETELISVSTRESS_H_
|
|
19 |
|
|
20 |
enum TApiToTest
|
|
21 |
{
|
|
22 |
EGetPhoneIdAPI,
|
|
23 |
EGetSignalStrengthAPI,
|
|
24 |
EDialNewCallAPI,
|
|
25 |
EGetNetworkInfoAPI
|
|
26 |
};
|
|
27 |
struct TTestData
|
|
28 |
{
|
|
29 |
TBool iTestSuccess;
|
|
30 |
TInt iClientId;
|
|
31 |
TInt iRepCount;
|
|
32 |
CEtelIsvTestStep* iTestStep;
|
|
33 |
TApiToTest iApiToTest;
|
|
34 |
};
|
|
35 |
|
|
36 |
class CTestStress : public CEtelIsvTestStep //Stress Tests
|
|
37 |
{
|
|
38 |
public:
|
|
39 |
CTestStress(TInt& aCallCount) ;
|
|
40 |
~CTestStress(){} ;
|
|
41 |
virtual enum TVerdict doTestStepL();
|
|
42 |
static TInt StartThreadFunction(TAny* aThreadData);
|
|
43 |
|
|
44 |
static TInt GetPhoneIdThreadFunctionL(TTestData* aTestData);
|
|
45 |
static TInt GetSignalStrengthThreadFunctionL(TTestData* aTestData);
|
|
46 |
static TInt MakeCallHangupThreadFunctionL(TTestData* aTestData);
|
|
47 |
static TInt GetCurrentNetworkInfoThreadFunctionL(TTestData* aTestData);
|
|
48 |
|
|
49 |
void RunTestL(TTestData& aTestData1, TTestData& aTestData2, const TDes& aTestName1, const TDes& aTestName2);
|
|
50 |
private:
|
|
51 |
TInt& iCallCount;
|
|
52 |
};
|
|
53 |
|
|
54 |
class CTestFailedOpen : public CEtelIsvTestStep
|
|
55 |
{
|
|
56 |
public:
|
|
57 |
virtual TVerdict doTestStepPreambleL();
|
|
58 |
virtual enum TVerdict doTestStepL();
|
|
59 |
virtual TVerdict doTestStepPostambleL();
|
|
60 |
};
|
|
61 |
|
|
62 |
#endif
|