|
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_MUSENGTELEPHONEUTILS_H__ |
|
20 #define __UT_MUSENGTELEPHONEUTILS_H__ |
|
21 |
|
22 |
|
23 // EXTERNAL INCLUDES |
|
24 #include <digia/eunit/ceunittestsuiteclass.h> |
|
25 #include <digia/eunit/eunitmacros.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMusEngTelephoneUtils; |
|
29 class CMusEngObserverStub; |
|
30 |
|
31 // CLASS DEFINITION |
|
32 /** |
|
33 * Tester class for CMusEngTelephoneUtils. |
|
34 * |
|
35 */ |
|
36 NONSHARABLE_CLASS( UT_CMusEngTelephoneUtils ): public CEUnitTestSuiteClass |
|
37 { |
|
38 public: // Constructors and destructors |
|
39 |
|
40 /** |
|
41 * Two phase construction |
|
42 */ |
|
43 static UT_CMusEngTelephoneUtils* NewL(); |
|
44 static UT_CMusEngTelephoneUtils* NewLC(); |
|
45 |
|
46 /** |
|
47 * Destructor |
|
48 */ |
|
49 ~UT_CMusEngTelephoneUtils(); |
|
50 |
|
51 private: // Constructors and destructors |
|
52 |
|
53 UT_CMusEngTelephoneUtils(); |
|
54 void ConstructL(); |
|
55 |
|
56 private: // Test case setup and teardown |
|
57 |
|
58 void SetupL(); |
|
59 |
|
60 void Teardown(); |
|
61 |
|
62 private: // Test methods |
|
63 |
|
64 void UT_NewLL(); |
|
65 void UT_AudioRoutingCanBeChangedL(); |
|
66 void UT_LoudspeakerLL(); |
|
67 void UT_IsLoudSpeakerEnabledL(); |
|
68 void UT_GetVolumeLL(); |
|
69 void UT_SetVolumeLL(); |
|
70 void UT_AvailableOutputsChangedL(); |
|
71 void UT_OutputChangedL(); |
|
72 void UT_SetOutputCompleteL(); |
|
73 void UT_ValidateVolumeL(); |
|
74 void UT_DestructorL(); |
|
75 |
|
76 private: // Data |
|
77 |
|
78 CMusEngTelephoneUtils* iTelephoneUtils; |
|
79 CMusEngObserverStub* iObserver; |
|
80 |
|
81 EUNIT_DECLARE_TEST_TABLE; |
|
82 |
|
83 }; |
|
84 |
|
85 #endif // __UT_MUSENGTELEPHONEUTILS_H__ |
|
86 |
|
87 // End of file |