|
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 the License "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 * Defines test steps for the install log retrieving interface in the Software Component Registry |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalComponent |
|
23 @test |
|
24 */ |
|
25 |
|
26 #ifndef INSTALLLOGHISTORYSTEPS_H |
|
27 #define INSTALLLOGHISTORYSTEPS_H |
|
28 |
|
29 #include "tscrstep.h" |
|
30 #include "tscraccessor_client.h" |
|
31 class CScrTestServer; |
|
32 class Usif::CScrLogEntry; |
|
33 |
|
34 _LIT(KScrGetLogEntriesStep, "SCRGetLogEntries"); |
|
35 _LIT(KScrSetLogFileReadOnlyAttrStep, "SCRSetLogFileReadOnlyAttr"); |
|
36 _LIT(KScrCreateLogFileStep, "SCRCreateLogFile"); |
|
37 |
|
38 class CScrGetLogEntriesStep : public CScrTestStep |
|
39 /** |
|
40 TEF test step which exercises the SCR RetrieveLogEntriesL interface |
|
41 */ |
|
42 { |
|
43 public: |
|
44 CScrGetLogEntriesStep(CScrTestServer& aParent); |
|
45 |
|
46 protected: |
|
47 // From CScrTestStep |
|
48 void ImplTestStepPreambleL(); |
|
49 void ImplTestStepL(); |
|
50 void ImplTestStepPostambleL(); |
|
51 |
|
52 private: |
|
53 void GetLogEntriesFromConfigL(RPointerArray<Usif::CScrLogEntry>& aLogEntries); |
|
54 TBool CompareLogEntriesL(RPointerArray<Usif::CScrLogEntry>& aFoundLogEntries, RPointerArray<Usif::CScrLogEntry>& aExpectedLogEntries); |
|
55 }; |
|
56 |
|
57 class CScrSetLogFileReadOnlyAttrStep : public CScrTestStep |
|
58 /** |
|
59 TEF test step sets the SCR log file's readonly attribute. |
|
60 */ |
|
61 { |
|
62 public: |
|
63 CScrSetLogFileReadOnlyAttrStep(CScrTestServer& aParent); |
|
64 |
|
65 protected: |
|
66 // From CScrTestStep |
|
67 void ImplTestStepPreambleL(); |
|
68 void ImplTestStepL(); |
|
69 void ImplTestStepPostambleL(); |
|
70 }; |
|
71 |
|
72 class CScrCreateLogFileStep : public CScrTestStep |
|
73 /** |
|
74 TEF test step creates a log file including a preset number of records. |
|
75 */ |
|
76 { |
|
77 public: |
|
78 CScrCreateLogFileStep(CScrTestServer& aParent); |
|
79 |
|
80 protected: |
|
81 // From CScrTestStep |
|
82 void ImplTestStepPreambleL(); |
|
83 void ImplTestStepL(); |
|
84 void ImplTestStepPostambleL(); |
|
85 }; |
|
86 |
|
87 #endif /* INSTALLLOGHISTORYSTEPS_H */ |