|
1 // |
|
2 // Copyright (c) 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 * @file TE_EncrptStep.cpp.h |
|
20 * |
|
21 * This defines the CTS_EncrptStep class which is the base class for all |
|
22 * the EncrptStep test step classes |
|
23 * |
|
24 */ |
|
25 |
|
26 #if (!defined __TE_USECASESSTEP_H__) |
|
27 #define __TE_USECASESSTEP_H__ |
|
28 |
|
29 #include <e32std.h> |
|
30 #include <e32svr.h> |
|
31 #include <cdbstore.h> |
|
32 |
|
33 #include "TE_UseCasesServer.h" |
|
34 |
|
35 // Connection Configuration Lits |
|
36 _LIT(KNameDefault, "default"); |
|
37 |
|
38 // Test step names |
|
39 _LIT(KCreatingDatabaseAndView, "CreatingDatabaseAndView"); |
|
40 _LIT(KUsecaseReading, "UsecaseReading"); |
|
41 _LIT(KUsecaseWriting, "UsecaseWriting"); |
|
42 _LIT(KUsecaseOverridingATableEntry , "UsecaseOverridingATableEntry"); |
|
43 _LIT(KUsecaseOverridingThePreferenceTable , "UsecaseOverridingThePreferenceTable"); |
|
44 _LIT(KUsecaseUsingATemplate , "UsecaseUsingATemplate"); |
|
45 |
|
46 //Error strings |
|
47 _LIT(KEGeneric, "Test left!"); |
|
48 |
|
49 class TGlobalData; |
|
50 class CTE_UseCasesSuite; |
|
51 |
|
52 /* CTE_ConnPrefStep class declaration |
|
53 * Provides the base class for all ConnPref test steps |
|
54 * |
|
55 */ |
|
56 class CTE_UseCasesStep : public CTestStep |
|
57 { |
|
58 public: |
|
59 CTE_UseCasesStep(); |
|
60 virtual ~CTE_UseCasesStep(); |
|
61 enum TVerdict Test(TInt aResult); |
|
62 |
|
63 void ExpLogExtra(const TText8* aFile, TInt aLine, TInt aSeverity, |
|
64 TRefByValue<const TDesC> aFmt,...); |
|
65 |
|
66 //TGlobalData* iGlobals; |
|
67 |
|
68 TGlobalData* Get(); |
|
69 void Set(TGlobalData * aGlobals); |
|
70 |
|
71 CTE_UseCasesSuite* iOwnerSuite; ///< Pointer to suite which owns this test step |
|
72 |
|
73 }; |
|
74 |
|
75 class TGlobalData |
|
76 { |
|
77 public: |
|
78 CCommsDbTableView* iView; |
|
79 CCommsDatabase* iDb; |
|
80 }; |
|
81 |
|
82 #endif /* __TE_USECASESSTEP_H__ */ |