localisation/apparchitecture/tef/t_largestackstep.cpp
branchSymbian3
changeset 57 b8d18c84f71c
parent 6 c108117318cb
equal deleted inserted replaced
56:aa99f2208aad 57:b8d18c84f71c
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 // The following test case is used to test whether or not Apparc can handle loading applications with excessively large stack frames.
    14 // The following test case is used to test whether or not Apparc can handle loading applications with excessively large stack frames.
    15 // 
    15 // 
       
    16 //t_largestackstep.cpp
    16 //
    17 //
    17 
    18 
    18 
       
    19 
       
    20 /**
    19 /**
    21  @file
    20  @file t_largestackstep.cpp
    22  @internalComponent - Internal Symbian test code
    21  @internalComponent - Internal Symbian test code
    23 */
    22 */
    24 
    23 
    25 #include <apgcli.h>
    24 #include <apgcli.h>
    26 #include <apacmdln.h>
    25 #include <apacmdln.h>
    27 #include <apgicnfl.h>
    26 #include <apgicnfl.h>
    28 #include "../apserv/APSCLSV.H"
    27 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
    29 #include "T_LargeStackStep.h"
    28 #include <apgicnflpartner.h>
       
    29 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
       
    30 #include "../apserv/apsclsv.h"
       
    31 #include "t_largestackstep.h"
    30 
    32 
    31 const TUid KLargeStackAppUid = {0x10282B27};
    33 const TUid KLargeStackAppUid = {0x10282B27};
    32 
    34 
    33 TInt RTestApaLsSession::TestExeRecognizerL(const CApaCommandLine& aCommandLine)
    35 TInt RTestApaLsSession::TestExeRecognizerL(const CApaCommandLine& aCommandLine)
    34 	{
    36 	{
    82 	CApaCommandLine* commandline = CApaCommandLine::NewLC();
    84 	CApaCommandLine* commandline = CApaCommandLine::NewLC();
    83 	commandline->SetExecutableNameL(info.iFullName);
    85 	commandline->SetExecutableNameL(info.iFullName);
    84 	commandline->SetCommandL(EApaCommandRunWithoutViews);
    86 	commandline->SetCommandL(EApaCommandRunWithoutViews);
    85 	TEST(iApaLsSession.StartApp(*commandline)==KErrNone);
    87 	TEST(iApaLsSession.StartApp(*commandline)==KErrNone);
    86 	
    88 	
    87 	INFO_PRINTF1(_L("Test running the application via the legacy recogniser code."));
       
    88 	TEST(iApaLsSession.TestExeRecognizerL(*commandline)==KErrNone);
       
    89 
       
    90 	INFO_PRINTF1(_L("Test running the application via StartDocument."));
    89 	INFO_PRINTF1(_L("Test running the application via StartDocument."));
    91 	TThreadId threadId;
    90 	TThreadId threadId;
    92 	TEST(iApaLsSession.StartDocument(_L("z:\fakename.doc"), KLargeStackAppUid, threadId, RApaLsSession::ELaunchNewApp)==KErrNone);
    91 	TEST(iApaLsSession.StartDocument(_L("z:\fakename.doc"), KLargeStackAppUid, threadId, RApaLsSession::ELaunchNewApp)==KErrNone);
    93 
    92 
    94 	// Cleanup
    93 	// Cleanup