qr_version, test_file.c_str(), image_format),
MEDIA_VISION_ERROR_NONE);
ASSERT_EQ(mv_destroy_engine_config(engine_cfg), MEDIA_VISION_ERROR_NONE);
+}
+
+TEST_F(TestBarcodeGen, FinderCirclePositiveQR)
+{
+ ASSERT_EQ(mv_create_engine_config(&engine_cfg), MEDIA_VISION_ERROR_NONE);
+ ASSERT_EQ(mv_engine_config_set_string_attribute(engine_cfg, MV_BARCODE_GENERATE_ATTR_COLOR_FRONT, "3366ff"),
+ MEDIA_VISION_ERROR_NONE);
+ ASSERT_EQ(mv_engine_config_set_int_attribute(engine_cfg, MV_BARCODE_GENERATE_ATTR_FINDER_SHAPE,
+ MV_BARCODE_GENERATE_ATTR_SHAPE_CIRCLE),
+ MEDIA_VISION_ERROR_NONE);
+ ASSERT_EQ(mv_barcode_generate_image(engine_cfg, "https://samsung.com/", 512, 512, type, qr_enc_mode, qr_ecc,
+ qr_version, test_file.c_str(), image_format),
+ MEDIA_VISION_ERROR_NONE);
+ ASSERT_EQ(mv_destroy_engine_config(engine_cfg), MEDIA_VISION_ERROR_NONE);
+}
+
+TEST_F(TestBarcodeGen, FinderRoundRectPositiveQR)
+{
+ ASSERT_EQ(mv_create_engine_config(&engine_cfg), MEDIA_VISION_ERROR_NONE);
+ ASSERT_EQ(mv_engine_config_set_string_attribute(engine_cfg, MV_BARCODE_GENERATE_ATTR_COLOR_FRONT, "3366ff"),
+ MEDIA_VISION_ERROR_NONE);
+ ASSERT_EQ(mv_engine_config_set_int_attribute(engine_cfg, MV_BARCODE_GENERATE_ATTR_FINDER_SHAPE,
+ MV_BARCODE_GENERATE_ATTR_SHAPE_ROUND_RECT),
+ MEDIA_VISION_ERROR_NONE);
+ ASSERT_EQ(mv_barcode_generate_image(engine_cfg, "https://samsung.com/", 512, 512, type, qr_enc_mode, qr_ecc,
+ qr_version, test_file.c_str(), image_format),
+ MEDIA_VISION_ERROR_NONE);
+ ASSERT_EQ(mv_destroy_engine_config(engine_cfg), MEDIA_VISION_ERROR_NONE);
}
\ No newline at end of file