aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit_tests/shared/command.hpp8
-rw-r--r--test/unit_tests/shared/console.hpp4
2 files changed, 6 insertions, 6 deletions
diff --git a/test/unit_tests/shared/command.hpp b/test/unit_tests/shared/command.hpp
index 69c230f..266903f 100644
--- a/test/unit_tests/shared/command.hpp
+++ b/test/unit_tests/shared/command.hpp
@@ -29,14 +29,14 @@ struct StdHandles {
HANDLE err;
};
+BOOST_STATIC_CONSTEXPR auto COMMAND_SHMEM_NAME = "shmem-test-cmd";
+
class Command {
public:
- BOOST_STATIC_CONSTEXPR auto SHMEM_NAME = "shmem-test-cmd";
-
typedef winapi::SharedObject<Command> Shared;
- static Shared create() { return Shared::create(SHMEM_NAME); }
- static Shared open() { return Shared::open(SHMEM_NAME); }
+ static Shared create() { return Shared::create(COMMAND_SHMEM_NAME); }
+ static Shared open() { return Shared::open(COMMAND_SHMEM_NAME); }
typedef boost::interprocess::interprocess_mutex mutex;
typedef boost::interprocess::interprocess_condition condition_variable;
diff --git a/test/unit_tests/shared/console.hpp b/test/unit_tests/shared/console.hpp
index 0a415e5..faa887c 100644
--- a/test/unit_tests/shared/console.hpp
+++ b/test/unit_tests/shared/console.hpp
@@ -26,9 +26,9 @@ class Buffer {
public:
typedef CONSOLE_SCREEN_BUFFER_INFO Info;
- Buffer() : m_handle{winapi::Handle::std_out()}, m_info{get_info(m_handle)} {}
+ Buffer() : m_handle{winapi::Handle::std_out()}, m_info(get_info(m_handle)) {}
- Buffer(winapi::Handle&& handle) : m_handle{std::move(handle)}, m_info{get_info(m_handle)} {}
+ Buffer(winapi::Handle&& handle) : m_handle{std::move(handle)}, m_info(get_info(m_handle)) {}
std::size_t get_columns() const { return m_info.dwSize.X; }