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