|
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 // The TEFUnit header file which tests the TelephonyAudioControl |
|
15 // functional unit of the Common TSY. |
|
16 // |
|
17 // |
|
18 |
|
19 #ifndef CCTSYTELEPHONYAUDIOCONTROLFU_H |
|
20 #define CCTSYTELEPHONYAUDIOCONTROLFU_H |
|
21 |
|
22 #include <test/tefunit.h> |
|
23 |
|
24 #include <etelmm.h> |
|
25 #include <etelmmcs.h> |
|
26 |
|
27 #include "cmockltsyfactory.h" |
|
28 #include "cctsycomponenttestbase.h" |
|
29 |
|
30 |
|
31 class CCTsyTelephonyAudioControlFU : public CCtsyComponentTestBase |
|
32 { |
|
33 public: |
|
34 // Create a suite of all the tests |
|
35 static CTestSuite* CreateSuiteL(const TDesC& aName); |
|
36 ~CCTsyTelephonyAudioControlFU(); |
|
37 |
|
38 public: |
|
39 // Individual test steps |
|
40 void TestSetupTelephonyAudio0001aL(); |
|
41 void TestSetupTelephonyAudio0001bL(); |
|
42 void TestSetupTelephonyAudio0004L(); |
|
43 void TestTeardownTelephonyAudio0001aL(); |
|
44 void TestTeardownTelephonyAudio0001bL(); |
|
45 void TestTeardownTelephonyAudio0004L(); |
|
46 void TestCallStateChange0001aL(); |
|
47 void TestCallStateChange0001bL(); |
|
48 void TestCallStateChange0004L(); |
|
49 void TestNotifyTelephonyAudioControlError0001L(); |
|
50 |
|
51 private: |
|
52 |
|
53 void MOCallAudioTeardownL(); |
|
54 void MTCallAudioTeardownL(); |
|
55 |
|
56 void UpdateCallStatusL( RMobileCall& aMobileCall, |
|
57 RMobileCall::TMobileCallStatus aMobileCallStatus, |
|
58 TBool aUpdateTimer = EFalse, |
|
59 TBool aHangUp = EFalse ); |
|
60 |
|
61 void DefinePropeties( TBool aReset, TMockLtsyFactoryVersions aVersion ); |
|
62 void DeletePropeties(); |
|
63 |
|
64 void CheckCallRoutingValues( RLine& aLine, RMobileCall& aCall ); |
|
65 |
|
66 void CheckCallStatus( TName& aCallName, RMobileCall::TMobileCallStatus aMobileCallStatus ); |
|
67 |
|
68 void CheckNoCallRouting(); |
|
69 |
|
70 }; // class CCTsyTelephonyAudioControlFU |
|
71 |
|
72 #endif // CCTSYTELEPHONYAUDIOCONTROLFU_H |
|
73 |