From f70973047709356dd8b971c3188f2d7d7bc4c0c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 26 Apr 2008 21:55:26 +0000 Subject: [PATCH] Fix the build of the registrar for the app_server test environment. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25200 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../registrar/FakeAuthenticationManager.cpp | 24 ++++++++++++ .../registrar/FakeAuthenticationManager.h | 39 +++++++++++++++++++ src/tests/servers/registrar/Jamfile | 1 + 3 files changed, 64 insertions(+) create mode 100644 src/tests/servers/registrar/FakeAuthenticationManager.cpp create mode 100644 src/tests/servers/registrar/FakeAuthenticationManager.h 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