expect_function_call(__wrap_kds_s2000w_client_set_option);
expect_function_call(__wrap_kds_s2000w_client_set_option);
- sane_kds_s2000w_net_control_option(h, 3, SANE_ACTION_SET_VALUE, "Gray", info);
+ SANE_Status status = sane_kds_s2000w_net_control_option(h, 3, SANE_ACTION_SET_VALUE, "Gray", info);
json_object* config = json_object_object_get(h->scanner_config, "Configuration");
json_object* value_object = json_object_object_get(config, COLOR_MODE);
const char* value = json_object_get_string(value_object);
+ assert_int_equal(status, SANE_STATUS_GOOD);
assert_string_equal(value, "Gray");
assert_int_equal(*info, SANE_INFO_RELOAD_PARAMS);
expect_function_call(__wrap_kds_s2000w_client_set_option);
expect_function_call(__wrap_kds_s2000w_client_set_option);
- sane_kds_s2000w_net_control_option(h, 15, SANE_ACTION_SET_VALUE, set_value, NULL);
+ SANE_Status status = sane_kds_s2000w_net_control_option(h, 15, SANE_ACTION_SET_VALUE, set_value, NULL);
json_object* config = json_object_object_get(h->scanner_config, "Configuration");
json_object* value_object = json_object_object_get(config, FOREGROUND_BOLDNESS_AGGRESSIVENESS);
const char* value = json_object_get_string(value_object);
+ assert_int_equal(status, SANE_STATUS_GOOD);
assert_int_equal(value, 5);
kds_s2000w_client_response_free(set_opt_resp);