Update contrib.
1 // Copyright (c) 2007-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 // e32test\earlyextension\t_testextension.cpp
20 #include "d_wsdextension.h"
22 RLddWsdExtension lddChan;
23 GLDEF_D RTest test(_L("LDD tests"));
24 _LIT(KLddFileName, "D_WSDEXTENSION.LDD");
26 GLDEF_C TInt E32Main()
29 test.Start(_L("Testing WSD extension...\n"));
31 TInt r = User::LoadLogicalDevice(KLddFileName);
32 test((r == KErrNone) || (r == KErrAlreadyExists));
35 test(r==KErrNone || r==KErrAlreadyExists);
38 r = lddChan.Test_getStaticData(data);
40 test(data == 0xEFEFEFEF);
41 test.Printf(_L("Static Data from extension as expected!!!\n"));
42 test.Printf(_L("Closing the channel\n"));
46 test.Printf(_L("Freeing logical device\n"));
47 r = User::FreeLogicalDevice(KLddFileName);