localisation/apparchitecture/tef/T_Serv3Step.cpp
branchSymbian3
changeset 57 b8d18c84f71c
parent 6 c108117318cb
equal deleted inserted replaced
56:aa99f2208aad 57:b8d18c84f71c
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-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.
    13 // Description:
    13 // Description:
    14 // Test wrapper to Application Architecture Server.
    14 // Test wrapper to Application Architecture Server.
    15 // Tests Application information, Data recognition and application
    15 // Tests Application information, Data recognition and application
    16 // launching capabilities of the application architecture server.\n
    16 // launching capabilities of the application architecture server.\n
    17 // 
    17 // 
       
    18 // t_serv3step.cpp
    18 //
    19 //
    19 
    20 
    20 
       
    21 
       
    22 /**
    21 /**
    23  @file
    22  @file t_serv3step.cpp
    24  @internalComponent - Internal Symbian test code
    23  @internalComponent - Internal Symbian test code
    25 */
    24 */
    26  
    25  
    27 #include <f32file.h>
    26 #include <f32file.h>
    28 #include <fbs.h>
    27 #include <fbs.h>
    29 #include <apaid.h>
    28 #include <apaid.h>
       
    29 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
       
    30 #include <apaidpartner.h>
       
    31 #include <apgicnflpartner.h>
       
    32 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
    30 #include <apgaplst.h>
    33 #include <apgaplst.h>
    31 #include <apaflrec.h>
    34 #include <apaflrec.h>
    32 #include "testableapalssession.h"
    35 #include "testableapalssession.h"
    33 #include <apacmdln.h>
    36 #include <apacmdln.h>
    34 #include <apsserv.h>
       
    35 #include <apfrec.h>
    37 #include <apfrec.h>
    36 #include <datastor.h>
    38 #include <datastor.h>
    37 #include <apgicnfl.h>
    39 #include <apgicnfl.h>
    38 #include <apasvst.h>
    40 #include <apasvst.h>
    39 #include "tstapp.h"
    41 #include "tstapp.h"
    79  * Constructor
    81  * Constructor
    80  */
    82  */
    81 	{
    83 	{
    82 	// Call base class method to set up the human readable name for logging
    84 	// Call base class method to set up the human readable name for logging
    83 	SetTestStepName(KT_Serv3Step);
    85 	SetTestStepName(KT_Serv3Step);
    84 
       
    85 	//Set up active scheduler
       
    86 	iActiveScheduler= new(ELeave) CActiveScheduler;
       
    87 	CActiveScheduler::Install(iActiveScheduler);
       
    88 	}
    86 	}
    89 
    87 
    90 /**
    88 /**
    91  @SYMTestCaseID T_Serv3Step_DoSyncRecognizerTest1L
    89  @SYMTestCaseID T_Serv3Step_DoSyncRecognizerTest1L
    92 
    90 
  1799 	HEAP_TEST_LS_SESSION(ls, 0, 0, DoSyncFolderRecognizerTest4L(ls), ls.FlushRecognitionCache() );
  1797 	HEAP_TEST_LS_SESSION(ls, 0, 0, DoSyncFolderRecognizerTest4L(ls), ls.FlushRecognitionCache() );
  1800 	HEAP_TEST_LS_SESSION(ls, 0, 0, DoAsyncFolderRecognizerTest13L(ls), ls.FlushRecognitionCache() );
  1798 	HEAP_TEST_LS_SESSION(ls, 0, 0, DoAsyncFolderRecognizerTest13L(ls), ls.FlushRecognitionCache() );
  1801 	//DONT_CHECK Skips the heap check at server side. This heap imbalance occurs randomly in server side
  1799 	//DONT_CHECK Skips the heap check at server side. This heap imbalance occurs randomly in server side
  1802 	// while canceling the outstanding async request.
  1800 	// while canceling the outstanding async request.
  1803 	HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, DoAsyncFolderRecognizerTest14L(ls), ls.FlushRecognitionCache() );
  1801 	HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, DoAsyncFolderRecognizerTest14L(ls), ls.FlushRecognitionCache() );
  1804 			
       
  1805 	CleanupStack::PopAndDestroy(&ls);
  1802 	CleanupStack::PopAndDestroy(&ls);
  1806 
  1803 
  1807 	// close the server session and we have done some type store reloading
  1804 	// close the server session and we have done some type store reloading
  1808 	CleanupStack::PopAndDestroy(&theServFs);
  1805 	CleanupStack::PopAndDestroy(&theServFs);
  1809 
  1806 
  1894 /**
  1891 /**
  1895  * Override of base class virtual.
  1892  * Override of base class virtual.
  1896  * @return - TVerdict code
  1893  * @return - TVerdict code
  1897  */
  1894  */
  1898 {
  1895 {
       
  1896 	//Set up active scheduler
       
  1897 	iActiveScheduler= new(ELeave) CActiveScheduler;
       
  1898 	CActiveScheduler::Install(iActiveScheduler);
       
  1899 	
  1899 	FbsStartup();
  1900 	FbsStartup();
  1900 	TInt ret = RFbsSession::Connect();
  1901 	TInt ret = RFbsSession::Connect();
  1901 	TEST(ret==KErrNone);
  1902 	TEST(ret==KErrNone);
  1902 
  1903 
  1903 	// run the testcode (inside an alloc heaven harness)
  1904 	// run the testcode (inside an alloc heaven harness)
  1945 void CActiveTest2::RunL()
  1946 void CActiveTest2::RunL()
  1946 	{
  1947 	{
  1947 	//Stop AS
  1948 	//Stop AS
  1948 	CActiveScheduler::Stop();
  1949 	CActiveScheduler::Stop();
  1949 	}
  1950 	}
       
  1951