|
1 /* |
|
2 * Copyright (c) 2006 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: XIMP Framework Test Code |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef T_PRESENCEALL_H |
|
19 #define T_PRESENCEALL_H |
|
20 |
|
21 #include <ceunittestsuiteclass.h> |
|
22 #include <ximpbase.h> |
|
23 #include "prfwteststatuseventlistener.h" |
|
24 #include "prfwtestmessaging.h" |
|
25 |
|
26 class CXIMPTestContextWrapper; |
|
27 class CXIMPTestContextWrapperMgr; |
|
28 class CXIMPTestMessenger; |
|
29 |
|
30 /** |
|
31 * XIMP Framework Eunit tests. |
|
32 * |
|
33 * Tests for XIMP session management services. |
|
34 * |
|
35 * @since S60 v4.0 |
|
36 */ |
|
37 class T_PresenceAll : public CEUnitTestSuiteClass |
|
38 { |
|
39 |
|
40 public: |
|
41 static T_PresenceAll* NewL(); |
|
42 virtual ~T_PresenceAll(); |
|
43 |
|
44 |
|
45 private: |
|
46 T_PresenceAll(); |
|
47 void ConstructL(); |
|
48 |
|
49 |
|
50 |
|
51 private: // Test case functions |
|
52 |
|
53 void Setup_L(); |
|
54 void SetupMultiple_L(); |
|
55 void BindL(); |
|
56 void BindAllL(); |
|
57 void Teardown(); |
|
58 void UnbindL(); |
|
59 void UnbindAllL(); |
|
60 |
|
61 void T_TMO_demo_Startup_L(); |
|
62 void T_GrantWithdrawGroup_L(); |
|
63 |
|
64 void T_BindUnbindL(); |
|
65 |
|
66 private: // Test helpers |
|
67 |
|
68 void SendSrvMsgL( |
|
69 const TDesC& aUri, const TDesC& aDispName, |
|
70 TInt aMsgType ); |
|
71 |
|
72 |
|
73 // send a faked server-originated message with empty contents |
|
74 // |
|
75 void SendSrvMsgL( TInt aMsgType ); |
|
76 |
|
77 void SetupListenerReqCompleteL( CXIMPTestContextWrapper* aWrapper, TXIMPTestStatusEventTemplate aEventType ); |
|
78 void SetupListenerReqCompleteAllowEventsL( CXIMPTestContextWrapper* aWrapper, TXIMPTestStatusEventTemplate aEventTypes ); |
|
79 |
|
80 private: // Test data |
|
81 |
|
82 /** |
|
83 * Eunit test case table declaration. |
|
84 */ |
|
85 EUNIT_DECLARE_TEST_TABLE; |
|
86 |
|
87 // owned |
|
88 CXIMPTestContextWrapperMgr* iWrapperMgr; |
|
89 |
|
90 }; |
|
91 |
|
92 |
|
93 #endif // t_presenceall_H |
|
94 |
|
95 |
|
96 |
|
97 // end of file |
|
98 |
|
99 |
|
100 |
|
101 |