#include <dirent.h>
#include <dlfcn.h>
+#define KEYBOARD_MODULE "libmmi_modality_keyboard.so"
+#define MODALITY_KEYBOARD_MODULE_PATH (PROVIDER_PATH KEYBOARD_MODULE)
+
class MMIProviderTest : public ::testing::Test
{
public:
{
int r = -1;
- mmi_provider_handle *provider = _provider_load_module("/lib/provider/libmmi_modality_keyboard.so");
+ mmi_provider_handle *provider = _provider_load_module(MODALITY_KEYBOARD_MODULE_PATH);
EXPECT_EQ(provider->capabilities, MODALITY_PROVIDER_CAP_KEY_EVENT);
EXPECT_NE(provider, nullptr);
{
int r = -1;
- mmi_provider_handle *provider = _provider_load_module("/lib/provider/libmmi_modality_keyboard.so");
+ mmi_provider_handle *provider = _provider_load_module(MODALITY_KEYBOARD_MODULE_PATH);
EXPECT_EQ(provider->capabilities, MODALITY_PROVIDER_CAP_KEY_EVENT);
EXPECT_NE(provider, nullptr);