1 /* |
|
2 * Copyright (c) 2006 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: Main plugin class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MUSAOPLUGINTEST_H |
|
20 #define MUSAOPLUGINTEST_H |
|
21 |
|
22 |
|
23 #include <e32base.h> // CBase |
|
24 #include <digia/eunit/ceunittestsuiteclass.h> |
|
25 |
|
26 class CMusAoPlugin; |
|
27 |
|
28 /** |
|
29 * Main plugin class |
|
30 * |
|
31 * @lib ut_musaoplugin.dll |
|
32 */ |
|
33 NONSHARABLE_CLASS( UT_CMusAoPlugin ) : public CEUnitTestSuiteClass |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Symbian two-phase constructor. |
|
40 * @return New UT_CMusAoPlugin instance |
|
41 */ |
|
42 static UT_CMusAoPlugin* NewLC(); |
|
43 |
|
44 /** |
|
45 * C++ destructor. |
|
46 */ |
|
47 virtual ~UT_CMusAoPlugin(); |
|
48 |
|
49 |
|
50 private: // constructors |
|
51 |
|
52 /** |
|
53 * C++ constructor. |
|
54 */ |
|
55 UT_CMusAoPlugin(); |
|
56 |
|
57 /** |
|
58 * Symbian second-phase constructor. |
|
59 */ |
|
60 void ConstructL(); |
|
61 |
|
62 public: // setup functions |
|
63 |
|
64 void SetupL(); |
|
65 |
|
66 void Teardown(); |
|
67 |
|
68 public: // test functions |
|
69 |
|
70 void NewLL(); |
|
71 void DefinePropertiesLL(); |
|
72 void DefinePropertyL_IntPropertyL(); |
|
73 void DefinePropertyL_DesCPropertyL(); |
|
74 void DeletePropertiesL(); |
|
75 |
|
76 void UT_HandleServerCommandLL(); |
|
77 |
|
78 private: // data |
|
79 |
|
80 CMusAoPlugin* iPlugin; |
|
81 |
|
82 EUNIT_DECLARE_TEST_TABLE; |
|
83 |
|
84 }; |
|
85 |
|
86 #endif // MUSAOPLUGINTEST_H |
|