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 |
// trasterizerinvalid.h
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
#include "trasterizerinvalid.h"
|
sl@0
|
19 |
|
sl@0
|
20 |
const TUid KUidInvalidInterface = {0xFFFFFFFF};
|
sl@0
|
21 |
|
sl@0
|
22 |
CTRasterizerInvalid::CTRasterizerInvalid()
|
sl@0
|
23 |
{
|
sl@0
|
24 |
SetTestStepName(KTRasterizerInvalidStep);
|
sl@0
|
25 |
}
|
sl@0
|
26 |
|
sl@0
|
27 |
/**
|
sl@0
|
28 |
@SYMTestCaseID
|
sl@0
|
29 |
GRAPHICS-FBSERV-RASTERIZER-010
|
sl@0
|
30 |
|
sl@0
|
31 |
@SYMTestPriority
|
sl@0
|
32 |
Normal
|
sl@0
|
33 |
|
sl@0
|
34 |
@SYMPREQ
|
sl@0
|
35 |
PREQ2096
|
sl@0
|
36 |
|
sl@0
|
37 |
@SYMREQ
|
sl@0
|
38 |
REQ10860
|
sl@0
|
39 |
REQ10861
|
sl@0
|
40 |
|
sl@0
|
41 |
@SYMTestCaseDesc
|
sl@0
|
42 |
Test that CFbsRasterizer::GetInterface() returns the correct error code when
|
sl@0
|
43 |
passed a non-existent interface UID.
|
sl@0
|
44 |
|
sl@0
|
45 |
@SYMTestActions
|
sl@0
|
46 |
Call CFbsRasterizer::GetInterface() with a UID of an interface that does not exist.
|
sl@0
|
47 |
|
sl@0
|
48 |
@SYMTestExpectedResults
|
sl@0
|
49 |
CFbsRasterizer::GetInterface() should return KErrExtensionNotSupported.
|
sl@0
|
50 |
The pointer to the in/out interface parameter should be set to NULL.
|
sl@0
|
51 |
*/
|
sl@0
|
52 |
void CTRasterizerInvalid::TestGetInterfaceL()
|
sl@0
|
53 |
{
|
sl@0
|
54 |
INFO_PRINTF1(_L("TestGetInterface"));
|
sl@0
|
55 |
|
sl@0
|
56 |
// Get the example rasterizer
|
sl@0
|
57 |
GetExampleRasterizerL();
|
sl@0
|
58 |
|
sl@0
|
59 |
TAny* interfaceRet;
|
sl@0
|
60 |
TInt err = iRasterizer->GetInterface(KUidInvalidInterface, interfaceRet);
|
sl@0
|
61 |
TESTL(err == KErrExtensionNotSupported);
|
sl@0
|
62 |
TESTL(interfaceRet == NULL);
|
sl@0
|
63 |
}
|
sl@0
|
64 |
|
sl@0
|
65 |
/**
|
sl@0
|
66 |
Override of base class pure virtual
|
sl@0
|
67 |
Lists the tests to be run
|
sl@0
|
68 |
*/
|
sl@0
|
69 |
TVerdict CTRasterizerInvalid::doTestStepL()
|
sl@0
|
70 |
{
|
sl@0
|
71 |
TestGetInterfaceL();
|
sl@0
|
72 |
|
sl@0
|
73 |
return TestStepResult();
|
sl@0
|
74 |
}
|