1 /* |
|
2 * Copyright (c) 2006-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: test case |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 #ifndef BCTEST_MEM_SEL_SETTING_ITEM_H |
|
27 #define BCTEST_MEM_SEL_SETTING_ITEM_H |
|
28 |
|
29 #include <caknmemoryselectionsettingitem.h> |
|
30 #include "bctestcase.h" |
|
31 |
|
32 /** |
|
33 * test case for various list classes |
|
34 */ |
|
35 class CBCTestMemSelSettingItem: public CBCTestCase |
|
36 { |
|
37 public: // constructor and destructor |
|
38 |
|
39 /** |
|
40 * Symbian 2nd static constructor |
|
41 */ |
|
42 static CBCTestMemSelSettingItem* NewL(); |
|
43 |
|
44 /** |
|
45 * Destructor |
|
46 */ |
|
47 virtual ~CBCTestMemSelSettingItem(); |
|
48 |
|
49 public: // from CBCTestCase |
|
50 |
|
51 /** |
|
52 * Execute corresponding test functions for UI command |
|
53 * @param aCmd, UI command |
|
54 */ |
|
55 void RunL( TInt aCmd ); |
|
56 |
|
57 protected: // new functions |
|
58 |
|
59 /** |
|
60 * Build autotest script |
|
61 */ |
|
62 void BuildScriptL(); |
|
63 |
|
64 /** |
|
65 * Create control or allocate resource for test |
|
66 * @param aCmd UI command, maybe you need to do some work |
|
67 * for different outline |
|
68 */ |
|
69 |
|
70 /** |
|
71 * Release resource used in test |
|
72 */ |
|
73 void Teardown(); |
|
74 |
|
75 /** |
|
76 * Test functions |
|
77 */ |
|
78 |
|
79 private: // constructor |
|
80 |
|
81 /** |
|
82 * C++ default constructor |
|
83 */ |
|
84 CBCTestMemSelSettingItem(); |
|
85 |
|
86 /** |
|
87 * Symbian 2nd constructor |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 void SetupL(); |
|
92 void AddCancelL(); |
|
93 void AddOKL(); |
|
94 |
|
95 void TestCreateL(); |
|
96 void TestEditL(); |
|
97 void TestStoreL(); |
|
98 void TestSettingL(); |
|
99 |
|
100 private: // data |
|
101 CAknMemorySelectionSettingPage::TMemory iMemory; |
|
102 CAknMemorySelectionSettingItem* iItem; |
|
103 }; |
|
104 |
|
105 #endif // BCTEST_MEM_SEL_SETTING_ITEM_H |
|