|
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 tactilefeedbackserver.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // [INCLUDE FILES] |
|
21 #include <e32svr.h> |
|
22 #include <stifparser.h> |
|
23 #include <stiftestinterface.h> |
|
24 #include <tactilefeedbackserver.h> |
|
25 |
|
26 #include "testdomtactilefeedbackserver.h" |
|
27 #include "testtactilefeedbackserver.h" |
|
28 |
|
29 // ============================ MEMBER FUNCTIONS =============================== |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // Ctestdomtactilefeedbackserver::RunMethodL |
|
33 // Run specified method. Contains also table of test mothods and their names. |
|
34 // ----------------------------------------------------------------------------- |
|
35 // |
|
36 TInt Ctestdomtactilefeedbackserver::RunMethodL( CStifItemParser& aItem ) |
|
37 { |
|
38 |
|
39 static TStifFunctionInfo const KFunctions[] = |
|
40 { |
|
41 // First string is the function name used in TestScripter script file. |
|
42 // Second is the actual implementation member function. |
|
43 ENTRY( "TestTactileFdbkServerInstanceL", |
|
44 Ctestdomtactilefeedbackserver::TestTactileFdbkServerInstanceL ), |
|
45 |
|
46 // [test cases entries] |
|
47 |
|
48 }; |
|
49 |
|
50 const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo ); |
|
51 |
|
52 return RunInternalL( KFunctions, count, aItem ); |
|
53 |
|
54 } |
|
55 |
|
56 // ----------------------------------------------------------------------------- |
|
57 // Ctestdomtactilefeedbackserver::TestTactileFdbkServerInstanceL |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 TInt Ctestdomtactilefeedbackserver::TestTactileFdbkServerInstanceL( CStifItemParser& /*aItem*/ ) |
|
61 { |
|
62 CTestMTactileFeedbackServer* FbServer = new( ELeave ) CTestMTactileFeedbackServer; |
|
63 CleanupStack::PushL( FbServer ); |
|
64 MTactileFeedbackServer* server = FbServer->Instance(); |
|
65 STIF_ASSERT_NULL( server ); |
|
66 CleanupStack::PopAndDestroy( FbServer ); |
|
67 return KErrNone; |
|
68 } |
|
69 |
|
70 // [End of File] |
|
71 |