3 #ifndef _beos_test_app_h_
4 #define _beos_test_app_h_
6 #include <Application.h>
8 #include <MessageQueue.h>
10 #include <cppunit/Portability.h>
14 class BTestHandler
: public BHandler
{
16 virtual void MessageReceived(BMessage
*message
);
17 BMessageQueue
&Queue();
26 class CPPUNIT_API BTestApp
: public BApplication
{
28 BTestApp(const char *signature
);
34 virtual void ReadyToRun();
36 BTestHandler
*CreateTestHandler();
37 bool DeleteTestHandler(BTestHandler
*handler
);
39 BTestHandler
&Handler();
40 BTestHandler
*TestHandlerAt(int32 index
);
43 static int32
_AppThreadStart(void *data
);
50 #endif // _beos_test_app_h_