|
1 // Copyright (c) 2008-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 #ifndef TEXTENDEDBITMAPNEGATIVE_H |
|
17 #define TEXTENDEDBITMAPNEGATIVE_H |
|
18 |
|
19 #include "tfbsbase.h" |
|
20 |
|
21 /** Class containing negative tests for extended bitmaps. Negative tests include |
|
22 passing bad parameters to methods used with extended bitmaps, and creating extended |
|
23 bitmaps with no FbsSession. |
|
24 */ |
|
25 class CTExtendedBitmapNegative : public CTFbsBase |
|
26 { |
|
27 public: |
|
28 CTExtendedBitmapNegative(CTestStep* aStep); |
|
29 ~CTExtendedBitmapNegative(); |
|
30 |
|
31 protected: |
|
32 // From CTFbsBase |
|
33 virtual void RunFbsTestL(TInt aCurTestCase); |
|
34 |
|
35 private: |
|
36 static TInt CreateWithoutFbsSessionStart(TAny* aInfo); |
|
37 |
|
38 // CreateExtendedBitmap() tests |
|
39 void CreateWithoutFbsSessionL(); |
|
40 void CreateBadPixelSizeL(); |
|
41 void CreateBadDisplayModeL(); |
|
42 void CreateRestrictedUidL(); |
|
43 void CreateNullDataL(); |
|
44 void CreateBadDataSizeL(); |
|
45 |
|
46 // ExtendedBitmapType() tests |
|
47 void TypeUninitialisedBitmapL(); |
|
48 void TypeStandardBitmapL(); |
|
49 void TypeHardwareBitmapL(); |
|
50 |
|
51 // DataSize() tests |
|
52 void SizeUninitialisedBitmapL(); |
|
53 }; |
|
54 |
|
55 |
|
56 class CTExtendedBitmapNegativeStep : public CTGraphicsStep |
|
57 { |
|
58 public: |
|
59 CTExtendedBitmapNegativeStep(); |
|
60 |
|
61 protected: |
|
62 //from CTGraphicsStep |
|
63 virtual CTGraphicsBase* CreateTestL(); |
|
64 }; |
|
65 |
|
66 _LIT(KTExtendedBitmapNegativeStep,"TExtendedBitmapNegative"); |
|
67 |
|
68 #endif // TEXTENDEDBITMAPNEGATIVE_H |