First public contribution.
1 // Copyright (c) 1997-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\misc\t_abt.cpp
20 LOCAL_D RTest test(_L("ABT"));
21 LOCAL_D TInt junk=0x11;
23 class RMySession : public RSessionBase
26 TInt Connect(RServer2 aSrv,TRequestStatus& aStat)
27 {return CreateSession(aSrv,TVersion(),1,EIpcSession_Unsharable,0,&aStat);}
28 void Test(TDesC8& aDes)
29 {Send(0,TIpcArgs(&aDes));}
32 void RunTest(RMessage2& aMsg,TPtrC8& aDes)
34 RProcess().SetPriority(EPriorityLow);
35 TUint8* pD=(TUint8*)User::Alloc(2048);
39 TUint32 data_addr=(TUint32)pJ;
40 data_addr=(data_addr+4095)&~4095;
42 const TUint8* p=(const TUint8*)data_addr;
46 TInt r=aMsg.Read(0,d);
47 if (r!=KErrBadDescriptor)
49 test.Printf(_L("Return code %d\n"),r);
55 GLDEF_C TInt E32Main()
60 srv.CreateGlobal(KNullDesC);
64 sess.Connect(srv,stat);
68 m.Complete(KErrNone); // connect message
70 User::WaitForRequest(stat); // connected