will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
char value[50] = {0};
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 2, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_string_equal(value, "DocumentFeeder");
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
char value[50] = {0};
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 3, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_string_equal(value, "Color");
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
int value = 0;
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 4, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_int_equal(value, 200);
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
+
char value[50] = {0};
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 5, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_string_equal(value, "Duplex");
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
int value = 0;
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 6, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_int_equal(value, 8);
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
int value = -1;
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 8, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_int_equal(value, 0);
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
char value[50] = {0};
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 9, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_string_equal(value, "None");
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
int value = -1;
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 10, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_int_equal(value, 0);
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
char value[50] = {0};
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 11, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_string_equal(value, "Automatic");
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
char value[50] = {0};
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 12, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_string_equal(value, "Automatic");
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
int value = -1;
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 13, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_int_equal(value, 0);
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
int value = -1;
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 14, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_int_equal(value, 0);
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
int value = -1;
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 15, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_int_equal(value, 0);
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
int value = -1;
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 16, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_int_equal(value, 0);
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
char value[50] = {0};
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 17, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_string_equal(value, "None");
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
int value = -1;
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 18, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_int_equal(value, 0);
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
char value[50] = {0};
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 19, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_string_equal(value, "None");
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
int value = -1;
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 20, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_int_equal(value, 0);
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
int value = -1;
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 21, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_int_equal(value, 0);
free_handler(h);
will_return(__wrap_kds_s2000w_client_get_option, 0);
expect_function_call(__wrap_kds_s2000w_client_get_option);
handler* h = init_handler();
- int option_num = 0;
int value = -1;
- _sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &option_num, NULL);
_sane_kds_s2000w_net_control_option(h, 22, SANE_ACTION_GET_VALUE, &value, NULL);
- assert_int_equal(option_num, 24);
assert_int_equal(value, 140);
free_handler(h);