|
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 "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 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #if (!defined __T_SERVICEBASESTEP_H__) |
|
23 #define __T_SERVICEBASESTEP_H__ |
|
24 |
|
25 #include <apaserverapp.h> |
|
26 #include <apgcli.h> |
|
27 #include "apparctestserver.h" |
|
28 |
|
29 |
|
30 // RTstServiceApp |
|
31 |
|
32 class RTstServiceApp : public RApaAppServiceBase |
|
33 { |
|
34 public: |
|
35 static TInt DoTestTransferSessionL(TUid aServiceUid, TBool aPassingFileByHandle, const TDesC& aFileNameWithoutDriveOrPath); |
|
36 static TInt DoTestTransferSessionAndBackL(TUid aServiceUid, TBool aPassingFileByHandle, const TDesC& aFileNameWithoutDriveOrPath); |
|
37 static TInt DoTestTransferWithUnconnectedSessionL(TUid aServiceUid, TBool aPassingFileByHandle, const TDesC& aFileNameWithoutDriveOrPath); |
|
38 RTstServiceApp(TUid aServiceUid); |
|
39 void ConnectL(); |
|
40 void ReceiveTestResult(TRequestStatus& aRequestStatus, TBool aPassingFileByHandle, const TDesC& aFileNameWithoutDriveOrPath); |
|
41 // from RApaAppServiceBase |
|
42 virtual TUid ServiceUid() const; |
|
43 private: |
|
44 const TUid iServiceUid; |
|
45 }; |
|
46 |
|
47 |
|
48 |
|
49 // CT_ServiceBaseStep test class. |
|
50 |
|
51 class CT_ServiceBaseStep : public CTestStep |
|
52 { |
|
53 public: |
|
54 CT_ServiceBaseStep(); |
|
55 ~CT_ServiceBaseStep(); |
|
56 |
|
57 virtual TVerdict doTestStepPreambleL(); |
|
58 virtual TVerdict doTestStepPostambleL(); |
|
59 virtual TVerdict doTestStepL(); |
|
60 |
|
61 private: |
|
62 void TestServiceAppL(RApaLsSession& aApparcServer, RFs& aFileServer); |
|
63 void TestPanicWithWrongInstanceL(); |
|
64 void OpenFileLC(RFile& aFile, RFs& aFileServer, const TDesC& aFullFileName); |
|
65 void ClosePanicWindowL(); |
|
66 void TestTransferBackL(RApaLsSession& aApparcServer, RFs& aFileServer); |
|
67 void TestTransferWithUnconnectedSessionL(); |
|
68 }; |
|
69 |
|
70 _LIT(KT_ServiceBaseStep,"T_ServiceBase"); |
|
71 |
|
72 #endif |