diff --git a/src/tests/servers/registrar/FakeAuthenticationManager.cpp b/src/tests/servers/registrar/FakeAuthenticationManager.cpp new file mode 100644 index 0000000000..2cb03c2aee --- /dev/null +++ b/src/tests/servers/registrar/FakeAuthenticationManager.cpp @@ -0,0 +1,24 @@ +/* + * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de. All Rights Reserved. + * Distributed under the terms of the MIT License. + */ + +#include "FakeAuthenticationManager.h" + + +AuthenticationManager::AuthenticationManager() +{ +} + + +AuthenticationManager::~AuthenticationManager() +{ +} + + +status_t +AuthenticationManager::Init() +{ + return B_OK; +} + diff --git a/src/tests/servers/registrar/FakeAuthenticationManager.h b/src/tests/servers/registrar/FakeAuthenticationManager.h new file mode 100644 index 0000000000..458b3a5d30 --- /dev/null +++ b/src/tests/servers/registrar/FakeAuthenticationManager.h @@ -0,0 +1,39 @@ +/* + * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de. All Rights Reserved. + * Distributed under the terms of the MIT License. + */ +#ifndef FAKE_AUTHENTICATION_MANAGER_H +#define FAKE_AUTHENTICATION_MANAGER_H + + +#include + + +namespace BPrivate { + class KMessage; +} + + +class AuthenticationManager { +public: + AuthenticationManager(); + ~AuthenticationManager(); + + status_t Init(); + +private: + class UserDB; + class GroupDB; + +private: + port_id fRequestPort; + thread_id fRequestThread; + UserDB* fUserDB; + GroupDB* fGroupDB; + BPrivate::KMessage* fPasswdDBReply; + BPrivate::KMessage* fGroupDBReply; + BPrivate::KMessage* fShadowPwdDBReply; +}; + + +#endif // FAKE_AUTHENTICATION_MANAGER_H diff --git a/src/tests/servers/registrar/Jamfile b/src/tests/servers/registrar/Jamfile index a44cf0912b..e7aec42038 100644 --- a/src/tests/servers/registrar/Jamfile +++ b/src/tests/servers/registrar/Jamfile @@ -77,6 +77,7 @@ Server haiku_registrar Event.cpp EventMaskWatcher.cpp EventQueue.cpp + FakeAuthenticationManager.cpp MessageDeliverer.cpp MessageEvent.cpp MessageHandler.cpp