2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 #include <media/camera.h>
26 #define MY_ASSERT( fun , test , msg ) \
29 dts_fail(fun , msg ); \
32 static GMainLoop *g_mainloop = NULL;
35 static void utc_camera_set_display_negative(void);
36 static void utc_camera_set_display_positive(void);
38 static void utc_camera_set_preview_resolution_negative(void);
39 static void utc_camera_set_preview_resolution_positive(void);
41 static void utc_camera_set_display_rotation_negative(void);
42 static void utc_camera_set_display_rotation_positive(void);
44 static void utc_camera_set_capture_resolution_negative(void);
45 static void utc_camera_set_capture_resolution_positive(void);
47 static void utc_camera_set_capture_format_negative(void);
48 static void utc_camera_set_capture_format_positive(void);
50 static void utc_camera_set_preview_format_negative(void);
51 static void utc_camera_set_preview_format_positive(void);
53 static void utc_camera_get_preview_resolution_negative(void);
54 static void utc_camera_get_preview_resolution_positive(void);
56 static void utc_camera_get_display_rotation_negative(void);
57 static void utc_camera_get_display_rotation_positive(void);
59 static void utc_camera_get_capture_resolution_negative(void);
60 static void utc_camera_get_capture_resolution_positive(void);
62 static void utc_camera_get_preview_format_negative(void);
63 static void utc_camera_get_preview_format_positive(void);
65 static void utc_camera_set_preview_cb_negative(void);
66 static void utc_camera_set_preview_cb_positive(void);
68 static void utc_camera_unset_preview_cb_negative(void);
69 static void utc_camera_unset_preview_cb_positive(void);
71 static void utc_camera_set_state_changed_cb_negative(void);
72 static void utc_camera_set_state_changed_cb_positive(void);
74 static void utc_camera_unset_state_changed_cb_negative(void);
75 static void utc_camera_unset_state_changed_cb_positive(void);
77 static void utc_camera_set_focus_changed_cb_negative(void);
78 static void utc_camera_set_focus_changed_cb_positive(void);
80 static void utc_camera_unset_focus_changed_cb_negative(void);
81 static void utc_camera_unset_focus_changed_cb_positive(void);
83 static void utc_camera_foreach_supported_preview_resolution_negative(void);
84 static void utc_camera_foreach_supported_preview_resolution_positive(void);
86 static void utc_camera_foreach_supported_capture_resolution_negative(void);
87 static void utc_camera_foreach_supported_capture_resolution_positive(void);
89 static void utc_camera_foreach_supported_capture_format_negative(void);
90 static void utc_camera_foreach_supported_capture_format_positive(void);
92 static void utc_camera_foreach_supported_preview_format_negative(void);
93 static void utc_camera_foreach_supported_preview_format_positive(void);
95 static void utc_camera_set_x11_display_visible_positive(void);
96 static void utc_camera_set_x11_display_visible_negative(void);
98 static void utc_camera_is_x11_display_visible_positive(void);
99 static void utc_camera_is_x11_display_visible_negative(void);
102 static void utc_camera_set_x11_display_mode_positive(void);
103 static void utc_camera_set_x11_display_mode_negative(void);
105 static void utc_camera_get_x11_display_mode_positive(void);
106 static void utc_camera_get_x11_display_mode_negative(void);
109 static void utc_camera_get_capture_format_positive(void);
110 static void utc_camera_get_capture_format_negative(void);
112 static void utc_camera_set_error_cb_positive(void);
113 static void utc_camera_set_error_cb_negative(void);
115 static void utc_camera_unset_error_cb_positive(void);
116 static void utc_camera_unset_error_cb_negative(void);
122 static void startup(void);
123 static void cleanup(void);
125 void (*tet_startup)(void) = startup;
126 void (*tet_cleanup)(void) = cleanup;
128 struct tet_testlist tet_testlist[] = {
129 {utc_camera_set_display_negative , 1 },
130 {utc_camera_set_display_positive , 2 },
132 {utc_camera_set_preview_resolution_negative , 3 },
133 {utc_camera_set_preview_resolution_positive , 4 },
135 {utc_camera_set_display_rotation_negative , 5 },
136 {utc_camera_set_display_rotation_positive , 6 },
138 {utc_camera_set_capture_resolution_negative , 7 },
139 {utc_camera_set_capture_resolution_positive, 8 },
141 {utc_camera_set_capture_format_negative, 9 },
142 {utc_camera_set_capture_format_positive, 10 },
144 {utc_camera_set_preview_format_negative, 11 },
145 {utc_camera_set_preview_format_positive, 12 },
147 {utc_camera_get_preview_resolution_negative, 13 },
148 {utc_camera_get_preview_resolution_positive, 14 },
150 {utc_camera_get_display_rotation_negative, 15 },
151 {utc_camera_get_display_rotation_positive, 16 },
153 {utc_camera_get_capture_resolution_negative, 17 },
154 {utc_camera_get_capture_resolution_positive, 18 },
156 {utc_camera_get_preview_format_negative, 19 },
157 {utc_camera_get_preview_format_positive, 20 },
159 {utc_camera_set_preview_cb_negative, 21 },
160 {utc_camera_set_preview_cb_positive, 22 },
162 {utc_camera_unset_preview_cb_negative, 23 },
163 {utc_camera_unset_preview_cb_positive, 24 },
165 {utc_camera_set_state_changed_cb_negative, 29 },
166 {utc_camera_set_state_changed_cb_positive, 30 },
168 {utc_camera_unset_state_changed_cb_negative, 31 },
169 {utc_camera_unset_state_changed_cb_positive, 32 },
171 {utc_camera_set_focus_changed_cb_negative, 33 },
172 {utc_camera_set_focus_changed_cb_positive, 34 },
174 {utc_camera_unset_focus_changed_cb_negative, 35 },
175 {utc_camera_unset_focus_changed_cb_positive, 36 },
177 {utc_camera_foreach_supported_preview_resolution_negative, 41 },
178 {utc_camera_foreach_supported_preview_resolution_positive, 42 },
180 {utc_camera_foreach_supported_capture_resolution_negative, 43 },
181 {utc_camera_foreach_supported_capture_resolution_positive, 44 },
183 {utc_camera_foreach_supported_capture_format_negative, 45 },
184 {utc_camera_foreach_supported_capture_format_positive, 46 },
186 {utc_camera_foreach_supported_preview_format_negative, 47 },
187 {utc_camera_foreach_supported_preview_format_positive, 48 },
189 { utc_camera_set_x11_display_visible_negative , 49 },
190 { utc_camera_set_x11_display_visible_positive , 50 },
192 { utc_camera_is_x11_display_visible_negative , 51 },
193 { utc_camera_is_x11_display_visible_positive , 52 },
195 { utc_camera_set_x11_display_mode_negative , 53 },
196 { utc_camera_set_x11_display_mode_positive , 54 },
198 { utc_camera_get_x11_display_mode_negative , 55 },
199 { utc_camera_get_x11_display_mode_positive , 56 },
201 { utc_camera_get_capture_format_positive , 57 },
202 { utc_camera_get_capture_format_negative , 58 },
204 { utc_camera_set_error_cb_positive , 59 },
205 { utc_camera_set_error_cb_negative , 60 },
207 { utc_camera_unset_error_cb_positive , 61 },
208 { utc_camera_unset_error_cb_negative , 62 },
215 gpointer GmainThread(gpointer data){
216 g_mainloop = g_main_loop_new (NULL, 0);
217 g_main_loop_run (g_mainloop);
225 static void startup(void)
227 fprintf(stderr, "%s test\n", __func__);
230 ret = camera_create(CAMERA_DEVICE_CAMERA0, &camera);
232 dts_fail("camera_create", "Could not create camera");
235 static void cleanup(void)
238 camera_destroy(camera);
242 static void utc_camera_set_display_negative(void)
244 fprintf(stderr, "%s test\n", __func__);
246 ret = camera_set_display(NULL, CAMERA_DISPLAY_TYPE_X11, 0);
247 dts_check_ne(__func__, ret, CAMERA_ERROR_NONE, "NULL is not allowed");
249 static void utc_camera_set_display_positive(void)
252 ret = camera_set_display(camera, CAMERA_DISPLAY_TYPE_X11, 0);
253 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE , "set display handle fail");
254 dts_pass(__func__, "PASS");
257 static void utc_camera_set_preview_resolution_negative(void)
260 ret = camera_set_preview_resolution(NULL,0, 0);
261 dts_check_ne(__func__, ret, CAMERA_ERROR_NONE, "NULL is not allowed");
265 bool _preview_resolution_cb(int width, int height, void *user_data )
267 int *resolution = (int*)user_data;
268 resolution[0] = width;
269 resolution[1] = height;
273 static void utc_camera_set_preview_resolution_positive(void)
278 camera_foreach_supported_preview_resolution(camera, _preview_resolution_cb, resolution) ;
279 ret = camera_set_preview_resolution(camera,resolution[0], resolution[1]);
280 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE , "set preview resolution is faild");
282 dts_pass(__func__, "PASS");
285 static void utc_camera_set_display_rotation_negative(void)
288 ret = camera_set_x11_display_rotation(camera, -1);
289 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE , "not allow -1");
290 dts_pass(__func__, "PASS");
292 static void utc_camera_set_display_rotation_positive(void)
295 ret = camera_set_x11_display_rotation(camera, CAMERA_ROTATION_NONE);
296 MY_ASSERT(__func__, ret== CAMERA_ERROR_NONE , "camera_set_display_rotation fail");
297 dts_pass(__func__, "PASS");
300 static void utc_camera_set_capture_resolution_negative(void)
303 ret = camera_set_capture_resolution(NULL, 0,0);
304 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE , "not allow NULL");
305 dts_pass(__func__, "PASS");
308 bool _capture_resolution_cb(int width, int height, void *user_data)
310 int *resolution = (int*) user_data;
311 resolution[0] = width;
312 resolution[1] = height;
316 static void utc_camera_set_capture_resolution_positive(void)
321 camera_foreach_supported_capture_resolution(camera, _capture_resolution_cb, resolution);
322 ret = camera_set_capture_resolution(camera, resolution[0],resolution[1]);
324 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE , "camera_set_capture_resolution fail");
325 dts_pass(__func__, "PASS");
328 static void utc_camera_set_capture_format_negative(void)
331 ret = camera_set_capture_format(camera, -1);
332 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE , "not allow -1");
334 dts_pass(__func__, "PASS");
337 bool _capture_format_cb(camera_pixel_format_e format , void *user_data)
339 int *ret = (int*) user_data;
344 static void utc_camera_set_capture_format_positive(void)
348 camera_foreach_supported_capture_format(camera, _capture_format_cb, &value);
349 ret = camera_set_capture_format(camera, value);
350 MY_ASSERT(__func__, ret== CAMERA_ERROR_NONE , "camera_set_capture_format fail");
352 dts_pass(__func__, "PASS");
355 static void utc_camera_set_preview_format_negative(void)
358 ret = camera_set_preview_format(camera, -1);
359 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "-1 is not allowed");
360 dts_pass(__func__, "PASS");
363 bool _preview_format_cb(camera_pixel_format_e format , void *user_data)
365 camera_pixel_format_e * ret = (camera_pixel_format_e*)user_data;
370 static void utc_camera_set_preview_format_positive(void)
373 camera_pixel_format_e format;
374 camera_foreach_supported_preview_format(camera, _preview_format_cb, &format);
375 ret = camera_set_preview_format(camera, format);
376 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE,"set preview format fail");
377 dts_pass(__func__, "PASS");
380 static void utc_camera_get_preview_resolution_negative(void)
383 ret = camera_get_preview_resolution(NULL, NULL,NULL);
384 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
386 dts_pass(__func__, "PASS");
388 static void utc_camera_get_preview_resolution_positive(void)
393 ret = camera_get_preview_resolution(camera, &value1,&value2);
394 MY_ASSERT(__func__,ret == CAMERA_ERROR_NONE, "get preview resolution fail");
395 dts_pass(__func__, "PASS");
398 static void utc_camera_get_display_rotation_negative(void)
401 ret = camera_get_x11_display_rotation(NULL, NULL);
402 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
404 dts_pass(__func__, "PASS");
407 static void utc_camera_get_display_rotation_positive(void)
410 camera_rotation_e value;
411 ret = camera_get_x11_display_rotation(camera, &value);
412 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "fail get display rotation");
413 dts_pass(__func__, "PASS");
416 static void utc_camera_get_capture_resolution_negative(void)
419 ret = camera_get_capture_resolution(NULL, NULL,NULL);
420 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
421 dts_pass(__func__, "PASS");
423 static void utc_camera_get_capture_resolution_positive(void)
427 ret = camera_get_capture_resolution(camera,&value1, &value2);
428 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "get capture resolution fail");
429 dts_pass(__func__, "PASS");
432 static void utc_camera_get_preview_format_negative(void)
435 ret = camera_get_preview_format(NULL, NULL);
436 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
438 dts_pass(__func__, "PASS");
440 static void utc_camera_get_preview_format_positive(void)
444 ret= camera_get_preview_format(camera, &value);
445 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "get preview format fail");
446 dts_pass(__func__, "PASS");
449 static void utc_camera_set_preview_cb_negative(void)
452 ret = camera_set_preview_cb(NULL, NULL, NULL);
453 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
454 dts_pass(__func__, "PASS");
457 void _preview_cb(void* stream_buffer, int buffer_size, int width, int height, camera_pixel_format_e format, void *user_data)
461 static void utc_camera_set_preview_cb_positive(void)
464 ret = camera_set_preview_cb(camera,_preview_cb,NULL);
465 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "set preview cb fail");
466 dts_pass(__func__, "PASS");
469 static void utc_camera_unset_preview_cb_negative(void)
472 ret = camera_unset_preview_cb(NULL);
473 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
474 dts_pass(__func__, "PASS");
477 static void utc_camera_unset_preview_cb_positive(void)
480 ret = camera_unset_preview_cb(camera);
481 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "unset preview cb fail");
482 dts_pass(__func__, "PASS");
485 static void utc_camera_set_state_changed_cb_negative(void)
488 ret = camera_set_state_changed_cb(NULL, NULL, NULL);
489 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
490 dts_pass(__func__, "PASS");
494 void _changed_cb(camera_state_e previous , camera_state_e current , bool by_asm, void *user_data)
498 static void utc_camera_set_state_changed_cb_positive(void)
501 ret = camera_set_state_changed_cb(camera, _changed_cb, NULL);
502 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE , "set state change cb fail");
503 dts_pass(__func__, "PASS");
505 static void utc_camera_unset_state_changed_cb_negative(void)
508 ret = camera_unset_state_changed_cb(NULL);
509 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
510 dts_pass(__func__, "PASS");
512 static void utc_camera_unset_state_changed_cb_positive(void)
515 ret = camera_unset_state_changed_cb(camera);
516 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "camera_unset_state_changed_cb fail");
518 dts_pass(__func__, "PASS");
520 static void utc_camera_set_focus_changed_cb_negative(void)
523 ret = camera_set_focus_changed_cb(NULL, NULL, NULL);
524 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
525 dts_pass(__func__, "PASS");
528 void _focus_changed_cb(camera_focus_state_e state, void *user_data)
532 static void utc_camera_set_focus_changed_cb_positive(void)
535 ret = camera_set_focus_changed_cb(camera, _focus_changed_cb, NULL);
536 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "fail");
538 dts_pass(__func__, "PASS");
540 static void utc_camera_unset_focus_changed_cb_negative(void)
543 ret = camera_unset_focus_changed_cb(NULL);
544 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
545 dts_pass(__func__, "PASS");
547 static void utc_camera_unset_focus_changed_cb_positive(void)
550 ret = camera_unset_focus_changed_cb(camera);
551 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "fail");
552 dts_pass(__func__, "PASS");
555 static void utc_camera_foreach_supported_preview_resolution_negative(void)
558 ret = camera_foreach_supported_preview_resolution(NULL, NULL, NULL);
559 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
560 dts_pass(__func__, "PASS");
563 bool _preview_resolution_cb2(int width, int height, void *user_data )
568 static void utc_camera_foreach_supported_preview_resolution_positive(void)
571 ret = camera_foreach_supported_preview_resolution(camera, _preview_resolution_cb2, NULL);
572 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "fail");
573 dts_pass(__func__, "PASS");
576 static void utc_camera_foreach_supported_capture_resolution_negative(void)
579 ret = camera_foreach_supported_capture_resolution(NULL, NULL, NULL);
580 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
581 dts_pass(__func__, "PASS");
584 bool _capture_resolution_cb2(int width, int height, void *user_data)
589 static void utc_camera_foreach_supported_capture_resolution_positive(void)
592 ret = camera_foreach_supported_capture_resolution(camera, _capture_resolution_cb2, NULL);
593 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "fail");
594 dts_pass(__func__, "PASS");
597 static void utc_camera_foreach_supported_capture_format_negative(void)
600 ret = camera_foreach_supported_capture_format(NULL, NULL, NULL);
601 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
602 dts_pass(__func__, "PASS");
605 bool _capture_format_cb2(camera_pixel_format_e format , void *user_data)
610 static void utc_camera_foreach_supported_capture_format_positive(void)
613 ret = camera_foreach_supported_capture_format(camera, _capture_format_cb2, NULL);
614 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "fail");
615 dts_pass(__func__, "PASS");
618 static void utc_camera_foreach_supported_preview_format_negative(void)
621 ret = camera_foreach_supported_preview_format(NULL, NULL, NULL);
622 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
623 dts_pass(__func__, "PASS");
626 bool _preview_format_cb2(camera_pixel_format_e format , void *user_data)
631 static void utc_camera_foreach_supported_preview_format_positive(void)
634 ret = camera_foreach_supported_preview_format(camera, _preview_format_cb2,NULL);
635 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "fail");
636 dts_pass(__func__, "PASS");
640 static void utc_camera_set_x11_display_visible_positive(void){
642 ret = camera_set_x11_display_visible(camera, true);
643 MY_ASSERT(__func__, ret== CAMERA_ERROR_NONE , "camera_set_x11_display_visible fail");
644 dts_pass(__func__, "PASS");
646 static void utc_camera_set_x11_display_visible_negative(void){
648 ret = camera_set_x11_display_visible(NULL, 0);
649 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE , "not allow NULL");
650 dts_pass(__func__, "PASS");
653 static void utc_camera_is_x11_display_visible_positive(void){
656 ret = camera_is_x11_display_visible(camera, &value);
657 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "fail camera_is_x11_display_visible");
658 dts_pass(__func__, "PASS");
661 static void utc_camera_is_x11_display_visible_negative(void){
663 ret = camera_is_x11_display_visible(NULL, NULL);
664 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
666 dts_pass(__func__, "PASS");
670 static void utc_camera_set_x11_display_mode_positive(void){
672 ret = camera_set_x11_display_mode(camera, CAMERA_DISPLAY_MODE_LETTER_BOX);
673 MY_ASSERT(__func__, ret== CAMERA_ERROR_NONE , "camera_set_x11_display_mode fail");
674 dts_pass(__func__, "PASS");
677 static void utc_camera_set_x11_display_mode_negative(void){
679 ret = camera_set_x11_display_mode(NULL, 0);
680 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE , "not allow NULL");
681 dts_pass(__func__, "PASS");
684 static void utc_camera_get_x11_display_mode_positive(void){
686 camera_display_mode_e value;
687 ret = camera_get_x11_display_mode(camera, &value);
688 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "fail camera_set_x11_display_mode");
689 dts_pass(__func__, "PASS");
691 static void utc_camera_get_x11_display_mode_negative(void){
693 ret = camera_get_x11_display_mode(NULL, NULL);
694 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
696 dts_pass(__func__, "PASS");
701 static void utc_camera_get_capture_format_positive(void)
704 camera_pixel_format_e value;
705 ret = camera_get_capture_format(camera, &value);
706 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "fail camera_get_capture_format");
707 dts_pass(__func__, "PASS");
709 static void utc_camera_get_capture_format_negative(void)
712 ret = camera_get_capture_format(NULL, NULL);
713 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "NULL is not allowed");
714 dts_pass(__func__, "PASS");
719 void _error_cb(int error, camera_state_e current_state, void *user_data)
723 static void utc_camera_set_error_cb_positive(void)
726 ret = camera_set_error_cb(camera, _error_cb, NULL);
727 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "fail");
728 dts_pass(__func__, "PASS");
731 static void utc_camera_set_error_cb_negative(void)
734 ret = camera_set_error_cb(NULL, NULL, NULL);
735 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "fail");
736 dts_pass(__func__, "PASS");
739 static void utc_camera_unset_error_cb_positive(void)
742 ret = camera_unset_error_cb(camera);
743 MY_ASSERT(__func__, ret == CAMERA_ERROR_NONE, "fail");
744 dts_pass(__func__, "PASS");
746 static void utc_camera_unset_error_cb_negative(void)
749 ret = camera_unset_error_cb(NULL);
750 MY_ASSERT(__func__, ret != CAMERA_ERROR_NONE, "fail");
751 dts_pass(__func__, "PASS");