|
1 // Copyright (c) 2004-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 #if !defined(__TSCDVTEST_H__) |
|
17 #define __TSCDVTEST_H__ |
|
18 |
|
19 #include "TGraphicsHarness.h" |
|
20 |
|
21 class CTScdv : public CTGraphicsBase |
|
22 { |
|
23 public: |
|
24 CTScdv(CTestStep* aStep); |
|
25 protected: |
|
26 //from CTGraphicsStep |
|
27 virtual void RunTestCaseL(TInt aCurTestCase); |
|
28 private: |
|
29 inline TInt ByteSize(const TSize& aSize, TDisplayMode aDisplayMode); |
|
30 TBool CreateScreenDeviceLC(TInt aScreenNo, |
|
31 TDisplayMode aDisplayMode, |
|
32 CFbsDrawDevice*& aScreenDevice); |
|
33 TAny* InitScreenDeviceLC(CFbsDrawDevice* aScreenDevice, |
|
34 TDisplayMode aDisplayMode); |
|
35 void TestScreenDeviceCreationL(); |
|
36 void TestBitmapDeviceCreationL(); |
|
37 }; |
|
38 |
|
39 class CTScdvStep : public CTGraphicsStep |
|
40 { |
|
41 public: |
|
42 CTScdvStep(); |
|
43 protected: |
|
44 //from CTGraphicsStep |
|
45 virtual CTGraphicsBase* CreateTestL(); |
|
46 virtual void TestSetupL(); |
|
47 }; |
|
48 |
|
49 _LIT(KTScdvStep,"TScdv"); |
|
50 |
|
51 |
|
52 #endif |
|
53 |