First public contribution.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // trasterizerinvalid.h
18 #include "trasterizerinvalid.h"
20 const TUid KUidInvalidInterface = {0xFFFFFFFF};
22 CTRasterizerInvalid::CTRasterizerInvalid()
24 SetTestStepName(KTRasterizerInvalidStep);
29 GRAPHICS-FBSERV-RASTERIZER-010
42 Test that CFbsRasterizer::GetInterface() returns the correct error code when
43 passed a non-existent interface UID.
46 Call CFbsRasterizer::GetInterface() with a UID of an interface that does not exist.
48 @SYMTestExpectedResults
49 CFbsRasterizer::GetInterface() should return KErrExtensionNotSupported.
50 The pointer to the in/out interface parameter should be set to NULL.
52 void CTRasterizerInvalid::TestGetInterfaceL()
54 INFO_PRINTF1(_L("TestGetInterface"));
56 // Get the example rasterizer
57 GetExampleRasterizerL();
60 TInt err = iRasterizer->GetInterface(KUidInvalidInterface, interfaceRet);
61 TESTL(err == KErrExtensionNotSupported);
62 TESTL(interfaceRet == NULL);
66 Override of base class pure virtual
67 Lists the tests to be run
69 TVerdict CTRasterizerInvalid::doTestStepL()
73 return TestStepResult();