Added a very basic test to see, if BRoster cooperates smoothly with the registrar to init its messengers. And yes, it does. :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@382 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
70da77794e
commit
23ce7baa24
9
src/tests/servers/registrar/Jamfile
Normal file
9
src/tests/servers/registrar/Jamfile
Normal file
@ -0,0 +1,9 @@
|
||||
SubDir OBOS_TOP src tests servers registrar ;
|
||||
|
||||
UsePublicHeaders app ;
|
||||
|
||||
SimpleTest RegistrarTest1
|
||||
: RegistrarTest1.cpp
|
||||
: <boot!home!config!lib>libopenbeos.so
|
||||
;
|
||||
|
28
src/tests/servers/registrar/RegistrarTest1.cpp
Normal file
28
src/tests/servers/registrar/RegistrarTest1.cpp
Normal file
@ -0,0 +1,28 @@
|
||||
// RegistrarTest1.cpp
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <Application.h>
|
||||
|
||||
class TestApp : public BApplication {
|
||||
public:
|
||||
TestApp(const char *signature)
|
||||
: BApplication(signature)
|
||||
{
|
||||
}
|
||||
|
||||
~TestApp()
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
// main
|
||||
int
|
||||
main()
|
||||
{
|
||||
TestApp *app = new TestApp("application/x-vnd.OBOS-TestApp1");
|
||||
app->Run();
|
||||
delete app;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user