|
1 /* |
|
2 * Copyright (c) 2002 - 2007 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 alarm_api |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /* |
|
21 * [INCLUDE FILES] |
|
22 */ |
|
23 #include <e32svr.h> |
|
24 #include <stifparser.h> |
|
25 #include <stiftestinterface.h> |
|
26 |
|
27 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
28 #include <uikon/eiknotifyalert.h> |
|
29 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
|
30 #include <eikalmct.h> |
|
31 |
|
32 #include "testdomalarm.h" |
|
33 |
|
34 // ============================ MEMBER FUNCTIONS =============================== |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // Ctestdomalarm::Delete |
|
38 // Delete here all resources allocated and opened from test methods. |
|
39 // Called from destructor. |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 void Ctestdomalarm::Delete() |
|
43 { |
|
44 |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // Ctestdomalarm::RunMethodL |
|
49 // Run specified method. Contains also table of test mothods and their names. |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 TInt Ctestdomalarm::RunMethodL( CStifItemParser& aItem ) |
|
53 { |
|
54 |
|
55 static TStifFunctionInfo const KFunctions[] = |
|
56 { |
|
57 /* |
|
58 * ENTRY |
|
59 */ |
|
60 ENTRY( "TestALARMAllFunctionL", Ctestdomalarm::TestALARMAllFunctionL ), |
|
61 |
|
62 }; |
|
63 |
|
64 const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo ); |
|
65 |
|
66 return RunInternalL( KFunctions, count, aItem ); |
|
67 |
|
68 } |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // Ctestdomalarm::TestALARMAllFunctionL |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 TInt Ctestdomalarm::TestALARMAllFunctionL( CStifItemParser& /*aItem*/ ) |
|
75 { |
|
76 CEikAlarmControl* contrl = new ( ELeave ) CEikAlarmControl( NULL, NULL ); |
|
77 CleanupStack::PushL( contrl ); |
|
78 STIF_ASSERT_NOT_NULL( contrl ); |
|
79 contrl->ConstructL(); |
|
80 |
|
81 CleanupStack::PopAndDestroy( contrl ); |
|
82 |
|
83 return KErrNone; |
|
84 } |
|
85 |
|
86 /* |
|
87 * [End of File] |
|
88 */ |