1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __SYMBIANUNITTESTLDDCTL_H |
|
17 #define __SYMBIANUNITTESTLDDCTL_H |
|
18 |
|
19 #include <e32base.h> |
|
20 #include "symbianunittestlddif.h" |
|
21 #include "symbianunittestresult.h" |
|
22 #include "symbianunittestobserver.h" |
|
23 |
|
24 |
|
25 _LIT(KKInstallLddName,"symbianunittest"); |
|
26 |
|
27 |
|
28 class CSymbianUnitTestLddCtl : public CBase |
|
29 { |
|
30 public: // Constructors and destructor |
|
31 |
|
32 static CSymbianUnitTestLddCtl* NewLC(const TDesC& aDriverName); |
|
33 static CSymbianUnitTestLddCtl* NewL(const TDesC& aDriverName); |
|
34 ~CSymbianUnitTestLddCtl(); |
|
35 |
|
36 public: // New functions |
|
37 TInt LoadDriver(); |
|
38 TInt ExecuteLddTests( |
|
39 MSymbianUnitTestObserver& aObserver, |
|
40 CSymbianUnitTestResult& aResult); |
|
41 TInt FreeDriver(); |
|
42 TInt GetTestCaseNames(CDesCArray& aTestCaseNames); |
|
43 |
|
44 private: // Constructors |
|
45 CSymbianUnitTestLddCtl(); |
|
46 void ConstructL(const TDesC& aDriverName); |
|
47 |
|
48 private: // Data |
|
49 |
|
50 HBufC* iDriverName; |
|
51 RSymbianUnitTest iLddconn; |
|
52 }; |
|
53 |
|
54 #endif __SYMBIANUNITTESTLDDCTL_H |
|