test: fix a build error 57/316557/2
authorInki Dae <inki.dae@samsung.com>
Fri, 13 Dec 2024 09:11:46 +0000 (18:11 +0900)
committerInki Dae <inki.dae@samsung.com>
Fri, 13 Dec 2024 09:13:17 +0000 (18:13 +0900)
Change-Id: I69cf2895e851afb2fb7b8ce17e802fcca6c24db0
Signed-off-by: Inki Dae <inki.dae@samsung.com>
test/services/test_focusfinder_on_screen.cpp

index da53c5ea534be4b161a9f55452f4c704b4700e64..8deefe52ebad56c6b11af4139a940b64861625dd 100644 (file)
@@ -30,7 +30,7 @@ struct Context {
        singleo_service_h handle {};
 };
 
-static bool focusfinder_callback(void *user_data)
+static void focusfinder_callback(void *user_data)
 {
        Context *context = static_cast<Context *>(user_data);
        singleo_service_h handle = static_cast<singleo_service_h>(context->handle);
@@ -41,17 +41,12 @@ static bool focusfinder_callback(void *user_data)
                unsigned int cnt = 1;
 
                int ret = singleo_service_get_result_cnt(handle, &cnt);
-               if (ret != SINGLEO_ERROR_NONE)
-                       break;
-
                ASSERT_EQ(ret, SINGLEO_ERROR_NONE);
 
                cout << "cnt = " << cnt << " frame number = " << frame_number << endl;
                if (++frame_number > 10)
                        is_loop_exit = true;
        }
-
-       return false;
 }
 
 static void user_callback(unsigned char *buffer, unsigned int width, unsigned int height, unsigned int bytes_per_pixel,