|
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_MUSUIPROPERYWATCH_H__ |
|
20 #define __UT_MUSUIPROPERYWATCH_H__ |
|
21 |
|
22 |
|
23 // EXTERNAL INCLUDES |
|
24 #include <digia/eunit/ceunittestsuiteclass.h> |
|
25 #include <digia/eunit/eunitmacros.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 //class CMusEngLiveSession; |
|
29 //class CMusEngObserverStub; |
|
30 class CMusUiPropertyWatch; |
|
31 class CMusUiPropertyObserverAdapter; |
|
32 |
|
33 // CLASS DEFINITION |
|
34 /** |
|
35 * Tester class for CMusEngSession. |
|
36 * Since CMusEngSession is abstract, it is tested via object of its' |
|
37 * concrete descendant class CMusEngLiveSession. Only concrete |
|
38 * implementations are tested in this tester class. |
|
39 * |
|
40 */ |
|
41 NONSHARABLE_CLASS( UT_CMusUiPropertyWatch ): public CEUnitTestSuiteClass |
|
42 { |
|
43 public: // Constructors and destructors |
|
44 |
|
45 /** |
|
46 * Two phase construction |
|
47 */ |
|
48 static UT_CMusUiPropertyWatch* NewL(); |
|
49 static UT_CMusUiPropertyWatch* NewLC(); |
|
50 |
|
51 /** |
|
52 * Destructor |
|
53 */ |
|
54 ~UT_CMusUiPropertyWatch(); |
|
55 |
|
56 private: // Constructors and destructors |
|
57 |
|
58 UT_CMusUiPropertyWatch(); |
|
59 void ConstructL(); |
|
60 |
|
61 private: // Test case setup and teardown |
|
62 |
|
63 void SetupL(); |
|
64 |
|
65 void Teardown(); |
|
66 |
|
67 private: // Test methods |
|
68 |
|
69 void UT_CMusUiPropertyWatch_ReadIntPropertyLL(); |
|
70 void UT_CMusUiPropertyWatch_ReadDescPropertyLL(); |
|
71 void UT_CMusUiPropertyWatch_DoCancelL(); |
|
72 void UT_CMusUiPropertyWatch_RunLL(); |
|
73 void UT_CMusUiPropertyWatch_RunErrorL(); |
|
74 |
|
75 |
|
76 private: // Data |
|
77 |
|
78 /* |
|
79 CMusEngLiveSession* iLiveSession; |
|
80 CMusEngObserverStub* iObserver; |
|
81 */ |
|
82 CMusUiPropertyObserverAdapter* iPropertyObserver; |
|
83 CMusUiPropertyWatch* iPropertyWatch; |
|
84 |
|
85 EUNIT_DECLARE_TEST_TABLE; |
|
86 |
|
87 }; |
|
88 |
|
89 #endif // __UT_MUSENGSESSION_H__ |
|
90 |
|
91 // End of file |