|
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 #ifndef __T_MEDIATORSENDER_H__ |
|
19 #define __T_MEDIATORSENDER_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <CEUnitTestSuiteClass.h> |
|
23 #include <EUnitDecorators.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CPhoneMediatorSender; |
|
27 |
|
28 // CLASS DEFINITION |
|
29 /** |
|
30 * Generated EUnit test suite class. |
|
31 */ |
|
32 NONSHARABLE_CLASS( T_MediatorSender ) |
|
33 : public CEUnitTestSuiteClass |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 static T_MediatorSender* NewL(); |
|
38 static T_MediatorSender* NewLC(); |
|
39 ~T_MediatorSender(); |
|
40 |
|
41 private: // Constructors |
|
42 |
|
43 T_MediatorSender(); |
|
44 void ConstructL(); |
|
45 |
|
46 private: // New methods |
|
47 |
|
48 void SetupL(); |
|
49 |
|
50 void Teardown(); |
|
51 void FreeIssueCommandGlobals(); |
|
52 void VerifyIssueCommandBoilerplateL(); |
|
53 void VerifyRaiseEventBoilerplateL(); |
|
54 |
|
55 void TestInstanceGotFromCoeEnvL(); |
|
56 void TestInstanceCreatedL(); |
|
57 void TestGenericEventsAreRegisteredL(); |
|
58 void TestGenericEventRegisterationFailsL(); |
|
59 void TestSendingCallDataWhenCallHeaderIsRemovedL(); |
|
60 void TestSendingAudioMuteCommandL(); |
|
61 void TestSendingAudioUnMuteCommandL(); |
|
62 void TestAudioMuteCommandBufferedIfMediatorBusyAndResendWhenResponseArrivesL(); |
|
63 |
|
64 |
|
65 private: // Data |
|
66 |
|
67 CPhoneMediatorSender* iSender; |
|
68 |
|
69 EUNIT_DECLARE_TEST_TABLE; |
|
70 |
|
71 }; |
|
72 |
|
73 #endif // __T_MEDIATORSENDER_H__ |