diff options
author | François Gaffie <francois.gaffie@renault.com> | 2019-04-18 08:37:59 +0200 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2019-10-09 15:10:39 -0700 |
commit | ade38ca7bd52bf3b455c0d97a75f87aae650aa56 (patch) | |
tree | f4321c33e5ed210e747b9e9bbccba3417f8fb860 | |
parent | 639e5c89e5404257d68ca1edb94e1bc3eea9416e (diff) | |
download | parameter-framework-ade38ca7bd52bf3b455c0d97a75f87aae650aa56.tar.gz |
follow-up: Functional test: improve test to run on target
Apply clang format
Test: build
Change-Id: I321a0506c1880fa5431582247fd9f21d5e6c8235
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
-rw-r--r-- | upstream/test/functional-tests/AutoSync.cpp | 10 |
1 files 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<DynamicLibrary>(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<DynamicLibrary> mDynamicLibrary; bool (*mGetParamFunc)(); }; |