24
|
1 |
// Copyright (c) 2008-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 |
// functional unit of the Common TSY Dispatcher.
|
|
15 |
//
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
/**
|
|
20 |
@file The TEFUnit header file which tests the CallControl
|
|
21 |
*/
|
|
22 |
|
|
23 |
/**
|
|
24 |
@file
|
|
25 |
@internalAll
|
|
26 |
*/
|
|
27 |
|
|
28 |
#ifndef CCTSYCALLCONTROLFU_H
|
|
29 |
#define CCTSYCALLCONTROLFU_H
|
|
30 |
|
|
31 |
#include <test/tefunit.h>
|
|
32 |
|
|
33 |
#include <etelmm.h>
|
|
34 |
#include <etelmmcs.h>
|
|
35 |
|
|
36 |
#include "cctsycomponenttestbase.h"
|
|
37 |
|
|
38 |
class CCTsyCallControlFU : public CCtsyComponentTestBase
|
|
39 |
{
|
|
40 |
public:
|
|
41 |
// Create a suite of all the tests
|
|
42 |
static CTestSuite* CreateSuiteL(const TDesC& aName);
|
|
43 |
|
|
44 |
public:
|
|
45 |
// use-case tests
|
|
46 |
void TestUseCase0001L();
|
|
47 |
void TestUseCase0002L();
|
|
48 |
void TestUseCase0003L();
|
|
49 |
void TestUseCase0004L();
|
|
50 |
void TestUseCase0005L();
|
|
51 |
void TestUseCase0006L();
|
|
52 |
void TestUseCase0007L();
|
|
53 |
void TestUseCase0008L();
|
|
54 |
void TestUseCase0009L();
|
|
55 |
void TestUseCase0010L();
|
|
56 |
void TestUseCase0011L();
|
|
57 |
void TestUseCase0012L();
|
|
58 |
void TestUseCase0013L();
|
|
59 |
void TestUseCase0014L();
|
|
60 |
void TestUseCase0015L();
|
|
61 |
void TestUseCase0016L();
|
|
62 |
void TestUseCase0017L();
|
|
63 |
void TestUseCase0018L();
|
|
64 |
void TestUseCase0019L();
|
|
65 |
void TestUseCase0020L();
|
|
66 |
void TestUseCase0021L();
|
|
67 |
void TestUseCase0022L();
|
|
68 |
void TestUseCase0023L();
|
|
69 |
void TestUseCase0024L();
|
|
70 |
void TestUseCase0025L();
|
|
71 |
|
|
72 |
// Other unit tests
|
|
73 |
void TestUnit0001L();
|
|
74 |
void TestUnit0002L();
|
|
75 |
void TestUnit0003L();
|
|
76 |
void TestUnit0004L();
|
|
77 |
void TestUnit0005L();
|
|
78 |
void TestUnit0006L();
|
|
79 |
void TestUnit0007L();
|
|
80 |
void TestUnit0008L();
|
|
81 |
void TestUnit0009L();
|
|
82 |
void TestUnit0010L();
|
|
83 |
void TestUnit0011L();
|
|
84 |
void TestUnit0012L();
|
|
85 |
void TestUnit0013L();
|
|
86 |
void TestUnit0014L();
|
|
87 |
void TestUnit0015L();
|
|
88 |
void TestUnit0016L();
|
|
89 |
void TestUnit0017L();
|
|
90 |
void TestUnit0018L();
|
|
91 |
void TestUnit0019L();
|
|
92 |
void TestUnit0020L();
|
|
93 |
void TestUnit0021L();
|
|
94 |
|
|
95 |
private:
|
|
96 |
|
|
97 |
// Client calls
|
|
98 |
void ClientWaitForIncomingCallNotificationLC(RMobileCall& aMobileCall, RMobileLine& aMobileLine, TName& aCallName);
|
|
99 |
void ClientAnswerIncomingCallL(RMobileCall& aMobileCall, TInt aExpectedAnswerError = KErrNone);
|
|
100 |
void ClientSetIsvPubSubKeyL();
|
|
101 |
|
|
102 |
// Driver calls
|
|
103 |
void DriverCreateIncomingCallL(TInt aCallId, RMobilePhone::TMobileService aMode);
|
|
104 |
void DriverAnswerIncomingCallL(TInt aCallId, RMobilePhone::TMobileService aMode, TBool aIsIsvCall = EFalse, TInt aAnswerError = KErrNone);
|
|
105 |
void DriverResumeCallL(TInt aCallId, TInt aResumeError);
|
|
106 |
void DriverSwapCallL(TInt aCallId, TInt aSwapError, RMobileCall::TMobileCallStatus aNewCallStatus);
|
|
107 |
void DriverSwapCallL(TInt aCallId1, TInt aCallId2, TInt aSwapError, RMobileCall::TMobileCallStatus aNewCall1Status, RMobileCall::TMobileCallStatus aNewCall2Status);
|
|
108 |
|
|
109 |
}; // class CCTsyCallControlFU
|
|
110 |
|
|
111 |
#endif // CCTSYCALLCONTROLFU_H
|
|
112 |
|