summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-09-02 15:23:21 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-09-02 15:24:14 +0200
commit0b6e8f71f1468a7c5a7d77d1514e8e0aeeb93865 (patch)
treed380a75c73e0393bfc36182e23d7134697876cde /src/tests
parentb530670058a46654a9db2c9a9caaf29a7d60f1cc (diff)
eolian: move all tests to use the new @move syntax and API
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/eolian/data/complex_type.eo8
-rw-r--r--src/tests/eolian/data/enum.eo2
-rw-r--r--src/tests/eolian/data/extern.eo2
-rw-r--r--src/tests/eolian/data/free_func.eo2
-rw-r--r--src/tests/eolian/data/function_as_argument.eo2
-rw-r--r--src/tests/eolian/data/function_types.eot2
-rw-r--r--src/tests/eolian/data/object_impl.eo4
-rw-r--r--src/tests/eolian/data/object_impl_add.eo2
-rw-r--r--src/tests/eolian/data/owning.eo12
-rw-r--r--src/tests/eolian/data/struct.eo2
-rw-r--r--src/tests/eolian/data/typedef.eo2
-rw-r--r--src/tests/eolian/data/var.eo2
-rw-r--r--src/tests/eolian/eolian_parsing.c31
13 files changed, 35 insertions, 38 deletions
diff --git a/src/tests/eolian/data/complex_type.eo b/src/tests/eolian/data/complex_type.eo
index 1c8c30823a..9cb6a1faf1 100644
--- a/src/tests/eolian/data/complex_type.eo
+++ b/src/tests/eolian/data/complex_type.eo
@@ -2,20 +2,20 @@ class Complex_Type {
2 methods { 2 methods {
3 @property a { 3 @property a {
4 set { 4 set {
5 return: list<array<strbuf @owned> > @owned; 5 return: list<array<strbuf @move> > @move;
6 } 6 }
7 get { 7 get {
8 } 8 }
9 values { 9 values {
10 value: list<string> @owned; 10 value: list<string> @move;
11 } 11 }
12 } 12 }
13 foo { 13 foo {
14 params { 14 params {
15 buf: mstring @owned; 15 buf: mstring @move;
16 sl: slice<ubyte>; 16 sl: slice<ubyte>;
17 } 17 }
18 return: list<stringshare> @owned; [[comment for method return]] 18 return: list<stringshare> @move; [[comment for method return]]
19 } 19 }
20 } 20 }
21} 21}
diff --git a/src/tests/eolian/data/enum.eo b/src/tests/eolian/data/enum.eo
index bdc9a80e82..0cfc78dd42 100644
--- a/src/tests/eolian/data/enum.eo
+++ b/src/tests/eolian/data/enum.eo
@@ -34,7 +34,7 @@ class Enum {
34 params { 34 params {
35 idx: int; 35 idx: int;
36 } 36 }
37 return: mstring @owned; 37 return: mstring @move;
38 } 38 }
39 } 39 }
40} 40}
diff --git a/src/tests/eolian/data/extern.eo b/src/tests/eolian/data/extern.eo
index 217fb69c27..28ceb7e2aa 100644
--- a/src/tests/eolian/data/extern.eo
+++ b/src/tests/eolian/data/extern.eo
@@ -22,7 +22,7 @@ class Extern {
22 params { 22 params {
23 idx: int; 23 idx: int;
24 } 24 }
25 return: mstring @owned; 25 return: mstring @move;
26 } 26 }
27 } 27 }
28} 28}
diff --git a/src/tests/eolian/data/free_func.eo b/src/tests/eolian/data/free_func.eo
index 55cc05e2b6..b10c74db6a 100644
--- a/src/tests/eolian/data/free_func.eo
+++ b/src/tests/eolian/data/free_func.eo
@@ -16,7 +16,7 @@ class Free_Func {
16 params { 16 params {
17 idx: int; 17 idx: int;
18 } 18 }
19 return: mstring @owned; 19 return: mstring @move;
20 } 20 }
21 } 21 }
22} 22}
diff --git a/src/tests/eolian/data/function_as_argument.eo b/src/tests/eolian/data/function_as_argument.eo
index 68c709d1a0..29b0f4b91c 100644
--- a/src/tests/eolian/data/function_as_argument.eo
+++ b/src/tests/eolian/data/function_as_argument.eo
@@ -13,7 +13,7 @@ class Function_As_Argument {
13 a: int; 13 a: int;
14 b: double; 14 b: double;
15 } 15 }
16 return: mstring @owned; 16 return: mstring @move;
17 } 17 }
18 } 18 }
19} 19}
diff --git a/src/tests/eolian/data/function_types.eot b/src/tests/eolian/data/function_types.eot
index e8bc1865b5..5012d2e47b 100644
--- a/src/tests/eolian/data/function_types.eot
+++ b/src/tests/eolian/data/function_types.eot
@@ -16,7 +16,7 @@ function SimpleFunc {
16function ComplexFunc { 16function ComplexFunc {
17 params { 17 params {
18 @in c: string; 18 @in c: string;
19 @out d: mstring @owned; 19 @out d: mstring @move;
20 } 20 }
21 return: double; 21 return: double;
22}; 22};
diff --git a/src/tests/eolian/data/object_impl.eo b/src/tests/eolian/data/object_impl.eo
index 9cbaed4f6e..db4c46d2b3 100644
--- a/src/tests/eolian/data/object_impl.eo
+++ b/src/tests/eolian/data/object_impl.eo
@@ -13,7 +13,7 @@ abstract Object_Impl extends Base {
13 part: string; 13 part: string;
14 } 14 }
15 values { 15 values {
16 value: list<string> @owned; 16 value: list<string> @move;
17 } 17 }
18 } 18 }
19 @property b { 19 @property b {
@@ -23,7 +23,7 @@ abstract Object_Impl extends Base {
23 /* set as virtual pure - no implementation expected */ 23 /* set as virtual pure - no implementation expected */
24 } 24 }
25 values { 25 values {
26 value: list<string> @owned; 26 value: list<string> @move;
27 } 27 }
28 } 28 }
29 constructor_1 { 29 constructor_1 {
diff --git a/src/tests/eolian/data/object_impl_add.eo b/src/tests/eolian/data/object_impl_add.eo
index e9e97c009f..14888b2c4f 100644
--- a/src/tests/eolian/data/object_impl_add.eo
+++ b/src/tests/eolian/data/object_impl_add.eo
@@ -9,7 +9,7 @@ class Object_Impl_Add extends Base {
9 /* set as virtual pure - no implementation expected */ 9 /* set as virtual pure - no implementation expected */
10 } 10 }
11 values { 11 values {
12 value: list<string> @owned; 12 value: list<string> @move;
13 } 13 }
14 } 14 }
15 } 15 }
diff --git a/src/tests/eolian/data/owning.eo b/src/tests/eolian/data/owning.eo
index e0c97c52fe..6c9cb10046 100644
--- a/src/tests/eolian/data/owning.eo
+++ b/src/tests/eolian/data/owning.eo
@@ -2,16 +2,16 @@ class Owning {
2 methods { 2 methods {
3 test1 { 3 test1 {
4 params { 4 params {
5 test1 : list<string> @owned; 5 test1 : list<string> @move;
6 test2 : iterator<string> @owned; 6 test2 : iterator<string> @move;
7 test3 : hash<string, string> @owned; 7 test3 : hash<string, string> @move;
8 test4 : accessor<string> @owned; 8 test4 : accessor<string> @move;
9 } 9 }
10 } 10 }
11 test2 { 11 test2 {
12 params { 12 params {
13 test1 : list<array<int> @owned> @owned; 13 test1 : list<array<int> @move> @move;
14 test2 : hash<string, array<int> @owned> @owned; 14 test2 : hash<string, array<int> @move> @move;
15 } 15 }
16 } 16 }
17 17
diff --git a/src/tests/eolian/data/struct.eo b/src/tests/eolian/data/struct.eo
index 55e6c50f4c..80a4935ce3 100644
--- a/src/tests/eolian/data/struct.eo
+++ b/src/tests/eolian/data/struct.eo
@@ -21,7 +21,7 @@ class Struct {
21 params { 21 params {
22 idx: int; 22 idx: int;
23 } 23 }
24 return: mstring @owned; 24 return: mstring @move;
25 } 25 }
26 bar { 26 bar {
27 return: ptr(Named); 27 return: ptr(Named);
diff --git a/src/tests/eolian/data/typedef.eo b/src/tests/eolian/data/typedef.eo
index 29f88e42c3..916a39fcfc 100644
--- a/src/tests/eolian/data/typedef.eo
+++ b/src/tests/eolian/data/typedef.eo
@@ -23,7 +23,7 @@ class Typedef {
23 params { 23 params {
24 idx: int; 24 idx: int;
25 } 25 }
26 return: mstring @owned; 26 return: mstring @move;
27 } 27 }
28 } 28 }
29} 29}
diff --git a/src/tests/eolian/data/var.eo b/src/tests/eolian/data/var.eo
index a618f0331f..98afb713df 100644
--- a/src/tests/eolian/data/var.eo
+++ b/src/tests/eolian/data/var.eo
@@ -16,7 +16,7 @@ class Var {
16 params { 16 params {
17 idx: int; 17 idx: int;
18 } 18 }
19 return: mstring @owned; 19 return: mstring @move;
20 } 20 }
21 } 21 }
22} 22}
diff --git a/src/tests/eolian/eolian_parsing.c b/src/tests/eolian/eolian_parsing.c
index 89daec1af5..c6e5c85df8 100644
--- a/src/tests/eolian/eolian_parsing.c
+++ b/src/tests/eolian/eolian_parsing.c
@@ -357,7 +357,6 @@ EFL_START_TEST(eolian_typedef)
357 eina_stringshare_del(type_name); 357 eina_stringshare_del(type_name);
358 fail_if(!(type = eolian_typedecl_base_type_get(tdl))); 358 fail_if(!(type = eolian_typedecl_base_type_get(tdl)));
359 fail_if(!(type_name = eolian_type_short_name_get(type))); 359 fail_if(!(type_name = eolian_type_short_name_get(type)));
360 fail_if(eolian_type_is_owned(type));
361 fail_if(eolian_type_is_const(type)); 360 fail_if(eolian_type_is_const(type));
362 fail_if(eolian_type_base_type_get(type)); 361 fail_if(eolian_type_base_type_get(type));
363 fail_if(strcmp(type_name, "int")); 362 fail_if(strcmp(type_name, "int"));
@@ -377,14 +376,12 @@ EFL_START_TEST(eolian_typedef)
377 fail_if(strcmp(type_name, "List_Objects")); 376 fail_if(strcmp(type_name, "List_Objects"));
378 fail_if(!(type = eolian_typedecl_base_type_get(tdl))); 377 fail_if(!(type = eolian_typedecl_base_type_get(tdl)));
379 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_DEFAULT))); 378 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_DEFAULT)));
380 fail_if(eolian_type_is_owned(type));
381 fail_if(strcmp(type_name, "Eina_List *")); 379 fail_if(strcmp(type_name, "Eina_List *"));
382 eina_stringshare_del(type_name); 380 eina_stringshare_del(type_name);
383 fail_if(!(type = eolian_type_base_type_get(type))); 381 fail_if(!(type = eolian_type_base_type_get(type)));
384 fail_if(!!eolian_type_next_type_get(type)); 382 fail_if(!!eolian_type_next_type_get(type));
385 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_DEFAULT))); 383 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_DEFAULT)));
386 fail_if(strcmp(type_name, "Typedef *")); 384 fail_if(strcmp(type_name, "Typedef *"));
387 fail_if(eolian_type_is_owned(type));
388 eina_stringshare_del(type_name); 385 eina_stringshare_del(type_name);
389 386
390 /* List */ 387 /* List */
@@ -429,21 +426,21 @@ EFL_START_TEST(eolian_complex_type)
429 fail_if(!(fid = eolian_class_function_by_name_get(class, "a", EOLIAN_PROPERTY))); 426 fail_if(!(fid = eolian_class_function_by_name_get(class, "a", EOLIAN_PROPERTY)));
430 fail_if(!(type = eolian_function_return_type_get(fid, EOLIAN_PROP_SET))); 427 fail_if(!(type = eolian_function_return_type_get(fid, EOLIAN_PROP_SET)));
431 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_RETURN))); 428 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_RETURN)));
432 fail_if(!eolian_type_is_owned(type)); 429 fail_if(!eolian_function_return_is_move(fid, EOLIAN_PROP_SET));
433 fail_if(eolian_type_builtin_type_get(type) != EOLIAN_TYPE_BUILTIN_LIST); 430 fail_if(eolian_type_builtin_type_get(type) != EOLIAN_TYPE_BUILTIN_LIST);
434 fail_if(strcmp(type_name, "Eina_List *")); 431 fail_if(strcmp(type_name, "Eina_List *"));
435 eina_stringshare_del(type_name); 432 eina_stringshare_del(type_name);
436 fail_if(!(type = eolian_type_base_type_get(type))); 433 fail_if(!(type = eolian_type_base_type_get(type)));
437 fail_if(!!eolian_type_next_type_get(type)); 434 fail_if(!!eolian_type_next_type_get(type));
438 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_DEFAULT))); 435 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_DEFAULT)));
439 fail_if(eolian_type_is_owned(type)); 436 fail_if(eolian_type_is_move(type));
440 fail_if(eolian_type_builtin_type_get(type) != EOLIAN_TYPE_BUILTIN_ARRAY); 437 fail_if(eolian_type_builtin_type_get(type) != EOLIAN_TYPE_BUILTIN_ARRAY);
441 fail_if(strcmp(type_name, "Eina_Array *")); 438 fail_if(strcmp(type_name, "Eina_Array *"));
442 eina_stringshare_del(type_name); 439 eina_stringshare_del(type_name);
443 fail_if(!(type = eolian_type_base_type_get(type))); 440 fail_if(!(type = eolian_type_base_type_get(type)));
444 fail_if(!!eolian_type_next_type_get(type)); 441 fail_if(!!eolian_type_next_type_get(type));
445 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_DEFAULT))); 442 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_DEFAULT)));
446 fail_if(!eolian_type_is_owned(type)); 443 fail_if(!eolian_type_is_move(type));
447 fail_if(strcmp(type_name, "Eina_Strbuf *")); 444 fail_if(strcmp(type_name, "Eina_Strbuf *"));
448 eina_stringshare_del(type_name); 445 eina_stringshare_del(type_name);
449 /* Properties parameter type */ 446 /* Properties parameter type */
@@ -454,13 +451,13 @@ EFL_START_TEST(eolian_complex_type)
454 fail_if(strcmp(eolian_parameter_name_get(param), "value")); 451 fail_if(strcmp(eolian_parameter_name_get(param), "value"));
455 fail_if(!(type = eolian_parameter_type_get(param))); 452 fail_if(!(type = eolian_parameter_type_get(param)));
456 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_PARAM))); 453 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_PARAM)));
457 fail_if(!eolian_type_is_owned(type)); 454 fail_if(!eolian_parameter_is_move(param));
458 fail_if(strcmp(type_name, "Eina_List *")); 455 fail_if(strcmp(type_name, "Eina_List *"));
459 eina_stringshare_del(type_name); 456 eina_stringshare_del(type_name);
460 fail_if(!(type = eolian_type_base_type_get(type))); 457 fail_if(!(type = eolian_type_base_type_get(type)));
461 fail_if(!!eolian_type_next_type_get(type)); 458 fail_if(!!eolian_type_next_type_get(type));
462 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_DEFAULT))); 459 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_DEFAULT)));
463 fail_if(eolian_type_is_owned(type)); 460 fail_if(eolian_type_is_move(type));
464 fail_if(strcmp(type_name, "const char *")); 461 fail_if(strcmp(type_name, "const char *"));
465 eina_stringshare_del(type_name); 462 eina_stringshare_del(type_name);
466 463
@@ -468,13 +465,13 @@ EFL_START_TEST(eolian_complex_type)
468 fail_if(!(fid = eolian_class_function_by_name_get(class, "foo", EOLIAN_METHOD))); 465 fail_if(!(fid = eolian_class_function_by_name_get(class, "foo", EOLIAN_METHOD)));
469 fail_if(!(type = eolian_function_return_type_get(fid, EOLIAN_METHOD))); 466 fail_if(!(type = eolian_function_return_type_get(fid, EOLIAN_METHOD)));
470 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_RETURN))); 467 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_RETURN)));
471 fail_if(!eolian_type_is_owned(type)); 468 fail_if(!eolian_function_return_is_move(fid, EOLIAN_METHOD));
472 fail_if(strcmp(type_name, "Eina_List *")); 469 fail_if(strcmp(type_name, "Eina_List *"));
473 eina_stringshare_del(type_name); 470 eina_stringshare_del(type_name);
474 fail_if(!(type = eolian_type_base_type_get(type))); 471 fail_if(!(type = eolian_type_base_type_get(type)));
475 fail_if(!!eolian_type_next_type_get(type)); 472 fail_if(!!eolian_type_next_type_get(type));
476 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_DEFAULT))); 473 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_DEFAULT)));
477 fail_if(eolian_type_is_owned(type)); 474 fail_if(eolian_type_is_move(type));
478 fail_if(eolian_type_builtin_type_get(type) != EOLIAN_TYPE_BUILTIN_STRINGSHARE); 475 fail_if(eolian_type_builtin_type_get(type) != EOLIAN_TYPE_BUILTIN_STRINGSHARE);
479 fail_if(strcmp(type_name, "Eina_Stringshare *")); 476 fail_if(strcmp(type_name, "Eina_Stringshare *"));
480 eina_stringshare_del(type_name); 477 eina_stringshare_del(type_name);
@@ -485,7 +482,7 @@ EFL_START_TEST(eolian_complex_type)
485 fail_if(strcmp(eolian_parameter_name_get(param), "buf")); 482 fail_if(strcmp(eolian_parameter_name_get(param), "buf"));
486 fail_if(!(type = eolian_parameter_type_get(param))); 483 fail_if(!(type = eolian_parameter_type_get(param)));
487 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_PARAM))); 484 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_PARAM)));
488 fail_if(!eolian_type_is_owned(type)); 485 fail_if(!eolian_parameter_is_move(param));
489 fail_if(eolian_type_builtin_type_get(type) != EOLIAN_TYPE_BUILTIN_MSTRING); 486 fail_if(eolian_type_builtin_type_get(type) != EOLIAN_TYPE_BUILTIN_MSTRING);
490 fail_if(strcmp(type_name, "char *")); 487 fail_if(strcmp(type_name, "char *"));
491 eina_stringshare_del(type_name); 488 eina_stringshare_del(type_name);
@@ -494,7 +491,7 @@ EFL_START_TEST(eolian_complex_type)
494 fail_if(strcmp(eolian_parameter_name_get(param), "sl")); 491 fail_if(strcmp(eolian_parameter_name_get(param), "sl"));
495 fail_if(!(type = eolian_parameter_type_get(param))); 492 fail_if(!(type = eolian_parameter_type_get(param)));
496 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_PARAM))); 493 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_PARAM)));
497 fail_if(eolian_type_is_owned(type)); 494 fail_if(eolian_parameter_is_move(param));
498 fail_if(eolian_type_builtin_type_get(type) != EOLIAN_TYPE_BUILTIN_SLICE); 495 fail_if(eolian_type_builtin_type_get(type) != EOLIAN_TYPE_BUILTIN_SLICE);
499 fail_if(strcmp(type_name, "Eina_Slice")); 496 fail_if(strcmp(type_name, "Eina_Slice"));
500 eina_stringshare_del(type_name); 497 eina_stringshare_del(type_name);
@@ -1386,7 +1383,7 @@ EFL_START_TEST(eolian_function_types)
1386 fail_if(strcmp(eolian_parameter_name_get(param), "c")); 1383 fail_if(strcmp(eolian_parameter_name_get(param), "c"));
1387 fail_if(!(type = eolian_parameter_type_get(param))); 1384 fail_if(!(type = eolian_parameter_type_get(param)));
1388 fail_if(eolian_parameter_direction_get(param) != EOLIAN_IN_PARAM); 1385 fail_if(eolian_parameter_direction_get(param) != EOLIAN_IN_PARAM);
1389 fail_if(eolian_type_is_owned(type)); 1386 fail_if(eolian_parameter_is_move(param));
1390 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_PARAM))); 1387 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_PARAM)));
1391 fail_if(strcmp(type_name, "const char *")); 1388 fail_if(strcmp(type_name, "const char *"));
1392 1389
@@ -1395,7 +1392,7 @@ EFL_START_TEST(eolian_function_types)
1395 fail_if(strcmp(eolian_parameter_name_get(param), "d")); 1392 fail_if(strcmp(eolian_parameter_name_get(param), "d"));
1396 fail_if(eolian_parameter_direction_get(param) != EOLIAN_OUT_PARAM); 1393 fail_if(eolian_parameter_direction_get(param) != EOLIAN_OUT_PARAM);
1397 fail_if(!(type = eolian_parameter_type_get(param))); 1394 fail_if(!(type = eolian_parameter_type_get(param)));
1398 fail_if(!eolian_type_is_owned(type)); 1395 fail_if(!eolian_parameter_is_move(param));
1399 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_PARAM))); 1396 fail_if(!(type_name = eolian_type_c_type_get(type, EOLIAN_C_TYPE_PARAM)));
1400 fail_if(strcmp(type_name, "char *")); 1397 fail_if(strcmp(type_name, "char *"));
1401 1398
@@ -1416,7 +1413,7 @@ EFL_START_TEST(eolian_function_types)
1416 fail_if(strcmp(eolian_parameter_name_get(param), "cb")); 1413 fail_if(strcmp(eolian_parameter_name_get(param), "cb"));
1417 fail_if(!(type = eolian_parameter_type_get(param))); 1414 fail_if(!(type = eolian_parameter_type_get(param)));
1418 fail_if(eolian_parameter_direction_get(param) != EOLIAN_IN_PARAM); 1415 fail_if(eolian_parameter_direction_get(param) != EOLIAN_IN_PARAM);
1419 fail_if(eolian_type_is_owned(type)); 1416 fail_if(eolian_parameter_is_move(param));
1420 fail_if(!(type_name = eolian_type_short_name_get(type))); 1417 fail_if(!(type_name = eolian_type_short_name_get(type)));
1421 fail_if(strcmp(type_name, "VoidFunc")); 1418 fail_if(strcmp(type_name, "VoidFunc"));
1422 fail_if(!(arg_decl = eolian_type_typedecl_get(type))); 1419 fail_if(!(arg_decl = eolian_type_typedecl_get(type)));
@@ -1426,7 +1423,7 @@ EFL_START_TEST(eolian_function_types)
1426 fail_if(strcmp(eolian_parameter_name_get(param), "another_cb")); 1423 fail_if(strcmp(eolian_parameter_name_get(param), "another_cb"));
1427 fail_if(eolian_parameter_direction_get(param) != EOLIAN_IN_PARAM); 1424 fail_if(eolian_parameter_direction_get(param) != EOLIAN_IN_PARAM);
1428 fail_if(!(type = eolian_parameter_type_get(param))); 1425 fail_if(!(type = eolian_parameter_type_get(param)));
1429 fail_if(eolian_type_is_owned(type)); 1426 fail_if(eolian_parameter_is_move(param));
1430 fail_if(eolian_type_type_get(type) != EOLIAN_TYPE_REGULAR); 1427 fail_if(eolian_type_type_get(type) != EOLIAN_TYPE_REGULAR);
1431 fail_if(!(type_name = eolian_type_short_name_get(type))); 1428 fail_if(!(type_name = eolian_type_short_name_get(type)));
1432 fail_if(strcmp(type_name, "SimpleFunc")); 1429 fail_if(strcmp(type_name, "SimpleFunc"));
@@ -1467,7 +1464,7 @@ EFL_START_TEST(eolian_function_as_arguments)
1467 fail_if(strcmp(eolian_parameter_name_get(param), "cb")); 1464 fail_if(strcmp(eolian_parameter_name_get(param), "cb"));
1468 fail_if(!(type = eolian_parameter_type_get(param))); 1465 fail_if(!(type = eolian_parameter_type_get(param)));
1469 fail_if(eolian_parameter_direction_get(param) != EOLIAN_IN_PARAM); 1466 fail_if(eolian_parameter_direction_get(param) != EOLIAN_IN_PARAM);
1470 fail_if(eolian_type_is_owned(type)); 1467 fail_if(eolian_parameter_is_move(param));
1471 fail_if(!(type_name = eolian_type_short_name_get(type))); 1468 fail_if(!(type_name = eolian_type_short_name_get(type)));
1472 fail_if(strcmp(type_name, "SimpleFunc")); 1469 fail_if(strcmp(type_name, "SimpleFunc"));
1473 fail_if(!(arg_decl = eolian_type_typedecl_get(type))); 1470 fail_if(!(arg_decl = eolian_type_typedecl_get(type)));