|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent - Internal Symbian test code |
|
19 */ |
|
20 |
|
21 #if !defined(__TCONE3STEP_H__) |
|
22 #define __TCONE3STEP_H__ |
|
23 |
|
24 #include <test/testexecutestepbase.h> |
|
25 #include "COECNTRL.H" |
|
26 #include "TConeTestServer.h" |
|
27 #include "appfwk_test_AppUi.h" |
|
28 |
|
29 |
|
30 //! A CTestStep Derived Class.\n |
|
31 /** |
|
32 Incorporates the tests on Object Provider mechanism.\n |
|
33 */ |
|
34 |
|
35 class CTCone3Step : public CTmsTestStep |
|
36 { |
|
37 public: |
|
38 CTCone3Step(); |
|
39 ~CTCone3Step(); |
|
40 // virtual TVerdict doTestStepPreambleL(); |
|
41 // virtual TVerdict doTestStepPostambleL(); |
|
42 virtual TVerdict doTestStepL(); |
|
43 void ConstructCone3AppL(CCoeEnv* aCoe); |
|
44 private: |
|
45 }; |
|
46 |
|
47 //! A CBase Derived Class.\n |
|
48 /** |
|
49 Objects of this class are used as child objects to test |
|
50 object provider mechanism .\n |
|
51 */ |
|
52 class CSquareObj : public CBase |
|
53 { |
|
54 public: |
|
55 DECLARE_TYPE_ID(0x10004C76) |
|
56 ~CSquareObj(); |
|
57 void SetParentClassName(TDesC& aName); |
|
58 TPtrC GetParentClassName() const; |
|
59 private: |
|
60 //! Name of the Class.\n |
|
61 TPtrC iName; |
|
62 }; |
|
63 |
|
64 //! A CBase Derived Class.\n |
|
65 /** |
|
66 Objects of this class are used as child objects to test |
|
67 object provider mechanism .\n |
|
68 */ |
|
69 class COctagonObj : public CBase |
|
70 { |
|
71 public: |
|
72 DECLARE_TYPE_ID(0x10004C74) |
|
73 ~COctagonObj(); |
|
74 void SetParentClassName(TDesC& aName); |
|
75 TPtrC GetParentClassName() const; |
|
76 private: |
|
77 //! Name of the Class.\n |
|
78 TPtrC iName; |
|
79 }; |
|
80 |
|
81 //! A CTestCoeAppUi Derived Class.\n |
|
82 /** |
|
83 App Ui class for the TCone3Step.\n |
|
84 */ |
|
85 class CCone3TestAppUi : public CTestCoeAppUi |
|
86 { |
|
87 public: |
|
88 CCone3TestAppUi(CTmsTestStep* aStep); |
|
89 ~CCone3TestAppUi(); |
|
90 void ConstructL(); |
|
91 void DoTestsL(); |
|
92 void DoMopConstTestsL(); |
|
93 void DoMopNoChainingTestsL(); |
|
94 void DoMopNoChainingConstTestsL(); |
|
95 void DoStateObserverTestL(); |
|
96 protected: |
|
97 void RunTestStepL(TInt aStepNum); |
|
98 }; |
|
99 |
|
100 //! TCone3 Test Step Name.\n |
|
101 _LIT(KTCone3Step,"TCone3"); |
|
102 |
|
103 #endif |