summaryrefslogtreecommitdiff
path: root/src/tests/eldbus/eldbus_test_eldbus_model.h
blob: 53f61fcd3db736bb64da7b339db5a9f063ae576c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef _ELDBUS_TEST_ELDBUS_MODEL_H
#define _ELDBUS_TEST_ELDBUS_MODEL_H

#include <Eo.h>
#include <Eldbus_Model.h>
#include <Efl.h>

void check_init(void);
void check_shutdown(void);
Eo *create_connection(void);
Eo *create_object(void);

void efl_model_wait_for_event(Eo *obj, const Eo_Event_Description *event);
Efl_Model *efl_model_nth_child_get(Efl_Model *obj, unsigned int n);
Efl_Model *efl_model_first_child_get(Efl_Model *efl_model);

void check_efl_model_children_count_eq(Efl_Model *obj, unsigned int expected_children_count);
void check_efl_model_children_count_ge(Efl_Model *obj, unsigned int minimum_children_count);
void check_efl_model_children_slice_get(Efl_Model *efl_model);
void check_efl_model_property_int_eq(Efl_Model *obj, const char *property, int expected_value);
void check_efl_model_property_int_set(Efl_Model *obj, const char *property, int value);
void check_efl_model_promise_error(Eina_Promise *promise, Eina_Error *err);


void *efl_model_promise_then(Eina_Promise *promise);
int efl_model_promise_then_u(Eina_Promise *promise);

Eldbus_Model_Proxy *eldbus_model_proxy_from_object_get(Eldbus_Model_Object *object, const char *interface_name);
Eldbus_Model_Method *eldbus_model_method_from_proxy_get(Eldbus_Model_Proxy *proxy, const char *method_name);
Eldbus_Model_Signal *eldbus_model_signal_from_proxy_get(Eldbus_Model_Proxy *proxy, const char *signal_name);

#endif