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 // Target application to be debugged by t_rmdebug.exe when testing
15 // security restrictions. This application is built with various
16 // capabilities by the t_rmdebug_securityX.mmp files. This allows
17 // the t_rmdebug2 program to ensure that security restrictions are
18 // properly enforced by the DSS/DDD subsystem.
23 #include <e32base_private.h>
28 #include <e32cmn_private.h>
29 #include "t_rmdebug_security.h"
31 CRunModeApp* CRunModeApp::NewL()
36 CRunModeApp* self = new(ELeave) CRunModeApp();
43 CRunModeApp::CRunModeApp()
45 // CRunModeApp constructor
50 CRunModeApp::~CRunModeApp()
52 // CRunModeApp destructor
57 void CRunModeApp::ConstructL()
59 // CRunModeApp::ConstructL
64 void CRunModeApp::TestWaitDebug()
66 // CRunModeApp::TestWaitDebug
69 RProcess::Rendezvous(KErrNone);
71 // Wait a 3secs then quit (long enough to test, but not hang around forever)
75 GLDEF_C TInt E32Main()
77 // Entry point for run mode debug app test program
83 CTrapCleanup* trap = CTrapCleanup::New();
87 CRunModeApp* myApp = CRunModeApp::NewL();
91 TRAP(ret,myApp->TestWaitDebug());