sl@0
|
1 |
// Copyright (c) 2008-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
|
sl@0
|
20 |
*/
|
sl@0
|
21 |
|
sl@0
|
22 |
#ifndef __T_WSERV_GENERICPLUGIN_STEP_LOAD_H__
|
sl@0
|
23 |
#define __T_WSERV_GENERICPLUGIN_STEP_LOAD_H__
|
sl@0
|
24 |
|
sl@0
|
25 |
#include <fbs.h>
|
sl@0
|
26 |
#include <w32std.h>
|
sl@0
|
27 |
#include <testexecutestepbase.h>
|
sl@0
|
28 |
#include "t_wservgenericpluginconsts.h"
|
sl@0
|
29 |
|
sl@0
|
30 |
class CT_WServGenericpluginStepLoad : public CTestStep
|
sl@0
|
31 |
{
|
sl@0
|
32 |
public:
|
sl@0
|
33 |
CT_WServGenericpluginStepLoad();
|
sl@0
|
34 |
~CT_WServGenericpluginStepLoad();
|
sl@0
|
35 |
// from CTestStep
|
sl@0
|
36 |
virtual enum TVerdict doTestStepPreambleL();
|
sl@0
|
37 |
virtual enum TVerdict doTestStepL();
|
sl@0
|
38 |
virtual enum TVerdict doTestStepPostambleL();
|
sl@0
|
39 |
|
sl@0
|
40 |
private:
|
sl@0
|
41 |
void CreateRWindowL(const RWindowGroup& aWinGroup, RWindow& aWin, const TPoint& aPos=TPoint(0,0), const TRgb& aBkgdColor=TRgb(0x800000FF), const TSize& aWinSize=TSize(KTempWindowWidth,KTempWindowHeight), const TUint32 aHandle = KNullWsHandle );
|
sl@0
|
42 |
void DrawShape(RWindow& aWin);
|
sl@0
|
43 |
TBool CompareDisplayL(CWsScreenDevice* aScreen, CFbsBitmap* aBitmap);
|
sl@0
|
44 |
void CalcAbsRect(TSize& aAbsRect, const TPoint& aPos, const TSize& aWinSize);
|
sl@0
|
45 |
// Test cases
|
sl@0
|
46 |
void GraphicsWservGenericpluginLoadL();
|
sl@0
|
47 |
void GraphicsWservGenericpluginLoad1L();
|
sl@0
|
48 |
void GraphicsWservGenericpluginLoad2L();
|
sl@0
|
49 |
void GraphicsWservGenericpluginLoad3L();
|
sl@0
|
50 |
void GraphicsWservGenericpluginLoad4L();
|
sl@0
|
51 |
void GraphicsWservGenericpluginLoad5L();
|
sl@0
|
52 |
TInt CheckLogL(TDesC8& aMsg);
|
sl@0
|
53 |
|
sl@0
|
54 |
private: // Data members
|
sl@0
|
55 |
TInt iTestId;
|
sl@0
|
56 |
TDisplayMode iDisplayMode;
|
sl@0
|
57 |
CWindowGc* iGc;
|
sl@0
|
58 |
CWsScreenDevice* iScreen;
|
sl@0
|
59 |
RWsSession iWsSession;
|
sl@0
|
60 |
RWindowGroup iWinGroup;
|
sl@0
|
61 |
CWsScreenDevice* iScreen1;
|
sl@0
|
62 |
RWindowGroup iWinGroup1;
|
sl@0
|
63 |
CFbsBitmap* iDefaultPluginBmp;
|
sl@0
|
64 |
CFbsBitmap* iTestPluginBmp;
|
sl@0
|
65 |
CFbsBitmap* iTestPluginBmp1;
|
sl@0
|
66 |
};
|
sl@0
|
67 |
|
sl@0
|
68 |
#endif // __T_WSERV_GENERICPLUGIN_STEP_LOAD_H__
|