forked from enlightenment/efl
tests/ecore_wl2: Simplify test infrastructure
This commit adds the _display_connect function to the tests_helpers file so that we do not have to duplicate the function across files. ref T8016
This commit is contained in:
parent
a866de4ff0
commit
d0845de6b3
|
@ -11,6 +11,12 @@
|
|||
#include "ecore_wl2_suite.h"
|
||||
#include "ecore_wl2_tests_helpers.h"
|
||||
|
||||
static Ecore_Wl2_Display *
|
||||
_display_setup(void)
|
||||
{
|
||||
return ecore_wl2_display_create(NULL);
|
||||
}
|
||||
|
||||
EFL_START_TEST(wl2_display_create)
|
||||
{
|
||||
Ecore_Wl2_Display *disp;
|
||||
|
|
|
@ -9,15 +9,7 @@
|
|||
#include <Ecore_Wl2.h>
|
||||
|
||||
#include "ecore_wl2_suite.h"
|
||||
|
||||
static Ecore_Wl2_Display *
|
||||
_display_connect(void)
|
||||
{
|
||||
Ecore_Wl2_Display *disp;
|
||||
|
||||
disp = ecore_wl2_display_connect(NULL);
|
||||
return disp;
|
||||
}
|
||||
#include "ecore_wl2_tests_helpers.h"
|
||||
|
||||
EFL_START_TEST(wl2_input_seat_get)
|
||||
{
|
||||
|
|
|
@ -9,19 +9,11 @@
|
|||
#include <Ecore_Wl2.h>
|
||||
|
||||
#include "ecore_wl2_suite.h"
|
||||
#include "ecore_wl2_tests_helpers.h"
|
||||
|
||||
#define WIDTH 480
|
||||
#define HEIGHT 360
|
||||
|
||||
static Ecore_Wl2_Display *
|
||||
_display_connect(void)
|
||||
{
|
||||
Ecore_Wl2_Display *disp;
|
||||
|
||||
disp = ecore_wl2_display_connect(NULL);
|
||||
return disp;
|
||||
}
|
||||
|
||||
static Ecore_Wl2_Window *
|
||||
_window_create(Ecore_Wl2_Display *disp)
|
||||
{
|
||||
|
|
|
@ -3,22 +3,10 @@
|
|||
|
||||
# include <Ecore_Wl2.h>
|
||||
|
||||
static Ecore_Wl2_Display *
|
||||
_display_setup(void)
|
||||
{
|
||||
Ecore_Wl2_Display *disp;
|
||||
|
||||
disp = ecore_wl2_display_create(NULL);
|
||||
return disp;
|
||||
}
|
||||
|
||||
static Ecore_Wl2_Display *
|
||||
_display_connect(void)
|
||||
{
|
||||
Ecore_Wl2_Display *disp;
|
||||
|
||||
disp = ecore_wl2_display_connect(NULL);
|
||||
return disp;
|
||||
return ecore_wl2_display_connect(NULL);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue