diff options
author | Christian Mueller <christian@lmuc329619u.(none)> | 2011-12-18 16:34:27 +0100 |
---|---|---|
committer | Christian Mueller <christian@lmuc329619u.(none)> | 2011-12-18 16:34:27 +0100 |
commit | 2cefc51e7bb2b3810f57e7c340c0c8857de1a05a (patch) | |
tree | 301efa0a0ce6a2baa8d6ead95b58b9354d2076d4 /PluginCommandInterfaceDbus/test/dbuscommandpluginInterfaceTest.h | |
parent | 18b59afe6cda90607ad0b193088000d4f9749a97 (diff) | |
download | audiomanager-2cefc51e7bb2b3810f57e7c340c0c8857de1a05a.tar.gz |
- adds dbus test for command plugin
Diffstat (limited to 'PluginCommandInterfaceDbus/test/dbuscommandpluginInterfaceTest.h')
-rw-r--r-- | PluginCommandInterfaceDbus/test/dbuscommandpluginInterfaceTest.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/PluginCommandInterfaceDbus/test/dbuscommandpluginInterfaceTest.h b/PluginCommandInterfaceDbus/test/dbuscommandpluginInterfaceTest.h new file mode 100644 index 0000000..0f46731 --- /dev/null +++ b/PluginCommandInterfaceDbus/test/dbuscommandpluginInterfaceTest.h @@ -0,0 +1,51 @@ +/* + * dbuscommandpluginInterfaceTest.h + * + * Created on: Dec 14, 2011 + * Author: christian + */ + +#ifndef DBUSCOMMANDPLUGININTERFACETEST_H_ +#define DBUSCOMMANDPLUGININTERFACETEST_H_ + +#include <gtest/gtest.h> +#include <gmock/gmock.h> +#include <dlt/dlt.h> +#include <algorithm> +#include <string> +#include <vector> +#include <set> +#include "CommandReceiver.h" +#include "CommandSender.h" +#include "MockInterfaces.h" +#include "DbusCommandInterfaceBackdoor.h" + + +#define DEFAULT_PLUGIN_COMMAND_DIR "/home/christian/workspace/gitserver/build/plugins/command" +#define UNIT_TEST 1 + +namespace am { + +class DbusCommandInterfaceBackdoor; + +/* + * originally, I would want to have several tests, but there are problems implementing this with + * Dbus. + * I use python to send put the messages and to check the returns I get from the Plugin. + * + */ + + +class dbuscommandpluginInterfaceTest :public ::testing::Test +{ +public: + dbuscommandpluginInterfaceTest(); + ~dbuscommandpluginInterfaceTest(); + + void SetUp(); + void TearDown(); +}; + +} + +#endif /* DBUSCOMMANDPLUGININTERFACETEST_H_ */ |