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:
Tyler Dauwalder
2002-07-23 22:27:43 +00:00
parent 9d863cc903
commit 242a6db230
5 changed files with 19 additions and 18 deletions
+5 -5
View File
@@ -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
View File
@@ -1,5 +1,6 @@
SubDir OBOS_TOP src tests kits storage ;
UsePrivateHeaders storage ;
CommonTestLib libstoragetest.so
: StorageKitTestAddon.cpp
+1 -1
View File
@@ -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;
+2 -2
View File
@@ -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;
};
+10 -10
View File
@@ -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();
}