From 512a25658dd6b737a16b91fb7eba43deef004d87 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 18 Oct 2020 04:05:48 +0300 Subject: add Sid class It's another newcomer straight from privilege-check. --- test/unit_tests/sid.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/unit_tests/sid.cpp (limited to 'test') diff --git a/test/unit_tests/sid.cpp b/test/unit_tests/sid.cpp new file mode 100644 index 0000000..757f6f4 --- /dev/null +++ b/test/unit_tests/sid.cpp @@ -0,0 +1,19 @@ +// Copyright (c) 2020 Egor Tensin +// This file is part of the "winapi-common" project. +// For details, see https://github.com/egor-tensin/winapi-common. +// Distributed under the MIT License. + +#include + +#include + +using namespace winapi; + +BOOST_AUTO_TEST_SUITE(sid_tests) + +BOOST_AUTO_TEST_CASE(builtin_administrators) { + const auto sid = Sid::builtin_administrators(); + BOOST_TEST(sid.to_string() == "S-1-5-32-544"); +} + +BOOST_AUTO_TEST_SUITE_END() -- cgit v1.2.3