1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __UT_CMusVoipCallMonitor_H__ |
|
20 #define __UT_CMusVoipCallMonitor_H__ |
|
21 |
|
22 // USER INCLUDE |
|
23 #include "mmuscallstateobserver.h" |
|
24 |
|
25 // EXTERNAL INCLUDES |
|
26 #include <ceunittestsuiteclass.h> |
|
27 #include <eunitmacros.h> |
|
28 #include <etel.h> |
|
29 |
|
30 // INTERNAL INCLUDES |
|
31 |
|
32 // Forward declaration |
|
33 class CMusVoipCallMonitor; |
|
34 |
|
35 |
|
36 // Next row is to disable warning emerging from EUnit code. |
|
37 // Placement is due to a fact that most test case files |
|
38 // include this file. Directive can be removed when |
|
39 // EUnit is fixed. |
|
40 #pragma warn_illtokenpasting off |
|
41 |
|
42 // CLASS DEFINITION |
|
43 /** |
|
44 * Tester class for CMusCallMonitorBase. |
|
45 * |
|
46 */ |
|
47 NONSHARABLE_CLASS( UT_CMusVoipCallMonitor ): public CEUnitTestSuiteClass, |
|
48 MMusCallStateObserver |
|
49 { |
|
50 public: |
|
51 //Two phase construction |
|
52 static UT_CMusVoipCallMonitor* NewL(); |
|
53 static UT_CMusVoipCallMonitor* NewLC(); |
|
54 // Destructor |
|
55 ~UT_CMusVoipCallMonitor(); |
|
56 |
|
57 public: // From MMusCallStateObserver |
|
58 |
|
59 virtual void MusCallStateChanged(); |
|
60 |
|
61 private: // Constructor |
|
62 UT_CMusVoipCallMonitor(); |
|
63 void ConstructL(); |
|
64 |
|
65 private: // Test case setup and teardown |
|
66 void SetupL(); |
|
67 void Teardown(); |
|
68 |
|
69 private: // Test methdods |
|
70 void UT_CMusVoipCallMonitor_IsEqualL(); |
|
71 void UT_CMusVoipCallMonitor_SetStateLL(); |
|
72 void UT_CMusVoipCallMonitor_SetCallInfoLL(); |
|
73 void UT_CMusVoipCallMonitor_SetCallInfoLOverflowL(); |
|
74 |
|
75 void TestSetCallInfoLL( const TDesC& aSipUriFromTelephony, |
|
76 const TDesC& aSipUriPassedToMus ); |
|
77 void UT_CMusVoipCallMonitor_SetCallProviderInfoLL(); |
|
78 void UT_CMusVoipCallMonitor_AddDomainFromOwnUsernameLL(); |
|
79 |
|
80 void UT_CMusVoipCallMonitor_IsDataReadyLL(); |
|
81 void UT_CMusVoipCallMonitor_ResetCallProviderNameL(); |
|
82 |
|
83 private: // Data |
|
84 CMusVoipCallMonitor* iVoipCallMonitor; |
|
85 RTelServer iTelServer; |
|
86 |
|
87 EUNIT_DECLARE_TEST_TABLE; |
|
88 |
|
89 }; |
|
90 |
|
91 #endif // __UT_CMusVoipCallMonitor_H__ |
|
92 |
|
93 // End of file |
|