aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/unit_tests/shared
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-13 19:25:17 +0200
committerEgor Tensin <egor@tensin.name>2026-06-13 19:25:17 +0200
commit97b796e7788ae69c0aaeec2644246d9f10d2739d (patch)
treeb6397ccbabde7ee3e470c6a9ae799c91d6e070e2 /test/unit_tests/shared
parentupgrade winapi-utf8 (diff)
downloadwinapi-common-97b796e7788ae69c0aaeec2644246d9f10d2739d.tar.gz
winapi-common-97b796e7788ae69c0aaeec2644246d9f10d2739d.zip
finally, perfect .clang-format settings?
Diffstat (limited to 'test/unit_tests/shared')
-rw-r--r--test/unit_tests/shared/console.hpp3
-rw-r--r--test/unit_tests/shared/worker.hpp15
2 files changed, 11 insertions, 7 deletions
diff --git a/test/unit_tests/shared/console.hpp b/test/unit_tests/shared/console.hpp
index 86a317a..8b11d9b 100644
--- a/test/unit_tests/shared/console.hpp
+++ b/test/unit_tests/shared/console.hpp
@@ -107,7 +107,8 @@ public:
read_region.Right = buffer_size.X - 1;
if (!::ReadConsoleOutputW(
- m_handle.get(), buffer.data(), buffer_size, buffer_coord, &read_region)) {
+ m_handle.get(), buffer.data(), buffer_size, buffer_coord, &read_region
+ )) {
throw winapi::error::windows(GetLastError(), "ReadConsoleOutputW");
}
diff --git a/test/unit_tests/shared/worker.hpp b/test/unit_tests/shared/worker.hpp
index 9ba7020..fe11ddb 100644
--- a/test/unit_tests/shared/worker.hpp
+++ b/test/unit_tests/shared/worker.hpp
@@ -37,8 +37,9 @@ public:
HWND get_console_window() {
HWND ret = NULL;
- m_cmd->get_result(Command::GET_CONSOLE_WINDOW,
- [&ret](const Command::Result& result) { ret = result.console_window; });
+ m_cmd->get_result(Command::GET_CONSOLE_WINDOW, [&ret](const Command::Result& result) {
+ ret = result.console_window;
+ });
return ret;
}
@@ -52,15 +53,17 @@ public:
StdHandles get_std_handles() {
StdHandles ret;
- m_cmd->get_result(Command::GET_STD_HANDLES,
- [&ret](const Command::Result& result) { ret = result.std_handles; });
+ m_cmd->get_result(Command::GET_STD_HANDLES, [&ret](const Command::Result& result) {
+ ret = result.std_handles;
+ });
return ret;
}
StdHandles test_write() {
StdHandles ret;
- m_cmd->get_result(Command::TEST_WRITE,
- [&ret](const Command::Result& result) { ret = result.std_handles; });
+ m_cmd->get_result(Command::TEST_WRITE, [&ret](const Command::Result& result) {
+ ret = result.std_handles;
+ });
return ret;
}