{
SANE_Option_Descriptor* option = kds_s2000w_option_descriptors_get(9);
- assert_string_equal(SANE_NAME_SCAN_TL_X, option->name);
- assert_string_equal(SANE_TITLE_SCAN_TL_X, option->title);
- assert_string_equal(SANE_DESC_SCAN_TL_X, option->desc);
+ assert_string_equal("image-offset-x", option->name);
+ assert_string_equal("Image Offset X", option->title);
+ assert_string_equal("Image Offset X", option->desc);
assert_int_equal(SANE_TYPE_INT, option->type);
- assert_int_equal(SANE_UNIT_MM, option->unit);
+ assert_int_equal(SANE_UNIT_NONE, option->unit);
assert_int_equal(sizeof(SANE_Int), option->size);
assert_int_equal(SANE_CAP_SOFT_DETECT | SANE_CAP_SOFT_SELECT, option->cap);
assert_int_equal(SANE_CONSTRAINT_RANGE, option->constraint_type);
{
SANE_Option_Descriptor* option = kds_s2000w_option_descriptors_get(10);
- assert_string_equal(SANE_NAME_SCAN_TL_Y, option->name);
- assert_string_equal(SANE_TITLE_SCAN_TL_Y, option->title);
- assert_string_equal(SANE_DESC_SCAN_TL_Y, option->desc);
+ assert_string_equal("image-offset-y", option->name);
+ assert_string_equal("Image Offset Y", option->title);
+ assert_string_equal("Image Offset Y", option->desc);
assert_int_equal(SANE_TYPE_INT, option->type);
- assert_int_equal(SANE_UNIT_MM, option->unit);
+ assert_int_equal(SANE_UNIT_NONE, option->unit);
assert_int_equal(sizeof(SANE_Int), option->size);
assert_int_equal(SANE_CAP_SOFT_DETECT | SANE_CAP_SOFT_SELECT, option->cap);
assert_int_equal(SANE_CONSTRAINT_RANGE, option->constraint_type);
{
SANE_Option_Descriptor* option = kds_s2000w_option_descriptors_get(11);
- assert_string_equal(SANE_NAME_PAGE_WIDTH, option->name);
- assert_string_equal(SANE_TITLE_PAGE_WIDTH, option->title);
- assert_string_equal(SANE_DESC_PAGE_WIDTH, option->desc);
+ assert_string_equal("image-width", option->name);
+ assert_string_equal("Image Width", option->title);
+ assert_string_equal("Image Width", option->desc);
assert_int_equal(SANE_TYPE_INT, option->type);
assert_int_equal(SANE_UNIT_NONE, option->unit);
assert_int_equal(sizeof(SANE_Int), option->size);
{
SANE_Option_Descriptor* option = kds_s2000w_option_descriptors_get(12);
- assert_string_equal(SANE_NAME_PAGE_HEIGHT, option->name);
- assert_string_equal(SANE_TITLE_PAGE_HEIGHT, option->title);
- assert_string_equal(SANE_DESC_PAGE_HEIGHT, option->desc);
+ assert_string_equal("image-height", option->name);
+ assert_string_equal("Image Height", option->title);
+ assert_string_equal("Image Height", option->desc);
assert_int_equal(SANE_TYPE_INT, option->type);
assert_int_equal(SANE_UNIT_NONE, option->unit);
assert_int_equal(sizeof(SANE_Int), option->size);