Update contrib.
1 // Copyright (c) 2006-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 the License "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 // \f32test\loader\t_import_ldd.cpp
18 #define __E32TEST_EXTENSION__
24 static RTest test(_L("t_import_ldd"));
30 test.Start(_L("Testing ldd importing"));
32 test.Next(_L("Load the exporting ldd"));
33 TInt r=User::LoadLogicalDevice(KExportTestLddName);
34 test_Equal(KErrNone, r); // Don't allow KErrAlreadyExists as don't want ldd to be XIP.
37 test_KErrNone(exportLdd.Open());
38 // The exported function multiplies the 2 arguments.
39 test_Equal(12, exportLdd.RunExport(3, 4));
41 test.Next(_L("Load the importing ldd"));
42 r=User::LoadLogicalDevice(KImportTestLddName);
43 test_Equal(KErrNone, r); // Don't allow KErrAlreadyExists as don't want ldd to be XIP.
47 test_KErrNone(importLdd.Open());
48 // The imported function multiplies the 2 arguments.
49 test_Equal(12, importLdd.RunImport(3, 4));
54 test_KErrNone(User::FreeLogicalDevice(KExportTestLddName));
55 test_KErrNone(User::FreeLogicalDevice(KImportTestLddName));