|
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 "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 |
|
18 /** |
|
19 @file |
|
20 @test |
|
21 @internalComponent - Internal Symbian test code |
|
22 */ |
|
23 |
|
24 #if (!defined __T_SERVICEBASESTEP_H__) |
|
25 #define __T_SERVICEBASESTEP_H__ |
|
26 |
|
27 #include <apaserverapp.h> |
|
28 #include <apgcli.h> |
|
29 #include "apparctestserver.h" |
|
30 |
|
31 |
|
32 // RTstServiceApp |
|
33 |
|
34 class RTstServiceApp : public RApaAppServiceBase |
|
35 { |
|
36 public: |
|
37 static TInt DoTestTransferSessionL(TUid aServiceUid, TBool aPassingFileByHandle, const TDesC& aFileNameWithoutDriveOrPath); |
|
38 static TInt DoTestTransferSessionAndBackL(TUid aServiceUid, TBool aPassingFileByHandle, const TDesC& aFileNameWithoutDriveOrPath); |
|
39 static TInt DoTestTransferWithUnconnectedSessionL(TUid aServiceUid, TBool aPassingFileByHandle, const TDesC& aFileNameWithoutDriveOrPath); |
|
40 RTstServiceApp(TUid aServiceUid); |
|
41 void ConnectL(); |
|
42 void ReceiveTestResult(TRequestStatus& aRequestStatus, TBool aPassingFileByHandle, const TDesC& aFileNameWithoutDriveOrPath); |
|
43 // from RApaAppServiceBase |
|
44 virtual TUid ServiceUid() const; |
|
45 private: |
|
46 const TUid iServiceUid; |
|
47 }; |
|
48 |
|
49 |
|
50 |
|
51 // CT_ServiceBaseStep test class. |
|
52 |
|
53 class CT_ServiceBaseStep : public CTestStep |
|
54 { |
|
55 public: |
|
56 CT_ServiceBaseStep(); |
|
57 ~CT_ServiceBaseStep(); |
|
58 |
|
59 virtual TVerdict doTestStepPreambleL(); |
|
60 virtual TVerdict doTestStepPostambleL(); |
|
61 virtual TVerdict doTestStepL(); |
|
62 |
|
63 private: |
|
64 void TestServiceAppL(RApaLsSession& aApparcServer, RFs& aFileServer); |
|
65 void TestPanicWithWrongInstanceL(); |
|
66 void OpenFileLC(RFile& aFile, RFs& aFileServer, const TDesC& aFullFileName); |
|
67 void ClosePanicWindowL(); |
|
68 void TestTransferBackL(RApaLsSession& aApparcServer, RFs& aFileServer); |
|
69 void TestTransferWithUnconnectedSessionL(); |
|
70 }; |
|
71 |
|
72 _LIT(KT_ServiceBaseStep,"T_ServiceBase"); |
|
73 |
|
74 #endif |