|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <stiftestinterface.h> |
|
22 |
|
23 #include "speechsynthesistest.h" |
|
24 |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CSpeechSynthesisTest::CSpeechSynthesisTest |
|
30 // C++ default constructor can NOT contain any code, that |
|
31 // might leave. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 CSpeechSynthesisTest::CSpeechSynthesisTest( CTestModuleIf& aTestModuleIf ): |
|
35 CScriptBase( aTestModuleIf ) |
|
36 { |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CSpeechSynthesisTest::ConstructL |
|
41 // Symbian 2nd phase constructor can leave. |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 void CSpeechSynthesisTest::ConstructL() |
|
45 { |
|
46 iLog = CStifLogger::NewL( KSpeechSynthesisTestLogPath, |
|
47 KSpeechSynthesisTestLogFile, |
|
48 CStifLogger::ETxt, |
|
49 CStifLogger::EFile, |
|
50 EFalse ); |
|
51 |
|
52 iTester = CSpeechSynthesisTester::NewL( *this ); |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // CSpeechSynthesisTest::NewL |
|
57 // Two-phased constructor. |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 CSpeechSynthesisTest* CSpeechSynthesisTest::NewL( |
|
61 CTestModuleIf& aTestModuleIf ) |
|
62 { |
|
63 CSpeechSynthesisTest* self = new (ELeave) CSpeechSynthesisTest( aTestModuleIf ); |
|
64 |
|
65 CleanupStack::PushL( self ); |
|
66 self->ConstructL(); |
|
67 CleanupStack::Pop( self ); |
|
68 |
|
69 return self; |
|
70 } |
|
71 |
|
72 // Destructor |
|
73 CSpeechSynthesisTest::~CSpeechSynthesisTest() |
|
74 { |
|
75 |
|
76 // Delete resources allocated from test methods |
|
77 Delete(); |
|
78 |
|
79 // Delete logger |
|
80 delete iLog; |
|
81 |
|
82 } |
|
83 |
|
84 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // LibEntryL is a polymorphic Dll entry point. |
|
88 // Returns: CScriptBase: New CScriptBase derived object |
|
89 // ----------------------------------------------------------------------------- |
|
90 // |
|
91 EXPORT_C CScriptBase* LibEntryL( |
|
92 CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework |
|
93 { |
|
94 |
|
95 return ( CScriptBase* ) CSpeechSynthesisTest::NewL( aTestModuleIf ); |
|
96 } |
|
97 |
|
98 // End of File |