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: t_vimpstenginecchhandler.h |
|
15 * |
|
16 */ |
|
17 #ifndef _T_VimpstEngineCchHandler_H_ |
|
18 #define _T_VimpstEngineCchHandler_H_ |
|
19 |
|
20 // EXTERNAL INCLUDES |
|
21 #include <CEUnitTestSuiteClass.h> |
|
22 |
|
23 #include "mvimpstenginecchhandlerobserver.h" |
|
24 #include "mvimpstenginecchuieventobserver.h" |
|
25 //Forward declarations |
|
26 class CVIMPSTEngineCchHandler; |
|
27 |
|
28 class T_VimpstEngineCchHandler : public CEUnitTestSuiteClass, |
|
29 public MVIMPSTEngineCchHandlerObserver |
|
30 { |
|
31 public: |
|
32 |
|
33 static T_VimpstEngineCchHandler* NewLC(); |
|
34 ~T_VimpstEngineCchHandler(); |
|
35 |
|
36 private: |
|
37 |
|
38 void ConstructL(); |
|
39 void SetupL(); |
|
40 void SetupL1(); |
|
41 void Teardown(); |
|
42 |
|
43 void TestConstructionL(); |
|
44 void TestGetServiceStateServiceNotFoundL(); |
|
45 void TestGetServiceStateServiceFoundL(); |
|
46 |
|
47 |
|
48 void TestEnableServiceServiceFoundL() ; |
|
49 void TestEnableServiceServiceNotFoundL(); |
|
50 |
|
51 // void ValidateServiceServiceNotFoundL(); |
|
52 |
|
53 // void ValidateServiceAllSubserviceAvailableL(); |
|
54 |
|
55 // void ValidateServiceAnyOneSubserviceAvailableL(); |
|
56 |
|
57 void GetConParametersServiceNotFoundL(); |
|
58 void GetConParametersServiceFoundL(); |
|
59 void GetConParametersLeavesServiceFoundL(); |
|
60 |
|
61 void SetConParametersServiceNotFoundL(); |
|
62 void SetConParametersServiceFoundL(); |
|
63 void SetConParametersLeavesServiceFoundL(); |
|
64 |
|
65 void TestDisableServiceServiceFoundL() ; |
|
66 void TestDisableServiceServiceNotFoundL(); |
|
67 |
|
68 void ShutdownCch(); |
|
69 |
|
70 void CheckObservingForPresenceSubServiceL(); |
|
71 void CheckObservingWithoutRegisteringL(); |
|
72 void RegisterObserverWithNull(); |
|
73 void CheckNoObservingForPrsenceSubServiceL(); |
|
74 |
|
75 private: //From MVIMPSTEngineCchHandlerObserver |
|
76 void CchEventOccuredL( |
|
77 TUint aServiceId, |
|
78 TCCHSubserviceState aState, |
|
79 TInt aServiceError ) ; |
|
80 private: |
|
81 |
|
82 T_VimpstEngineCchHandler() {}; |
|
83 |
|
84 private: |
|
85 CVIMPSTEngineCchHandler* iCChHandler; |
|
86 MVIMPSTEngineCchUiEventObserver* iCchUiEventObserver; |
|
87 |
|
88 TBool iCallingEnable; |
|
89 |
|
90 TBool iGotObserverEvent; |
|
91 |
|
92 EUNIT_DECLARE_TEST_TABLE; |
|
93 }; |
|
94 |
|
95 #endif // _T_CSCPUtility_H_ |
|
96 |
|
97 // end of file |
|