sl@0
|
1 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
/**
|
sl@0
|
17 |
@file
|
sl@0
|
18 |
@test
|
sl@0
|
19 |
@internalComponent - Internal Symbian test code
|
sl@0
|
20 |
*/
|
sl@0
|
21 |
|
sl@0
|
22 |
#ifndef __TFADEPERF_H__
|
sl@0
|
23 |
#define __TFADEPERF_H__
|
sl@0
|
24 |
|
sl@0
|
25 |
#include "te_graphicsperformanceSuiteStepBase.h"
|
sl@0
|
26 |
#include <w32std.h>
|
sl@0
|
27 |
|
sl@0
|
28 |
class CTFadePerf : public CTe_graphicsperformanceSuiteStepBase
|
sl@0
|
29 |
{
|
sl@0
|
30 |
public:
|
sl@0
|
31 |
CTFadePerf();
|
sl@0
|
32 |
~CTFadePerf();
|
sl@0
|
33 |
|
sl@0
|
34 |
private:
|
sl@0
|
35 |
void FadeOpaqueSingleWindowRepeatedlyL();
|
sl@0
|
36 |
void FadeTransparentSingleWindowRecordFadeL();
|
sl@0
|
37 |
void FadeTransparentSingleWindowRecordUnfadeL();
|
sl@0
|
38 |
void FadeOpaqueSingleWindowRecordFadeL();
|
sl@0
|
39 |
void FadeOpaqueSingleWindowRecordUnfadeL();
|
sl@0
|
40 |
|
sl@0
|
41 |
void FadeOpaqueWindowsBehindRepeatedlyL();
|
sl@0
|
42 |
void FadeTransparentWindowsBehindRecordFadeL();
|
sl@0
|
43 |
void FadeTransparentWindowsBehindRecordUnfadeL();
|
sl@0
|
44 |
void FadeOpaqueWindowsBehindRecordFadeL();
|
sl@0
|
45 |
void FadeOpaqueWindowsBehindRecordUnfadeL();
|
sl@0
|
46 |
|
sl@0
|
47 |
void SetSystemFadedRepeatedlyL();
|
sl@0
|
48 |
void SetSystemFadedTransparentWindowsRecordFadeL();
|
sl@0
|
49 |
void SetSystemFadedTransparentWindowsRecordUnfadeL();
|
sl@0
|
50 |
void SetSystemFadedOpaqueWindowsRecordFadeL();
|
sl@0
|
51 |
void SetSystemFadedOpaqueWindowsRecordUnfadeL();
|
sl@0
|
52 |
|
sl@0
|
53 |
void SetNonFadingRepeatedlyL();
|
sl@0
|
54 |
void SetNonFadingTransparentWindowsRecordFadeL();
|
sl@0
|
55 |
void SetNonFadingTransparentWindowsRecordUnfadeL();
|
sl@0
|
56 |
void SetNonFadingOpaqueWindowsRecordFadeL();
|
sl@0
|
57 |
void SetNonFadingOpaqueWindowsRecordUnfadeL();
|
sl@0
|
58 |
|
sl@0
|
59 |
// From CTestStep
|
sl@0
|
60 |
TVerdict doTestStepPreambleL();
|
sl@0
|
61 |
TVerdict doTestStepPostambleL();
|
sl@0
|
62 |
TVerdict doTestStepL();
|
sl@0
|
63 |
|
sl@0
|
64 |
void SetUpWindowEnvironmentL();
|
sl@0
|
65 |
void ConstructSingleWindowL(TBool aUseTransparency);
|
sl@0
|
66 |
void ConstructArrayOfWindowsL(TBool aUseTransparency, TBool aNonFadeHalfWindows);
|
sl@0
|
67 |
void ReleaseWindowsAndEnvironment(TBool aIsSingleWindow);
|
sl@0
|
68 |
|
sl@0
|
69 |
enum TConstants
|
sl@0
|
70 |
{ENumWins = 40,};
|
sl@0
|
71 |
RWsSession iWs;
|
sl@0
|
72 |
CWsScreenDevice* iWsScreenDev;
|
sl@0
|
73 |
RWindowGroup* iWinGroup;
|
sl@0
|
74 |
RWindow* iWins[ENumWins];
|
sl@0
|
75 |
RWindow* iSingleWin;
|
sl@0
|
76 |
};
|
sl@0
|
77 |
|
sl@0
|
78 |
_LIT(KTFadePerfName,"tfadeperf");
|
sl@0
|
79 |
|
sl@0
|
80 |
#endif
|