|
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 __TBITBLTMASKEDBASE_H__ |
|
23 #define __TBITBLTMASKEDBASE_H__ |
|
24 |
|
25 #include "tbitbltbase.h" |
|
26 |
|
27 |
|
28 /** |
|
29 Mask types |
|
30 */ |
|
31 enum TMaskType |
|
32 { |
|
33 EMaskL1, |
|
34 EMaskL1Inv, |
|
35 EMaskL8, |
|
36 EMaskIterationEnd |
|
37 }; |
|
38 |
|
39 /** |
|
40 Base class for BitBltMasked() family tests. |
|
41 */ |
|
42 class CTBitBltMaskedBase : public CTBitBltBase |
|
43 { |
|
44 public: |
|
45 CTBitBltMaskedBase(); |
|
46 ~CTBitBltMaskedBase(); |
|
47 |
|
48 protected: |
|
49 // base tests |
|
50 void TestPositioningBaseL(const TDesC& aTestName, TBitBltFuncType aFunc); |
|
51 void TestInvalidParametersBaseL(const TDesC& /*aTestName*/, TBitBltFuncType aFunc); |
|
52 void TestSourceBitmapCloningBaseL(const TDesC& aTestName, TBitBltFuncType aFunc); |
|
53 void TestMaskCloningBaseL(const TDesC& aTestName, TBitBltFuncType aFunc); |
|
54 |
|
55 // helper functions |
|
56 TInt WriteTargetOutput(TPtrC aTestCaseName); |
|
57 void CreateBitmapsL(TUidPixelFormat aPixelFormat); |
|
58 void DeleteBitmaps(); |
|
59 |
|
60 // iterate mask type |
|
61 void BeginMaskIteration(); |
|
62 TBool NextMaskIteration(); |
|
63 |
|
64 protected: |
|
65 CFbsBitmap* iNotInitialisedMask; |
|
66 CFbsBitmap* iZeroSizeMask; |
|
67 CFbsBitmap* iMask1L1; |
|
68 CFbsBitmap* iMask2L1; |
|
69 CFbsBitmap* iMask1L8; |
|
70 CFbsBitmap* iMask2L8; |
|
71 CFbsBitmap* iCompressedMaskL8; |
|
72 CFbsBitmap* iBlackWhiteBitmap; |
|
73 |
|
74 TInt iMaskType; |
|
75 TUidPixelFormat iMaskPixelFormat; |
|
76 TBool iInvertMask; |
|
77 CFbsBitmap* iCurrentMask1; |
|
78 CFbsBitmap* iCurrentMask2; |
|
79 }; |
|
80 |
|
81 #endif |