|
1 /* |
|
2 * Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: test functions for alfvisual.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // [INCLUDE FILES] |
|
21 #include <e32svr.h> |
|
22 #include <stifparser.h> |
|
23 #include <stiftestinterface.h> |
|
24 |
|
25 #include "testplatalfvisual.h" |
|
26 |
|
27 // CONSTANT |
|
28 const TInt KBufSize = 64; |
|
29 |
|
30 // ============================ MEMBER FUNCTIONS =============================== |
|
31 |
|
32 // ----------------------------------------------------------------------------- |
|
33 // CTestPlatAlfVisual::TestAlfM3GMeshLoadSceneL |
|
34 // ----------------------------------------------------------------------------- |
|
35 // |
|
36 TInt CTestPlatAlfVisual::TestAlfM3GMeshLoadSceneL( CStifItemParser& /*aItem*/ ) |
|
37 { |
|
38 _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" ); |
|
39 _LIT( KTestAlfM3GMeshLoadSceneL, "TestAlfM3GMeshLoadSceneL" ); |
|
40 TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestAlfM3GMeshLoadSceneL ); |
|
41 // Print to log file |
|
42 iLog->Log( KTestAlfM3GMeshLoadSceneL ); |
|
43 |
|
44 CAlfMeshVisual* vVisual = CAlfMeshVisual::AddNewL( *iAlfCtl ); |
|
45 vVisual->CreateMeshL( EAlfMeshTypeM3G ); |
|
46 CAlfM3GMesh* vMesh = vVisual->M3GMesh(); |
|
47 _LIT( KM3gFile, "testm3g.m3g"); |
|
48 TBuf<KBufSize> buf( KM3gFile ); |
|
49 TRAPD( err, vMesh->LoadSceneL( buf ) ); |
|
50 if ( err != KErrNone ) |
|
51 { |
|
52 return KErrNone; |
|
53 } |
|
54 else |
|
55 { |
|
56 return KErrNone; |
|
57 } |
|
58 |
|
59 } |
|
60 |
|
61 // End of file |
|
62 |
|
63 |