From ade38ca7bd52bf3b455c0d97a75f87aae650aa56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Gaffie?= Date: Thu, 18 Apr 2019 08:37:59 +0200 Subject: follow-up: Functional test: improve test to run on target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apply clang format Test: build Change-Id: I321a0506c1880fa5431582247fd9f21d5e6c8235 Signed-off-by: François Gaffie --- upstream/test/functional-tests/AutoSync.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/upstream/test/functional-tests/AutoSync.cpp b/upstream/test/functional-tests/AutoSync.cpp index c075700..3e666d2 100644 --- a/upstream/test/functional-tests/AutoSync.cpp +++ b/upstream/test/functional-tests/AutoSync.cpp @@ -46,7 +46,8 @@ namespace parameterFramework struct BoolPF : public ParameterFramework { - BoolPF() : ParameterFramework{createConfig()} { + BoolPF() : ParameterFramework{createConfig()} + { mDynamicLibrary = ::utility::make_unique(mSubsystemPath); REQUIRE(mDynamicLibrary != nullptr); @@ -62,10 +63,7 @@ struct BoolPF : public ParameterFramework setConfigurationParameter("Domain", "Conf", "/test/test/param", valueStr); } - bool getParameterValue() - { - return mGetParamFunc(); - } + bool getParameterValue() { return mGetParamFunc(); } private: static Config createConfig() @@ -98,7 +96,7 @@ private: } using GetParamFunc = bool (*)(); - std::string mSubsystemPath = std::string(PLUGIN_PATH) + (*PLUGIN_PATH ? "/":"") + PLUGIN_NAME; + std::string mSubsystemPath = std::string(PLUGIN_PATH) + (*PLUGIN_PATH ? "/" : "") + PLUGIN_NAME; std::unique_ptr mDynamicLibrary; bool (*mGetParamFunc)(); }; -- cgit v1.2.3