Changed TestApp to BTestApp for sake of consitency with
the rest of the test classes. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@407 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
// TestHandler
|
||||
|
||||
class TestHandler : public BHandler {
|
||||
class BTestHandler : public BHandler {
|
||||
public:
|
||||
virtual void MessageReceived(BMessage *message);
|
||||
BMessageQueue &Queue();
|
||||
@@ -20,23 +20,23 @@ private:
|
||||
|
||||
// TestApp
|
||||
|
||||
class TestApp : public BApplication {
|
||||
class BTestApp : public BApplication {
|
||||
public:
|
||||
TestApp(const char *signature);
|
||||
BTestApp(const char *signature);
|
||||
|
||||
status_t Init();
|
||||
void Terminate();
|
||||
|
||||
virtual void ReadyToRun();
|
||||
|
||||
TestHandler &Handler();
|
||||
BTestHandler &Handler();
|
||||
|
||||
private:
|
||||
static int32 _AppThreadStart(void *data);
|
||||
|
||||
private:
|
||||
thread_id fAppThread;
|
||||
TestHandler fHandler;
|
||||
BTestHandler fHandler;
|
||||
};
|
||||
|
||||
#endif // _beos_test_app_h_
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
SubDir OBOS_TOP src tests kits storage ;
|
||||
|
||||
UsePrivateHeaders storage ;
|
||||
|
||||
CommonTestLib libstoragetest.so
|
||||
: StorageKitTestAddon.cpp
|
||||
|
||||
@@ -543,7 +543,7 @@ void
|
||||
QueryTest::setUp()
|
||||
{
|
||||
BasicTest::setUp();
|
||||
fApplication = new TestApp("application/x-vnd.obos.query-test");
|
||||
fApplication = new BTestApp("application/x-vnd.obos.query-test");
|
||||
if (fApplication->Init() != B_OK) {
|
||||
fprintf(stderr, "Failed to initialize application.\n");
|
||||
delete fApplication;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "BasicTest.h"
|
||||
|
||||
class QueryTestEntry;
|
||||
class TestApp;
|
||||
class BTestApp;
|
||||
|
||||
class QueryTest : public BasicTest
|
||||
{
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
void LiveTest();
|
||||
|
||||
private:
|
||||
TestApp *fApplication;
|
||||
BTestApp *fApplication;
|
||||
bool fVolumeCreated;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
// MessageReceived
|
||||
void
|
||||
TestHandler::MessageReceived(BMessage *message)
|
||||
BTestHandler::MessageReceived(BMessage *message)
|
||||
{
|
||||
// clone and push it
|
||||
BMessage *clone = new BMessage(*message);
|
||||
@@ -17,7 +17,7 @@ TestHandler::MessageReceived(BMessage *message)
|
||||
|
||||
// Queue
|
||||
BMessageQueue &
|
||||
TestHandler::Queue()
|
||||
BTestHandler::Queue()
|
||||
{
|
||||
return fQueue;
|
||||
}
|
||||
@@ -26,7 +26,7 @@ TestHandler::Queue()
|
||||
// TestApp
|
||||
|
||||
// constructor
|
||||
TestApp::TestApp(const char *signature)
|
||||
BTestApp::BTestApp(const char *signature)
|
||||
: BApplication(signature),
|
||||
fAppThread(B_ERROR),
|
||||
fHandler()
|
||||
@@ -37,7 +37,7 @@ TestApp::TestApp(const char *signature)
|
||||
|
||||
// Init
|
||||
status_t
|
||||
TestApp::Init()
|
||||
BTestApp::Init()
|
||||
{
|
||||
status_t error = B_OK;
|
||||
fAppThread = spawn_thread(&_AppThreadStart, "query app",
|
||||
@@ -56,7 +56,7 @@ TestApp::Init()
|
||||
|
||||
// Terminate
|
||||
void
|
||||
TestApp::Terminate()
|
||||
BTestApp::Terminate()
|
||||
{
|
||||
PostMessage(B_QUIT_REQUESTED, this);
|
||||
int32 result;
|
||||
@@ -65,22 +65,22 @@ TestApp::Terminate()
|
||||
|
||||
// ReadyToRun
|
||||
void
|
||||
TestApp::ReadyToRun()
|
||||
BTestApp::ReadyToRun()
|
||||
{
|
||||
}
|
||||
|
||||
// Handler
|
||||
TestHandler &
|
||||
TestApp::Handler()
|
||||
BTestHandler &
|
||||
BTestApp::Handler()
|
||||
{
|
||||
return fHandler;
|
||||
}
|
||||
|
||||
// _AppThreadStart
|
||||
int32
|
||||
TestApp::_AppThreadStart(void *data)
|
||||
BTestApp::_AppThreadStart(void *data)
|
||||
{
|
||||
if (TestApp *app = (TestApp*)data) {
|
||||
if (BTestApp *app = (BTestApp*)data) {
|
||||
app->Lock();
|
||||
app->Run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user