|
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 __MT_ApiAiPSPropertyObserver_H__ |
|
19 #define __MT_ApiAiPSPropertyObserver_H__ |
|
20 |
|
21 // EXTERNAL INCLUDES |
|
22 #include <digia/eunit/ceunittestsuiteclass.h> |
|
23 |
|
24 // INTERNAL INCLUDES |
|
25 |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MAiPSPropertyObserver; |
|
29 |
|
30 #include <e32def.h> |
|
31 #ifndef NONSHARABLE_CLASS |
|
32 #define NONSHARABLE_CLASS(x) class x |
|
33 #endif |
|
34 |
|
35 // CLASS DEFINITION |
|
36 /** |
|
37 * |
|
38 * EUnitWizard generated test class. |
|
39 * |
|
40 */ |
|
41 NONSHARABLE_CLASS( MT_ApiAiPSPropertyObserver ) |
|
42 : public CEUnitTestSuiteClass |
|
43 { |
|
44 public: // Constructors and destructors |
|
45 |
|
46 /** |
|
47 * Two phase construction |
|
48 */ |
|
49 static MT_ApiAiPSPropertyObserver* NewL(); |
|
50 static MT_ApiAiPSPropertyObserver* NewLC(); |
|
51 /** |
|
52 * Destructor |
|
53 */ |
|
54 ~MT_ApiAiPSPropertyObserver(); |
|
55 |
|
56 private: // Constructors and destructors |
|
57 |
|
58 MT_ApiAiPSPropertyObserver(); |
|
59 void ConstructL(); |
|
60 |
|
61 public: // From observer interface |
|
62 |
|
63 |
|
64 |
|
65 private: // New methods |
|
66 |
|
67 void SetupL(); |
|
68 |
|
69 void Teardown(); |
|
70 |
|
71 void TestBasicFunctionalityL(); |
|
72 |
|
73 void TestGettersL(); |
|
74 |
|
75 void TestDoCancelL(); |
|
76 |
|
77 static TInt HandleSystemStateChangedL(TAny* aPtr); |
|
78 |
|
79 private: // Data |
|
80 |
|
81 EUNIT_DECLARE_TEST_TABLE; |
|
82 |
|
83 MAiPSPropertyObserver* iPSObserver; |
|
84 |
|
85 TBool iStateOk; |
|
86 |
|
87 |
|
88 }; |
|
89 |
|
90 #endif // __MT_ApiAiPSPropertyObserver_H__ |
|
91 |
|
92 // End of file |