|
1 // Copyright (c) 2005-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 "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 // Tests embedding feature of the application. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent - Internal Symbian test code |
|
21 */ |
|
22 |
|
23 #ifndef __PACKAGESTARTER_H |
|
24 #define __PACKAGESTARTER_H |
|
25 |
|
26 |
|
27 #include "appfwk_test_AppUi.h" |
|
28 #include "messageactive.h" |
|
29 #include "messageprovider.h" |
|
30 |
|
31 _LIT(KTestPackageStep, "TPackage"); |
|
32 |
|
33 class CTestPackageStep; |
|
34 |
|
35 //! A CTestPackageStep test step class |
|
36 /** |
|
37 Class tests embedding feature of the application. |
|
38 */ |
|
39 class CTestPackageStep : public MMessageProvider, public CTmsTestStep |
|
40 { |
|
41 public: |
|
42 CTestPackageStep(); |
|
43 ~CTestPackageStep(); |
|
44 virtual TVerdict doTestStepL(); |
|
45 void ConstructAppL(CEikonEnv* aCoe); |
|
46 |
|
47 public: // from MMessageProvider |
|
48 virtual CMessageActive* Message() |
|
49 { |
|
50 return iMessage; |
|
51 } |
|
52 |
|
53 virtual RSemaphore& Semaphore() |
|
54 { |
|
55 return semaphore; |
|
56 } |
|
57 |
|
58 RSemaphore semaphore; |
|
59 TInt StartThread(); |
|
60 CMessageActive *iMessage; |
|
61 }; |
|
62 |
|
63 #endif |
|
64 |
|
65 |