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