diff --git a/android/tester-main.c b/android/tester-main.c
index f5ac281..dde04b9 100644
--- a/android/tester-main.c
+++ b/android/tester-main.c
return false;
}
- if (exp->action_result.status != step->action_result.status) {
+ if (exp->action_status != step->action_status) {
tester_debug("Action status don't match");
return false;
}
if (status) {
tester_warn("Emulated remote setup failed.");
- step.action_result.status = BT_STATUS_FAIL;
+ step.action_status = BT_STATUS_FAIL;
} else {
tester_warn("Emulated remote setup done.");
- step.action_result.status = BT_STATUS_SUCCESS;
+ step.action_status = BT_STATUS_SUCCESS;
}
verify_step(&step, NULL);
struct step step;
memset(&step, 0, sizeof(step));
- step.action_result.status = data->if_bluetooth->enable();
+ step.action_status = data->if_bluetooth->enable();
verify_step(&step, NULL);
}
struct step step;
memset(&step, 0, sizeof(step));
- step.action_result.status = data->if_bluetooth->disable();
+ step.action_status = data->if_bluetooth->disable();
verify_step(&step, NULL);
}
prop = (bt_property_t *)current_data_step->set_data;
memset(&step, 0, sizeof(step));
- step.action_result.status = data->if_bluetooth->set_adapter_property(
+ step.action_status = data->if_bluetooth->set_adapter_property(
prop);
verify_step(&step, NULL);
prop = (bt_property_t *)current_data_step->set_data;
memset(&step, 0, sizeof(step));
- step.action_result.status = data->if_bluetooth->get_adapter_property(
+ step.action_status = data->if_bluetooth->get_adapter_property(
prop->type);
verify_step(&step, NULL);
struct test_data *data = tester_get_data();
struct step step;
- step.action_result.status = data->if_bluetooth->start_discovery();
+ step.action_status = data->if_bluetooth->start_discovery();
verify_step(&step, NULL);
}
struct step step;
memset(&step, 0, sizeof(step));
- step.action_result.status = data->if_bluetooth->cancel_discovery();
+ step.action_status = data->if_bluetooth->cancel_discovery();
verify_step(&step, NULL);
}
}
memset(&step, 0, sizeof(step));
- step.action_result.status =
+ step.action_status =
data->if_bluetooth->get_remote_device_properties(
current_data_step->set_data);
diff --git a/android/tester-main.h b/android/tester-main.h
index b81487d..920f82c 100644
--- a/android/tester-main.h
+++ b/android/tester-main.h
}
#define ACTION_SUCCESS(act_fun, data_set) { \
- .action_result.status = BT_STATUS_SUCCESS, \
+ .action_status = BT_STATUS_SUCCESS, \
.action = act_fun, \
.set_data = data_set, \
}
#define ACTION_FAIL(act_fun, data_set) { \
- .action_result.status = BT_STATUS_FAIL, \
+ .action_status = BT_STATUS_FAIL, \
.action = act_fun, \
.set_data = data_set, \
}
};
/*
- * Struct of data to check within step action.
- */
-struct bt_action_data {
- uint8_t status;
-};
-
-/*
* Callback data structure should be enhanced with data
* returned by callbacks. It's used for test case step
* matching with expected step data.
*/
struct step {
void (*action)(void);
- struct bt_action_data action_result;
+ int action_status;
expected_bt_callback_t callback;
struct bt_callback_data callback_result;