sl@0
|
1 |
// Copyright (c) 2007-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 |
@internalComponent
|
sl@0
|
19 |
@test
|
sl@0
|
20 |
*/
|
sl@0
|
21 |
|
sl@0
|
22 |
#ifndef TDIRECTGDICONTEXT_H
|
sl@0
|
23 |
#define TDIRECTGDICONTEXT_H
|
sl@0
|
24 |
|
sl@0
|
25 |
|
sl@0
|
26 |
#include "tdirectgdi_test_step_base.h"
|
sl@0
|
27 |
|
sl@0
|
28 |
_LIT(KSamePixelType, "_SamePixelType");
|
sl@0
|
29 |
_LIT(KDifferentPixelType, "_DiffPixelType");
|
sl@0
|
30 |
_LIT(KTarget1, "_Tgt1");
|
sl@0
|
31 |
_LIT(KTarget2, "_Tgt2");
|
sl@0
|
32 |
_LIT(KContext1, "_Ctx1");
|
sl@0
|
33 |
_LIT(KContext2, "_Ctx2");
|
sl@0
|
34 |
|
sl@0
|
35 |
/**
|
sl@0
|
36 |
This class contains all the test cases related to DirectGdi Context
|
sl@0
|
37 |
*/
|
sl@0
|
38 |
class CTDirectGdiContext : public CTDirectGdiStepBase
|
sl@0
|
39 |
{
|
sl@0
|
40 |
public:
|
sl@0
|
41 |
CTDirectGdiContext();
|
sl@0
|
42 |
~CTDirectGdiContext();
|
sl@0
|
43 |
|
sl@0
|
44 |
private:
|
sl@0
|
45 |
void OneContextOneTarget();
|
sl@0
|
46 |
void OneContextTwoTargets();
|
sl@0
|
47 |
void TwoContextsOneTarget();
|
sl@0
|
48 |
void TwoContextsTwoTargets_WithoutSharingL();
|
sl@0
|
49 |
void TwoContextsTwoTargets_WithSharingL();
|
sl@0
|
50 |
void OneContextOneTarget_TwiceActivateL();
|
sl@0
|
51 |
void ExternalizeInternalizeTestL();
|
sl@0
|
52 |
void TestCopySettings();
|
sl@0
|
53 |
|
sl@0
|
54 |
virtual TVerdict doTestStepPreambleL();
|
sl@0
|
55 |
virtual TVerdict doTestStepL();
|
sl@0
|
56 |
// from CTDirectGdiStepBase
|
sl@0
|
57 |
void RunTestsL();
|
sl@0
|
58 |
|
sl@0
|
59 |
private:
|
sl@0
|
60 |
TInt iCaseNum;
|
sl@0
|
61 |
CFont* iFont;
|
sl@0
|
62 |
};
|
sl@0
|
63 |
|
sl@0
|
64 |
_LIT(KTDirectGdiContextStep,"TDirectGDIContext");
|
sl@0
|
65 |
|
sl@0
|
66 |
#endif /*TDIRECTGDICONTEXT_H*/
|