static Eina_Bool
checkEcoreDeviceInfo(Ecore_Device *dev)
{
- DBG("[%s] name(%s), description(%s), class(%d), subclass(%d)", __func__, ecore_device_name_get(dev), ecore_device_description_get(dev), ecore_device_class_get(dev), evas_device_subclass_get(dev));
+ DBG("[%s] name(%s), description(%s), class(%d), subclass(%d)", __func__, ecore_device_name_get(dev), ecore_device_description_get(dev), ecore_device_class_get(dev), ecore_device_subclass_get(dev));
unsigned int description_len = strlen(ecore_device_description_get(dev));
unsigned int name_len = strlen(ecore_device_name_get(dev));
{
Eina_Bool res = 0;
const int win_w = 100, win_h = 100;
- int screen_w = 0, screen_h = 0;
double ratio_w = 1.0, ratio_h = 1.0;
etWin *tw = NULL;
ASSERT_FOCUS_IN(tw_red);
ASSERT_TRUE(tw_red != NULL) << "failed to initiation window";
- res = etRunner::get().getScreenSize(&screen_w, &screen_h);
- ASSERT_EQ(res, EINA_TRUE) << "failed to get screen size";
- ratio_w = (double) screen_w / CONFIGURED_OUTPUT_RESOLUTION_W;
- ratio_h = (double) screen_h / CONFIGURED_OUTPUT_RESOLUTION_H;
+ ratio_w = (double) etRunner::get().output.w / CONFIGURED_OUTPUT_RESOLUTION_W;
+ ratio_h = (double) etRunner::get().output.h / CONFIGURED_OUTPUT_RESOLUTION_H;
// Expected window size res:
// tw_red.w = ratio_w * win_w (150 as FHD screen)
{
Eina_Bool res = 0;
const int win_w = 100, win_h = 100;
- int screen_w = 0, screen_h = 0;
double ratio_w = 1.0, ratio_h = 1.0;
etWin *tw = NULL;
ASSERT_FOCUS_IN(tw_red);
ASSERT_TRUE(tw_red != NULL) << "failed to initiation window";
- res = etRunner::get().getScreenSize(&screen_w, &screen_h);
- ASSERT_EQ(res, EINA_TRUE) << "failed to get screen size";
- ratio_w = (double) screen_w / BASE_OUTPUT_RESOLUTION_W;
- ratio_h = (double) screen_h / BASE_OUTPUT_RESOLUTION_H;
+ ratio_w = (double) etRunner::get().output.w / BASE_OUTPUT_RESOLUTION_W;
+ ratio_h = (double) etRunner::get().output.h / BASE_OUTPUT_RESOLUTION_H;
// Expected window size res:
// tw_red.w = ratio_w * win_w (300 as FHD screen)
ret = inputgen_h->generatePointerMove(1, pos_x, pos_y);
ASSERT_TRUE(ret);
ev_result = etRunner::get().waitEvent(NULL, E_TC_EVENT_TYPE_INPUT_ECORE_MOUSE);
+ ASSERT_NE(ev_result, nullptr);
res = etRunner::get().unsetConfiguredOutputResolution();
ASSERT_EQ(res, 0);
ret = inputgen_h->generatePointerMove(1, pos_x, pos_y);
ASSERT_TRUE(ret);
ev_result = etRunner::get().waitEvent(NULL, E_TC_EVENT_TYPE_INPUT_ECORE_MOUSE);
+ ASSERT_NE(ev_result, nullptr);
res = etRunner::get().unsetBaseOutputResolution(getpid());
ASSERT_EQ(res, 0);