diff -r 000000000000 -r 2f259fa3e83a commonuisupport/uikon/test/teikenv/tcaptiontest/tcaptiontest.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/commonuisupport/uikon/test/teikenv/tcaptiontest/tcaptiontest.cpp Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,101 @@ +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +/** + @file + @test + @internalComponent - Internal Symbian test code +*/ + +#include +#include +#include +#include "tcaptiontest.h" + +// +// +// CNameTestAppUi +// +// + +CNameTestAppUi::CNameTestAppUi() : CTestAppUi(NULL, KNullDesC) + { + } + +void CNameTestAppUi::ConstructL() + { + CTestAppUi::ConstructL(); + AutoTestManager().StartAutoTest(); + //BaseConstructL(); + } + +CNameTestAppUi::~CNameTestAppUi() + { + } + +void CNameTestAppUi::HandleCommandL(TInt /*aCommand*/) + { + } + + +void CNameTestAppUi::RunTestStepL(TInt /*aNumStep*/) + { + RProcess().Terminate(KErrNone); + } + + +// +// +// CNameTestDocument +// +// +CNameTestDocument::CNameTestDocument(CEikApplication& aApp) + : CEikDocument(aApp) + { + } + +CEikAppUi* CNameTestDocument::CreateAppUiL() + { + return new (ELeave) CNameTestAppUi(); + } + + +// +// +// CNameTestApplication +// +// +TUid CNameTestApplication::AppDllUid() const + { + return KUidNameTest; + } + +CApaDocument* CNameTestApplication::CreateDocumentL() + { + return new (ELeave) CNameTestDocument(*this); + } + +LOCAL_C CApaApplication* NewApplication() + { + return new CNameTestApplication; + } + +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + + +