kernel/eka/include/e32test.h
changeset 293 0659d0e1a03c
parent 33 0173bcd7697c
equal deleted inserted replaced
291:206a6eaaeb71 293:0659d0e1a03c
     1 // Copyright (c) 1994-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1994-2010 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 the License "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".
    72 	inline void HandleNotEqual(TInt aExpected, TInt aActual, TInt aLine, const TText* aFileName);
    72 	inline void HandleNotEqual(TInt aExpected, TInt aActual, TInt aLine, const TText* aFileName);
    73 	inline void HandleFailedCompare(TInt aLeft, const TText* aComp, TInt aRight, TInt aLine, const TText* aFileName);
    73 	inline void HandleFailedCompare(TInt aLeft, const TText* aComp, TInt aRight, TInt aLine, const TText* aFileName);
    74 	inline void HandleValue(TInt aValue,  TInt aLine, const TText* aFileName);
    74 	inline void HandleValue(TInt aValue,  TInt aLine, const TText* aFileName);
    75 
    75 
    76 	IMPORT_C static TInt CloseHandleAndWaitForDestruction(RHandleBase& aH);	/**< @internalTechnology */
    76 	IMPORT_C static TInt CloseHandleAndWaitForDestruction(RHandleBase& aH);	/**< @internalTechnology */
       
    77 	IMPORT_C TInt CompletePostBootSystemTasks();
    77 
    78 
    78 protected:
    79 protected:
    79 	void CheckConsoleCreated();
    80 	void CheckConsoleCreated();
    80 	void DisplayLevel();
    81 	void DisplayLevel();
    81 	inline void Push();
    82 	inline void Push();
   363 /**
   364 /**
   364 @internalTechnology
   365 @internalTechnology
   365 */
   366 */
   366 #define CLOSE_AND_WAIT(h)	((void)(RTest::CloseHandleAndWaitForDestruction(h) && (User::Panic(KLitCloseAndWait,__LINE__),1)))
   367 #define CLOSE_AND_WAIT(h)	((void)(RTest::CloseHandleAndWaitForDestruction(h) && (User::Panic(KLitCloseAndWait,__LINE__),1)))
   367 
   368 
   368 
   369 #define COMPLETE_POST_BOOT_SYSTEM_TASKS() \
       
   370 	{\
       
   371 	_LIT(KLitCompleteSysTasks, "Complete post boot system tasks"); \
       
   372 	RTest test(KLitCompleteSysTasks); \
       
   373 	test(test.CompletePostBootSystemTasks() == KErrNone); \
       
   374 	}
   369 
   375 
   370 #endif
   376 #endif
   371 
   377