|
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 the basic test step for the Software Component Registry test harness |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalComponent |
|
23 @test |
|
24 */ |
|
25 |
|
26 #ifndef SUBSESSIONSTEPS_H |
|
27 #define SUBSESSIONSTEPS_H |
|
28 |
|
29 #include "tscrstep.h" |
|
30 class CScrTestServer; |
|
31 |
|
32 _LIT(KScrComponentRegistrySubsessionStep, "ScrComponentRegistrySubsession"); |
|
33 _LIT(KScrFileListSubsessionStep, "ScrFileListSubsession"); |
|
34 |
|
35 class CScrComponentRegistrySubsessionStep : public CScrTestStep |
|
36 /** |
|
37 TEF test step which exercises the SCR RSoftwareComponentRegistryView interface |
|
38 */ |
|
39 { |
|
40 public: |
|
41 CScrComponentRegistrySubsessionStep(CScrTestServer& aParent); |
|
42 |
|
43 protected: |
|
44 // From CScrTestStep |
|
45 void ImplTestStepPreambleL(); |
|
46 void ImplTestStepL(); |
|
47 void ImplTestStepPostambleL(); |
|
48 private: |
|
49 void TestSingleModeL(const Usif::RSoftwareComponentRegistryView& aSubSession, RPointerArray<Usif::CComponentEntry>& aExpectedEntries); |
|
50 void TestSetModeL(const Usif::RSoftwareComponentRegistryView& aSubSession, TInt aSetSize, RPointerArray<Usif::CComponentEntry>& aExpectedEntries); |
|
51 void VerifyNonReturnedEntriesL(const RPointerArray<Usif::CComponentEntry>& aExpectedEntries); |
|
52 void GetComponentEntriesFromConfigL(RPointerArray<Usif::CComponentEntry>& aEntries); |
|
53 }; |
|
54 |
|
55 class CScrFileListSubsessionStep : public CScrTestStep |
|
56 /** |
|
57 TEF test step which exercises the SCR RSoftwareComponentRegistryFilesList interface |
|
58 */ |
|
59 { |
|
60 public: |
|
61 CScrFileListSubsessionStep(CScrTestServer& aParent); |
|
62 |
|
63 protected: |
|
64 // From CScrTestStep |
|
65 void ImplTestStepPreambleL(); |
|
66 void ImplTestStepL(); |
|
67 void ImplTestStepPostambleL(); |
|
68 private: |
|
69 void TestSingleModeL(const Usif::RSoftwareComponentRegistryFilesList& aSubSession, RPointerArray<HBufC>& expectedFiles); |
|
70 void TestSetModeL(const Usif::RSoftwareComponentRegistryFilesList& aSubSession, TInt aSetSize, RPointerArray<HBufC>& expectedFiles); |
|
71 void VerifyNonReturnedFilesL(const RPointerArray<HBufC>& aExpectedFiles); |
|
72 void ReportUnexpectedFileL(const TDesC& aUnexpectedFileName); |
|
73 }; |
|
74 |
|
75 #endif /* SUBSESSIONSTEPS_H */ |