|
1 /** |
|
2 * Copyright (c) 2008-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file CServerDataSourceWrapper.h |
|
22 @internalTechnology |
|
23 @prototype |
|
24 */ |
|
25 |
|
26 #ifndef __CSERVERDATASOURCEWRAPPER_H__ |
|
27 #define __CSERVERDATASOURCEWRAPPER_H__ |
|
28 |
|
29 #include <datawrapper.h> |
|
30 #include <rm_debug_api.h> |
|
31 |
|
32 #include "servercrashdatasource.h" |
|
33 |
|
34 using namespace Debug; |
|
35 |
|
36 /** |
|
37 This is the version of the security server that we have developed our code against |
|
38 and it comes from the interface definition of the DSS at the time of compilation. |
|
39 */ |
|
40 const TVersion dssVersion( |
|
41 KDebugServMajorVersionNumber, |
|
42 KDebugServMinorVersionNumber, |
|
43 KDebugServPatchVersionNumber ); |
|
44 |
|
45 _LIT(KCrashAppFileName,"Z:\\sys\\bin\\crashapp.exe"); |
|
46 |
|
47 const TInt KTraceSizeFromCrashApp = 2560; |
|
48 /** |
|
49 * This class is responsible for testing our CFlashDataSource class |
|
50 */ |
|
51 class CServerDataSourceWrapper : public CDataWrapper |
|
52 { |
|
53 |
|
54 public: |
|
55 |
|
56 ~CServerDataSourceWrapper(); |
|
57 |
|
58 static CServerDataSourceWrapper* NewL(); |
|
59 |
|
60 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
61 virtual TAny* GetObject() { return iObject; } |
|
62 virtual void SetObjectL(TAny* aObject); |
|
63 |
|
64 protected: |
|
65 void ConstructL(); |
|
66 |
|
67 private: |
|
68 |
|
69 /** Constructor */ |
|
70 CServerDataSourceWrapper(); |
|
71 |
|
72 /** Tests GetAvailableTraceSizeL */ |
|
73 void DoCmdGetAvailableTraceSizeL_TestL(); |
|
74 |
|
75 void PrepareTestL(); |
|
76 |
|
77 private: |
|
78 |
|
79 /** Object to be tested */ |
|
80 CServerCrashDataSource* iObject; |
|
81 |
|
82 /** Handle to debug security server */ |
|
83 RSecuritySvrSession iSecSess; |
|
84 |
|
85 }; |
|
86 #endif // __CFLASHDATASOURCEWRAPPER_H__ |