From f0f76eb792cea634c433430eeb910f6707903818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3n=20Bjarni=20Bjarnason?= Date: Tue, 10 Oct 2023 13:32:22 +0000 Subject: [PATCH] Committing clang-format changes --- .../confman/src/detail/config_dbus_client.cpp | 1 - libs/confman/testing/tests/confman_test.cpp | 23 +++++++++---------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/libs/confman/src/detail/config_dbus_client.cpp b/libs/confman/src/detail/config_dbus_client.cpp index 941012bd28..4e094ec5db 100644 --- a/libs/confman/src/detail/config_dbus_client.cpp +++ b/libs/confman/src/detail/config_dbus_client.cpp @@ -19,7 +19,6 @@ namespace tfc::confman::detail { // busctl --system introspect com.skaginn3x.config.operation_mode.def.state_machine /com/skaginn3x/etc/tfc/config // clang-format on - config_dbus_client::config_dbus_client(boost::asio::io_context&) {} config_dbus_client::config_dbus_client(dbus_connection_t conn, diff --git a/libs/confman/testing/tests/confman_test.cpp b/libs/confman/testing/tests/confman_test.cpp index 00fcd719b1..ffb02858a3 100644 --- a/libs/confman/testing/tests/confman_test.cpp +++ b/libs/confman/testing/tests/confman_test.cpp @@ -171,18 +171,17 @@ auto main(int argc, char** argv) -> int { }); uint32_t called{}; - sdbusplus::asio::setProperty(dbus, interface_name, interface_path.string(), interface_name, - std::string{ property_name }, - config_property{ R"({"a":11,"b":12,"c":"a"})", "" }, - [&called, &conf]([[maybe_unused]] std::error_code err) { - if (err) { - fmt::print(stderr, "Set property error: '{}'", err.message()); - } - called++; - ut::expect(conf->a == 11); - ut::expect(conf->b == 12); - ut::expect(conf->c == "a"); - }); + sdbusplus::asio::setProperty( + dbus, interface_name, interface_path.string(), interface_name, std::string{ property_name }, + config_property{ R"({"a":11,"b":12,"c":"a"})", "" }, [&called, &conf]([[maybe_unused]] std::error_code err) { + if (err) { + fmt::print(stderr, "Set property error: '{}'", err.message()); + } + called++; + ut::expect(conf->a == 11); + ut::expect(conf->b == 12); + ut::expect(conf->c == "a"); + }); ctx.run_for(std::chrono::milliseconds(10)); ut::expect(called == 1);