diff options
Diffstat (limited to 'src/tests/TestAudioReceiverBuffer/ServerUser.h')
-rw-r--r-- | src/tests/TestAudioReceiverBuffer/ServerUser.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/tests/TestAudioReceiverBuffer/ServerUser.h b/src/tests/TestAudioReceiverBuffer/ServerUser.h new file mode 100644 index 000000000..d07985227 --- /dev/null +++ b/src/tests/TestAudioReceiverBuffer/ServerUser.h @@ -0,0 +1,23 @@ +// Copyright 2021 The Mumble Developers. All rights reserved. +// Use of this source code is governed by a BSD-style license +// that can be found in the LICENSE file at the root of the +// Mumble source tree or at <https://www.mumble.info/LICENSE>. + + +// NOTE: This is merely a mock of the ServerUser class + +#include "Version.h" + +#include <string> + +struct ServerUser { + ServerUser(unsigned int uiSession, Version::mumble_raw_version_t version, bool deaf = false, bool selfDeaf = false, + const std::string context = "") + : uiSession(uiSession), uiVersion(version), bDeaf(deaf), bSelfDeaf(selfDeaf), ssContext(context) {} + + unsigned int uiSession; + Version::mumble_raw_version_t uiVersion; + bool bDeaf; + bool bSelfDeaf; + std::string ssContext; +}; |