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_vimpstenginesearchmgrextention.h |
|
15 * |
|
16 */ |
|
17 #ifndef _T_VIMPSTEngineSearchMgrExtention_H_ |
|
18 #define _T_VIMPSTEngineSearchMgrExtention_H_ |
|
19 |
|
20 // EXTERNAL INCLUDES |
|
21 #include <CEUnitTestSuiteClass.h> |
|
22 |
|
23 #include "mvimpstenginesearchextentioneventobserver.h" |
|
24 #include "cvimpstenginesearchmgrextention.h" |
|
25 |
|
26 //Forward declarations |
|
27 class CVIMPSTEngineSearchMgrExtention; |
|
28 class MXIMPClient; |
|
29 class MXIMPContext; |
|
30 class MPresenceFeatures; |
|
31 class CVIMPSTEngineRequestMapper; |
|
32 |
|
33 |
|
34 class T_VIMPSTEngineSearchMgrExtention : public CEUnitTestSuiteClass, |
|
35 public MVIMPSTEngineSearchExtentionEventObserver |
|
36 { |
|
37 public: |
|
38 |
|
39 static T_VIMPSTEngineSearchMgrExtention* NewLC(); |
|
40 virtual ~T_VIMPSTEngineSearchMgrExtention(); |
|
41 public: |
|
42 |
|
43 // From MVIMPSTEngineSearchExtentionEventObserver |
|
44 void HandleSearchResultL(RArray<TVIMPSTSearchData> aSerachData); |
|
45 void HandleSearchFinishedL(TInt aError); |
|
46 void HandleSearchKeysEventL( RArray<TInt>& aEnumKeysArray, RPointerArray<HBufC>& aLebelKeysArray ); |
|
47 |
|
48 private: |
|
49 |
|
50 void ConstructL(); |
|
51 void SetupL(); |
|
52 void Teardown(); |
|
53 |
|
54 /* |
|
55 * To be tested: |
|
56 * - SearchContactsL |
|
57 * - SubscribeForSearchKeysL |
|
58 * - IsSupported |
|
59 * - Type |
|
60 * - HandleSessionContextEventL |
|
61 */ |
|
62 |
|
63 void TestSearchContactsL(); |
|
64 void TestSubscribeForSearchKeysL(); |
|
65 void TestIsSupported(); |
|
66 void TestType(); |
|
67 void TestHandleSessionContextEventL(); |
|
68 |
|
69 void TestAllFunctionsL(); |
|
70 |
|
71 |
|
72 private: |
|
73 |
|
74 T_VIMPSTEngineSearchMgrExtention() {}; |
|
75 |
|
76 |
|
77 private: |
|
78 CVIMPSTEngineSearchMgrExtention* iSearcMgrExtention; |
|
79 |
|
80 MXIMPClient* iClient; |
|
81 //Create new sink to receive ximp context events |
|
82 MXIMPContext* iPresenceCtx; |
|
83 |
|
84 MPresenceFeatures* iFeatures; |
|
85 |
|
86 CVIMPSTEngineRequestMapper* iRequestMapper; |
|
87 |
|
88 EUNIT_DECLARE_TEST_TABLE; |
|
89 }; |
|
90 |
|
91 #endif // _T_CSCPUtility_H_ |
|
92 |
|
93 // end of file |
|