summaryrefslogtreecommitdiffstats
path: root/test/test-platform/TestPlatform.h
diff options
context:
space:
mode:
authorKevin Rocard <kevinx.rocard@intel.com>2013-07-10 18:28:10 +0200
committerDavid Wagner <david.wagner@intel.com>2014-02-12 17:04:07 +0100
commit2448cf71ad24cbbcbbc89cc7522c431413617692 (patch)
tree56a55410b668052dffe57b876082a9c0a163d545 /test/test-platform/TestPlatform.h
parentecf9310061f47da0fd9f3d604e8b20f4fcb5749c (diff)
downloadexternal_parameter-framework-2448cf71ad24cbbcbbc89cc7522c431413617692.zip
external_parameter-framework-2448cf71ad24cbbcbbc89cc7522c431413617692.tar.gz
external_parameter-framework-2448cf71ad24cbbcbbc89cc7522c431413617692.tar.bz2
Add a command to set missing subsystem policy
BZ: 122982 When the PFW starts, it loads subsystems using their corresponding plugins. If a requested plugin is not found, the start fails. This is a problem, as for host, plugins are not compiled. Add a command in test platform to use the feature continue load on missing subsystem. Change-Id: Ib533123683b860bfbe0fea069f4bb3c1cc1ef2d0 Signed-off-by: Kevin Rocard <kevinx.rocard@intel.com> Reviewed-on: http://android.intel.com:8080/119305 Reviewed-by: Centelles, Sylvain <sylvain.centelles@intel.com> Tested-by: Barthes, FabienX <fabienx.barthes@intel.com> Reviewed-by: cactus <cactus@intel.com> Tested-by: cactus <cactus@intel.com>
Diffstat (limited to 'test/test-platform/TestPlatform.h')
-rw-r--r--test/test-platform/TestPlatform.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/test/test-platform/TestPlatform.h b/test/test-platform/TestPlatform.h
index 8a3e59c..47f81f8 100644
--- a/test/test-platform/TestPlatform.h
+++ b/test/test-platform/TestPlatform.h
@@ -24,9 +24,9 @@
*/
#pragma once
+#include "RemoteCommandHandlerTemplate.h"
#include <string>
#include <list>
-#include "RemoteCommandHandlerTemplate.h"
using namespace std;
@@ -57,6 +57,27 @@ private:
CCommandHandler::CommandStatus setCriterionStateCommandProcess(const IRemoteCommand& remoteCommand, string& strResult);
CCommandHandler::CommandStatus applyConfigurationsCommandProcess(const IRemoteCommand& remoteCommand, string& strResult);
+ /** Callback to set if the PFW start should fail in case of missing subsystems.
+ *
+ * @param[in] remoteCommand contains the arguments of the received command.
+ * @param[out] strResult a string containing the result of the command.
+ *
+ * @return CCommandHandler::ESucceeded if command succeeded
+ * or CCommandHandler::EFailed otherwise
+ */
+ CCommandHandler::CommandStatus setFailureOnMissingSubsystemCommandProcess(
+ const IRemoteCommand& remoteCommand, string& strResult);
+ /** Callback to get if the PFW start should fail in case of missing subsystems.
+ *
+ * @param[in] remoteCommand contains the arguments of the received command.
+ * @param[out] strResult a string containing the result of the command.
+ *
+ * @return CCommandHandler::ESucceeded if command succeeded
+ * or CCommandHandler::EFailed otherwise
+ */
+ CCommandHandler::CommandStatus getFailureOnMissingSubsystemCommandProcess(
+ const IRemoteCommand& remoteCommand, string& strResult);
+
// Commands
bool createExclusiveSelectionCriterionFromStateList(const string& strName, const IRemoteCommand& remoteCommand, string& strResult);
bool createInclusiveSelectionCriterionFromStateList(const string& strName, const IRemoteCommand& remoteCommand, string& strResult);