eolian-cxx: Add tests for @beta and @protected events

This commit is contained in:
Felipe Magno de Almeida 2016-06-15 12:19:10 -03:00
parent f7e09d3570
commit 210a740cc2
2 changed files with 22 additions and 1 deletions

View File

@ -5,6 +5,9 @@
#include <Eo.h>
#include <Ecore.h>
#define GENERIC_BETA
#define GENERIC_PROTECTED
#include "generic.eo.h"
#include <check.h>
@ -125,5 +128,13 @@ static void _generic_call_event5(Eo *obj, Generic_Data* pd EINA_UNUSED)
eo_event_callback_call(obj, GENERIC_EVENT_PREFIX_EVENT5, &e);
eina_list_free(p);
}
static void _generic_protected_method1(Eo *obj EINA_UNUSED, Generic_Data* pd EINA_UNUSED)
{
}
static void _generic_protected_beta_method1(Eo *obj EINA_UNUSED, Generic_Data* pd EINA_UNUSED)
{
}
static void _generic_beta_method1(Eo *obj EINA_UNUSED, Generic_Data* pd EINA_UNUSED)
{
}
#include "generic.eo.c"

View File

@ -87,6 +87,13 @@ class Generic (Eo.Base)
}
call_event5 {
}
protected_method1 @protected {
}
beta_method1 @beta {
}
protected_beta_method1 @protected @beta {
}
}
constructors {
.required_ctor_a;
@ -103,5 +110,8 @@ class Generic (Eo.Base)
prefix,event3: int;
prefix,event4: list<int>;
prefix,event5: Generic.Event;
protected,event1 @protected;
beta,event1 @beta;
protected,beta,event1 @beta @protected;
}
}