|
1 // Copyright (c) 2007-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 #ifndef TDIRECTGDITARGET_H_ |
|
23 #define TDIRECTGDITARGET_H_ |
|
24 |
|
25 #include "tdirectgdi_test_step_base.h" |
|
26 |
|
27 /** |
|
28 This class contains all the test cases related to DirectGdi Contexts and targets, without using the test framework, |
|
29 to improve the coverage results for OOM tests. |
|
30 */ |
|
31 class CTDirectGdiContextTarget : public CTDirectGdiStepBase |
|
32 { |
|
33 public: |
|
34 CTDirectGdiContextTarget(); |
|
35 ~CTDirectGdiContextTarget(); |
|
36 |
|
37 private: |
|
38 virtual TVerdict doTestStepPreambleL(); |
|
39 virtual TVerdict doTestStepL(); |
|
40 void TestSwitchingTargetsL(); |
|
41 void TestRSgImageMetadataIntegrityL(); |
|
42 void TestCreateCloseSourceTargetInvalidParametersL(); |
|
43 |
|
44 // Helper functions |
|
45 TBool CompareInfos(const TSgImageInfo& info1, const TSgImageInfo& info2); |
|
46 |
|
47 // from CTDirectGdiStepBase |
|
48 void RunTestsL(); |
|
49 }; |
|
50 |
|
51 _LIT(KTDirectGdiContextTargetStep,"TDirectGdiContextTarget"); |
|
52 |
|
53 #endif /*TDIRECTGDITARGET_H_*/ |