sl@0
|
1 |
// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
//
|
sl@0
|
3 |
// Permission is hereby granted, free of charge, to any person obtaining a
|
sl@0
|
4 |
// copy of this software and/or associated documentation files (the
|
sl@0
|
5 |
// "Materials"), to deal in the Materials without restriction, including
|
sl@0
|
6 |
// without limitation the rights to use, copy, modify, merge, publish,
|
sl@0
|
7 |
// distribute, sublicense, and/or sell copies of the Materials, and to
|
sl@0
|
8 |
// permit persons to whom the Materials are furnished to do so, subject to
|
sl@0
|
9 |
// the following conditions:
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// The above copyright notice and this permission notice shall be included
|
sl@0
|
12 |
// in all copies or substantial portions of the Materials.
|
sl@0
|
13 |
//
|
sl@0
|
14 |
// THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
sl@0
|
15 |
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
sl@0
|
16 |
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
sl@0
|
17 |
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
sl@0
|
18 |
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
sl@0
|
19 |
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
sl@0
|
20 |
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
sl@0
|
21 |
//
|
sl@0
|
22 |
// Description:
|
sl@0
|
23 |
//
|
sl@0
|
24 |
|
sl@0
|
25 |
#ifndef TSCREENINTERFACE_H
|
sl@0
|
26 |
#define TSCREENINTERFACE_H
|
sl@0
|
27 |
|
sl@0
|
28 |
// INCLUDES
|
sl@0
|
29 |
#include <test/tefunit.h>
|
sl@0
|
30 |
#include <w32std.h>
|
sl@0
|
31 |
#include <khronos_types.h>
|
sl@0
|
32 |
#include <graphics/symbianstream.h>
|
sl@0
|
33 |
#include "streamutility.h"
|
sl@0
|
34 |
|
sl@0
|
35 |
class CTestExecuteLogger;
|
sl@0
|
36 |
class CSurfaceStream;
|
sl@0
|
37 |
/**
|
sl@0
|
38 |
* CTestScreenInterface
|
sl@0
|
39 |
*
|
sl@0
|
40 |
*/
|
sl@0
|
41 |
class CTestScreenInterface : public CTestFixture
|
sl@0
|
42 |
{
|
sl@0
|
43 |
public:
|
sl@0
|
44 |
CTestScreenInterface();
|
sl@0
|
45 |
~CTestScreenInterface();
|
sl@0
|
46 |
|
sl@0
|
47 |
virtual void SetupL();
|
sl@0
|
48 |
virtual void TearDownL();
|
sl@0
|
49 |
void TearDown();
|
sl@0
|
50 |
static CTestSuite* CreateSuiteL(const TDesC& aName);
|
sl@0
|
51 |
|
sl@0
|
52 |
enum TCacheAttribute
|
sl@0
|
53 |
{
|
sl@0
|
54 |
/** not CPU cached */
|
sl@0
|
55 |
ENotCached = 0,
|
sl@0
|
56 |
/** CPU cached */
|
sl@0
|
57 |
ECached = 1,
|
sl@0
|
58 |
/** Not listed */
|
sl@0
|
59 |
ECacheNotlisted = 2
|
sl@0
|
60 |
};
|
sl@0
|
61 |
|
sl@0
|
62 |
enum TContiguousFlag
|
sl@0
|
63 |
{
|
sl@0
|
64 |
ENonContiguous = 0,
|
sl@0
|
65 |
EContiguous = 1,
|
sl@0
|
66 |
EFlagNotListed = 2
|
sl@0
|
67 |
};
|
sl@0
|
68 |
|
sl@0
|
69 |
private:
|
sl@0
|
70 |
void ReadIniData();
|
sl@0
|
71 |
TInt BaseTestContiguousFlag(TBool aContiguous);
|
sl@0
|
72 |
// Private tests
|
sl@0
|
73 |
void GRAPHICS_OPENWFC_SCREENINTERFACE_0100L();
|
sl@0
|
74 |
void GRAPHICS_OPENWFC_SCREENINTERFACE_0101L();
|
sl@0
|
75 |
void GRAPHICS_OPENWFC_SCREENINTERFACE_0102L();
|
sl@0
|
76 |
void GRAPHICS_OPENWFC_SCREENINTERFACE_0103L();
|
sl@0
|
77 |
void GRAPHICS_OPENWFC_SCREENINTERFACE_0104L();
|
sl@0
|
78 |
void GRAPHICS_OPENWFC_SCREENINTERFACE_0105L();
|
sl@0
|
79 |
void GRAPHICS_OPENWFC_SCREENINTERFACE_0106L();
|
sl@0
|
80 |
void GRAPHICS_OPENWFC_SCREENINTERFACE_0107L();
|
sl@0
|
81 |
void GRAPHICS_OPENWFC_SCREENINTERFACE_0108L();
|
sl@0
|
82 |
void GRAPHICS_OPENWFC_SCREENINTERFACE_0109L();
|
sl@0
|
83 |
|
sl@0
|
84 |
private:
|
sl@0
|
85 |
CStreamUtility* iUtility;
|
sl@0
|
86 |
TRgb iRed, iGreen, iBlue;
|
sl@0
|
87 |
TInt iFastpathableWidth;
|
sl@0
|
88 |
TInt iFastpathableHeight;
|
sl@0
|
89 |
TInt iStride;
|
sl@0
|
90 |
TContiguousFlag iContiguous;
|
sl@0
|
91 |
TUidPixelFormat iFastpathablePixelFormat;
|
sl@0
|
92 |
TUidPixelFormat iNonFastpathablePixelFormat;
|
sl@0
|
93 |
TInt iOffsetToFirstBuffer;
|
sl@0
|
94 |
TInt iAlignment;
|
sl@0
|
95 |
TBool iMappable;
|
sl@0
|
96 |
TInt iMaxBuffers;
|
sl@0
|
97 |
TInt iMinBuffers;
|
sl@0
|
98 |
TCacheAttribute iCacheAttrib;
|
sl@0
|
99 |
TInt iOffsetBetweenBuffers;
|
sl@0
|
100 |
|
sl@0
|
101 |
};
|
sl@0
|
102 |
|
sl@0
|
103 |
#endif // TSCREENINTERFACE_H
|