Fix issues detected by static analysis tool 60/234660/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 28 May 2020 01:53:05 +0000 (10:53 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 28 May 2020 02:26:44 +0000 (11:26 +0900)
Change-Id: If78bde4cf1a8e5a26354c8feac46c7dfe6431818
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
tests/src/autofill_client_unittests.cpp
tests/src/autofill_common_unittests.cpp

index d1d1fc4..68a94d7 100644 (file)
@@ -50,8 +50,8 @@ class AutofillClientTest : public testing::Test {
             eina_init();
 
             int ret = autofill_create(&af_h);
-            ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-            ASSERT_NE(af_h, nullptr);
+            EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+            EXPECT_NE(af_h, nullptr);
         }
         virtual void TearDown() {
             eina_shutdown();
@@ -96,7 +96,7 @@ TEST_F(AutofillClientTest, utc_autofill_destroy_p)
 {
     autofill_h ah = NULL;
     int ret = autofill_create(&ah);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_destroy(ah);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -356,8 +356,8 @@ TEST_F(AutofillClientTest, utc_autofill_commit_n)
     autofill_save_view_info_h vi_h;
 
     ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_commit(NULL, vi_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
index e536f14..d4519b6 100644 (file)
@@ -75,10 +75,10 @@ static bool fill_response_item_cb(autofill_fill_response_item_h item, void *user
  */
 TEST_F(AutofillCommonTest, utc_autofill_item_create_p)
 {
-    autofill_item_h it_h;
+    autofill_item_h it_h = nullptr;
     int ret = autofill_item_create(&it_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_NE(it_h, nullptr);
 }
 
 /**
@@ -101,17 +101,17 @@ TEST_F(AutofillCommonTest, utc_autofill_item_destroy_p)
 {
     autofill_item_h it_h = NULL;
     int ret = autofill_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_item_set_id(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_item_set_label(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_item_set_value(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_item_destroy(it_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -135,19 +135,19 @@ TEST_F(AutofillCommonTest, utc_autofill_item_destroy_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_item_clone_p)
 {
-    autofill_item_h it_h = NULL, clone_h;
+    autofill_item_h it_h = NULL, clone_h = nullptr;
     int ret = autofill_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_item_set_id(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_item_set_label(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_item_set_value(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_item_clone(it_h, &clone_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -176,17 +176,17 @@ TEST_F(AutofillCommonTest, utc_autofill_item_clone_n2)
 {
     autofill_item_h it_h = NULL;
     int ret = autofill_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_item_set_id(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_item_set_label(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_item_set_value(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_item_clone(it_h, NULL);
     EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
@@ -203,8 +203,8 @@ TEST_F(AutofillCommonTest, utc_autofill_item_set_autofill_hint_p)
 {
     autofill_item_h it_h = NULL;
     int ret = autofill_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_item_set_autofill_hint(it_h, AUTOFILL_HINT_NAME);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -232,7 +232,7 @@ TEST_F(AutofillCommonTest, utc_autofill_item_get_autofill_hint_p)
     autofill_hint_e autofill_hint;
     int ret = autofill_item_create(&it_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_item_get_autofill_hint(it_h, &autofill_hint);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -259,8 +259,8 @@ TEST_F(AutofillCommonTest, utc_autofill_item_set_id_p)
 {
     autofill_item_h it_h = NULL;
     int ret = autofill_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_item_set_id(it_h, "test");
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -287,20 +287,19 @@ TEST_F(AutofillCommonTest, utc_autofill_item_get_id_p)
     autofill_item_h it_h = NULL;
     char *id = NULL;
     int ret = autofill_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_item_set_id(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_item_get_id(it_h, &id);
 
     autofill_item_destroy(it_h);
 
-    ASSERT_NE(id, nullptr);
+    EXPECT_NE(id, nullptr);
 
-    if (id)
-        free(id);
+    free(id);
 
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 }
@@ -327,7 +326,7 @@ TEST_F(AutofillCommonTest, utc_autofill_item_set_label_p)
     autofill_item_h it_h = NULL;
     int ret = autofill_item_create(&it_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_item_set_label(it_h, "test");
 
@@ -357,17 +356,17 @@ TEST_F(AutofillCommonTest, utc_autofill_item_get_label_p)
     autofill_item_h it_h = NULL;
     char *label = NULL;
     int ret = autofill_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_item_set_label(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_item_get_label(it_h, &label);
 
     autofill_item_destroy(it_h);
 
-    ASSERT_NE(label, nullptr);
+    EXPECT_NE(label, nullptr);
 
     if (label)
         free(label);
@@ -396,8 +395,8 @@ TEST_F(AutofillCommonTest, utc_autofill_item_set_sensitive_data_p)
 {
     autofill_item_h it_h = NULL;
     int ret = autofill_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_item_set_sensitive_data(it_h, true);
 
@@ -427,8 +426,8 @@ TEST_F(AutofillCommonTest, utc_autofill_item_get_sensitive_data_p)
     autofill_item_h it_h = NULL;
     bool sensitive_data;
     int ret = autofill_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_item_get_sensitive_data(it_h, &sensitive_data);
 
@@ -458,8 +457,8 @@ TEST_F(AutofillCommonTest, utc_autofill_item_set_value_p)
 {
     autofill_item_h it_h = NULL;
     int ret = autofill_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_item_set_value(it_h, "test");
     autofill_item_destroy(it_h);
@@ -488,11 +487,11 @@ TEST_F(AutofillCommonTest, utc_autofill_item_get_value_p)
     autofill_item_h it_h = NULL;
     char *value = NULL;
     int ret = autofill_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_item_set_value(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_item_get_value(it_h, &value);
 
@@ -523,10 +522,10 @@ TEST_F(AutofillCommonTest, utc_autofill_item_get_value_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_view_info_create_p)
 {
-    autofill_view_info_h vi_h;
+    autofill_view_info_h vi_h = nullptr;
     int ret = autofill_view_info_create(&vi_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_NE(vi_h, nullptr);
 
     autofill_view_info_destroy(vi_h);
 }
@@ -549,10 +548,10 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_create_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_view_info_destroy_p)
 {
-    autofill_view_info_h vi_h;
+    autofill_view_info_h vi_h = nullptr;
     int ret = autofill_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_view_info_destroy(vi_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -576,10 +575,10 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_destroy_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_view_info_set_app_id_p)
 {
-    autofill_view_info_h vi_h;
+    autofill_view_info_h vi_h = nullptr;
     int ret = autofill_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_view_info_set_app_id(vi_h, "org.tizen.example");
     autofill_view_info_destroy(vi_h);
@@ -593,10 +592,10 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_set_app_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_view_info_set_app_id_n)
 {
-    autofill_view_info_h vi_h;
+    autofill_view_info_h vi_h = nullptr;
     int ret = autofill_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_view_info_set_app_id(vi_h, NULL);
     autofill_view_info_destroy(vi_h);
@@ -610,16 +609,16 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_set_app_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_view_info_get_app_id_p)
 {
-    autofill_view_info_h vi_h;
+    autofill_view_info_h vi_h = nullptr;
     char *app_id = NULL;
     int ret = autofill_view_info_create(&vi_h);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_view_info_set_app_id(vi_h, "org.tizen.example");
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_view_info_get_app_id(vi_h, &app_id);
-    ASSERT_NE(app_id, nullptr);
+    EXPECT_NE(app_id, nullptr);
 
     free(app_id);
 
@@ -635,13 +634,13 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_get_app_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_view_info_get_app_id_n)
 {
-    autofill_view_info_h vi_h;
+    autofill_view_info_h vi_h = nullptr;
     int ret = autofill_view_info_create(&vi_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_view_info_set_app_id(vi_h, "org.tizen.example");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_view_info_get_app_id(vi_h, NULL);
     autofill_view_info_destroy(vi_h);
@@ -655,10 +654,10 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_get_app_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_view_info_set_view_id_p)
 {
-    autofill_view_info_h vi_h;
+    autofill_view_info_h vi_h = nullptr;
     int ret = autofill_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_view_info_set_view_id(vi_h, "login");
     autofill_view_info_destroy(vi_h);
@@ -672,10 +671,10 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_set_view_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_view_info_set_view_id_n)
 {
-    autofill_view_info_h vi_h;
+    autofill_view_info_h vi_h = nullptr;
     int ret = autofill_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_view_info_set_view_id(vi_h, NULL);
     autofill_view_info_destroy(vi_h);
@@ -689,17 +688,17 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_set_view_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_view_info_get_view_id_p)
 {
-    autofill_view_info_h vi_h;
+    autofill_view_info_h vi_h = nullptr;
     char *view_id = NULL;
     int ret = autofill_view_info_create(&vi_h);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_view_info_set_view_id(vi_h, "login");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_view_info_get_view_id(vi_h, &view_id);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(view_id, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(view_id, nullptr);
 
     free(view_id);
 
@@ -714,13 +713,13 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_get_view_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_view_info_get_view_id_n)
 {
-    autofill_view_info_h vi_h;
+    autofill_view_info_h vi_h = nullptr;
     int ret = autofill_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_view_info_set_view_id(vi_h, "login");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_view_info_get_view_id(vi_h, NULL);
     EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
@@ -733,11 +732,11 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_get_view_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_view_info_add_item_p)
 {
-    autofill_item_h ai_h;
-    autofill_view_info_h vi_h;
+    autofill_item_h ai_h = nullptr;
+    autofill_view_info_h vi_h = nullptr;
     int ret = autofill_view_info_create(&vi_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_item_create(&ai_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -745,6 +744,10 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_add_item_p)
     ret = autofill_view_info_add_item(vi_h, ai_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
+    if (ret != AUTOFILL_ERROR_NONE) {
+        autofill_item_destroy(ai_h);
+    }
+
     ret = autofill_view_info_destroy(vi_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 }
@@ -756,10 +759,10 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_add_item_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_view_info_add_item_n)
 {
-    autofill_view_info_h vi_h;
+    autofill_view_info_h vi_h = nullptr;
     int ret = autofill_view_info_create(&vi_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_view_info_add_item(vi_h, NULL);
     autofill_view_info_destroy(vi_h);
@@ -773,14 +776,14 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_add_item_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_view_info_foreach_item_p)
 {
-    autofill_view_info_h vi_h;
-    autofill_item_h it_h;
+    autofill_view_info_h vi_h = nullptr;
+    autofill_item_h it_h = nullptr;
 
     view_info_item_cb_result = false;
 
     int ret = autofill_view_info_create(&vi_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_NE(vi_h, nullptr);
 
     autofill_item_create(&it_h);
     autofill_item_set_autofill_hint(it_h, AUTOFILL_HINT_NAME);
@@ -804,10 +807,10 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_foreach_item_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_view_info_foreach_item_n)
 {
-    autofill_view_info_h vi_h;
+    autofill_view_info_h vi_h = nullptr;
     int ret = autofill_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_view_info_foreach_item(vi_h, NULL, NULL);
     autofill_view_info_destroy(vi_h);
@@ -822,10 +825,10 @@ TEST_F(AutofillCommonTest, utc_autofill_view_info_foreach_item_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_create_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_NE(ai_h, nullptr);
 }
 
 /**
@@ -847,10 +850,10 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_create_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_destroy_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_destroy(ai_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -874,10 +877,10 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_destroy_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_app_id_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_app_id(ai_h, "org.tizen.example");
     autofill_auth_info_destroy(ai_h);
@@ -891,10 +894,10 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_app_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_app_id_n)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_app_id(ai_h, NULL);
     autofill_auth_info_destroy(ai_h);
@@ -908,17 +911,17 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_app_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_app_id_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     char *app_id = NULL;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_app_id(ai_h, "org.tizen.example");
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_auth_info_get_app_id(ai_h, &app_id);
-    ASSERT_NE(app_id, nullptr);
+    EXPECT_NE(app_id, nullptr);
 
     free(app_id);
 
@@ -934,10 +937,10 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_app_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_app_id_n)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_app_id(ai_h, "org.tizen.example");
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -954,10 +957,10 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_app_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_view_id_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_view_id(ai_h, "login");
     autofill_auth_info_destroy(ai_h);
@@ -971,10 +974,10 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_view_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_view_id_n)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_view_id(ai_h, NULL);
     autofill_auth_info_destroy(ai_h);
@@ -988,17 +991,17 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_view_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_view_id_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     char *view_id = NULL;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_view_id(ai_h, "login");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_auth_info_get_view_id(ai_h, &view_id);
-    ASSERT_NE(view_id, nullptr);
+    EXPECT_NE(view_id, nullptr);
 
     free(view_id);
 
@@ -1014,10 +1017,10 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_view_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_view_id_n)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_view_id(ai_h, "login");
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -1035,10 +1038,10 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_view_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_autofill_data_present_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_autofill_data_present(ai_h, true);
     autofill_auth_info_destroy(ai_h);
@@ -1063,14 +1066,14 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_autofill_data_present_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_autofill_data_present_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     bool autofill_data_present = false;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_autofill_data_present(ai_h, true);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_auth_info_get_autofill_data_present(ai_h, &autofill_data_present);
     autofill_auth_info_destroy(ai_h);
@@ -1084,13 +1087,13 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_autofill_data_present_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_autofill_data_present_n)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_autofill_data_present(ai_h, true);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_auth_info_get_autofill_data_present(ai_h, NULL);
     autofill_auth_info_destroy(ai_h);
@@ -1104,10 +1107,10 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_autofill_data_present_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_authentication_needed_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_authentication_needed(ai_h, true);
     autofill_auth_info_destroy(ai_h);
@@ -1132,14 +1135,14 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_authentication_needed_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_authentication_needed_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     bool authentication_needed = false;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_authentication_needed(ai_h, true);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_auth_info_get_authentication_needed(ai_h, &authentication_needed);
     autofill_auth_info_destroy(ai_h);
@@ -1153,13 +1156,13 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_authentication_needed_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_authentication_needed_n)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_authentication_needed(ai_h, true);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_auth_info_get_authentication_needed(ai_h, NULL);
     autofill_auth_info_destroy(ai_h);
@@ -1173,10 +1176,10 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_authentication_needed_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_service_name_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_service_name(ai_h, "autofill");
     autofill_auth_info_destroy(ai_h);
@@ -1201,18 +1204,18 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_service_name_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_service_name_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     char *service_name = NULL;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_service_name(ai_h, "autofill");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_auth_info_get_service_name(ai_h, &service_name);
     autofill_auth_info_destroy(ai_h);
-    ASSERT_NE(service_name, nullptr);
+    EXPECT_NE(service_name, nullptr);
 
     free(service_name);
 
@@ -1226,13 +1229,13 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_service_name_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_service_name_n)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_service_name(ai_h, "autofill");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_auth_info_get_service_name(ai_h, NULL);
     autofill_auth_info_destroy(ai_h);
@@ -1246,10 +1249,10 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_service_name_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_service_message_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_service_message(ai_h, "autofill");
     autofill_auth_info_destroy(ai_h);
@@ -1274,18 +1277,18 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_service_message_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_service_message_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     char *service_message;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_service_message(ai_h, "autofill");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_auth_info_get_service_message(ai_h, &service_message);
     autofill_auth_info_destroy(ai_h);
-    ASSERT_NE(service_message, nullptr);
+    EXPECT_NE(service_message, nullptr);
 
     free(service_message);
 
@@ -1299,13 +1302,13 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_service_message_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_service_message_n)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_service_message(ai_h, "autofill");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_auth_info_get_service_message(ai_h, NULL);
     autofill_auth_info_destroy(ai_h);
@@ -1319,10 +1322,10 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_service_message_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_service_logo_image_path_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_service_logo_image_path(ai_h, "autofill");
     autofill_auth_info_destroy(ai_h);
@@ -1347,18 +1350,18 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_set_service_logo_image_path_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_service_logo_image_path_p)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     char *service_logo_image_path;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_service_logo_image_path(ai_h, "autofill");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_auth_info_get_service_logo_image_path(ai_h, &service_logo_image_path);
     autofill_auth_info_destroy(ai_h);
-    ASSERT_NE(service_logo_image_path, nullptr);
+    EXPECT_NE(service_logo_image_path, nullptr);
 
     free(service_logo_image_path);
 
@@ -1372,13 +1375,13 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_service_logo_image_path_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_service_logo_image_path_n)
 {
-    autofill_auth_info_h ai_h;
+    autofill_auth_info_h ai_h = nullptr;
     int ret = autofill_auth_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_auth_info_set_service_logo_image_path(ai_h, "autofill");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_auth_info_get_service_logo_image_path(ai_h, NULL);
     autofill_auth_info_destroy(ai_h);
@@ -1393,10 +1396,10 @@ TEST_F(AutofillCommonTest, utc_autofill_auth_info_get_service_logo_image_path_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_create_p)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     int ret = autofill_fill_response_create(&fr_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_NE(fr_h, nullptr);
 }
 
 /**
@@ -1417,10 +1420,10 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_create_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_destroy_p)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_destroy(fr_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -1444,10 +1447,10 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_destroy_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_set_app_id_p)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_set_app_id(fr_h, "org.tizen.example");
     autofill_fill_response_destroy(fr_h);
@@ -1461,10 +1464,10 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_set_app_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_set_app_id_n)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_set_app_id(fr_h, NULL);
     autofill_fill_response_destroy(fr_h);
@@ -1478,17 +1481,17 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_set_app_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_get_app_id_p)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     char *app_id = NULL;
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_set_app_id(fr_h, "org.tizen.example");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_get_app_id(fr_h, &app_id);
-    ASSERT_NE(app_id, nullptr);
+    EXPECT_NE(app_id, nullptr);
 
     free(app_id);
 
@@ -1503,12 +1506,12 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_get_app_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_get_app_id_n)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_set_app_id(fr_h, "org.tizen.example");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_get_app_id(fr_h, NULL);
     autofill_fill_response_destroy(fr_h);
@@ -1522,12 +1525,12 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_get_app_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_set_view_id_p)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_set_view_id(fr_h, "login");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     autofill_fill_response_destroy(fr_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -1540,9 +1543,9 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_set_view_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_set_view_id_n)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_set_view_id(fr_h, NULL);
     autofill_fill_response_destroy(fr_h);
@@ -1556,18 +1559,18 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_set_view_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_get_view_id_p)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     char *view_id = NULL;
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_set_view_id(fr_h, "login");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_get_view_id(fr_h, &view_id);
     autofill_fill_response_destroy(fr_h);
-    ASSERT_NE(view_id, nullptr);
+    EXPECT_NE(view_id, nullptr);
 
     free(view_id);
 
@@ -1581,13 +1584,13 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_get_view_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_get_view_id_n)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_set_view_id(fr_h, "login");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_get_view_id(fr_h, NULL);
     autofill_fill_response_destroy(fr_h);
@@ -1601,15 +1604,15 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_get_view_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_add_group_p)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     autofill_fill_response_group_h res_group;
 
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_group_create(&res_group);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_add_group(fr_h, res_group);
 
@@ -1626,10 +1629,10 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_add_group_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_add_group_n)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_add_group(fr_h, NULL);
     autofill_fill_response_destroy(fr_h);
@@ -1643,17 +1646,17 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_add_group_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_foreach_group_p)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     autofill_fill_response_group_h res_group;
 
     fill_response_group_cb_result = false;
 
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_group_create(&res_group);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     autofill_fill_response_add_group(fr_h, res_group);
 
@@ -1674,10 +1677,10 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_foreach_group_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_foreach_group_n)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_foreach_group(fr_h, NULL, NULL);
     autofill_fill_response_destroy(fr_h);
@@ -1691,19 +1694,19 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_foreach_group_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_get_group_count_p)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     autofill_fill_response_group_h res_group;
     int count = 0;
 
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_group_create(&res_group);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_add_group(fr_h, res_group);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_get_group_count(fr_h, &count);
     autofill_fill_response_group_destroy(res_group);
@@ -1719,10 +1722,10 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_get_group_count_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_get_group_count_n)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_get_group_count(fr_h, NULL);
     autofill_fill_response_destroy(fr_h);
@@ -1736,19 +1739,19 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_get_group_count_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_add_item_p)
 {
-    autofill_fill_response_h fr_h;
-    autofill_fill_response_group_h res_group;
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_h fr_h = nullptr;
+    autofill_fill_response_group_h res_group = nullptr;
+    autofill_fill_response_item_h res_it_h = nullptr;
 
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_group_create(&res_group);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_add_group(fr_h, res_group);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     /* item 1 */
     autofill_fill_response_item_create(&res_it_h);
@@ -1771,18 +1774,18 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_add_item_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_add_item_n)
 {
-    autofill_fill_response_h fr_h;
+    autofill_fill_response_h fr_h = nullptr;
     autofill_fill_response_group_h res_group;
 
     int ret = autofill_fill_response_create(&fr_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(fr_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(fr_h, nullptr);
 
     ret = autofill_fill_response_group_create(&res_group);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_add_group(fr_h, res_group);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     /* Add item in group */
     ret = autofill_fill_response_group_add_item(res_group, NULL);
@@ -1798,9 +1801,11 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_add_item_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_create_p)
 {
-    autofill_fill_response_group_h res_group;
+    autofill_fill_response_group_h res_group = nullptr;
     int ret = autofill_fill_response_group_create(&res_group);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+
+    autofill_fill_response_group_destroy(res_group);
 }
 
 /**
@@ -1823,7 +1828,7 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_destroy_p)
 {
     autofill_fill_response_group_h res_group;
     int ret = autofill_fill_response_group_create(&res_group);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_group_destroy(res_group);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -1848,11 +1853,11 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_destroy_n)
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_clone_p)
 {
     autofill_fill_response_group_h res_group, res_clone_group;
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
     int ret;
 
     ret = autofill_fill_response_group_create(&res_group);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     /* item 1 */
     autofill_fill_response_item_create(&res_it_h);
@@ -1862,10 +1867,10 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_clone_p)
 
     /* Add item in group */
     ret = autofill_fill_response_group_add_item(res_group, res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_group_clone(res_group, &res_clone_group);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     autofill_fill_response_group_destroy(res_group);
     autofill_fill_response_group_destroy(res_clone_group);
@@ -1891,11 +1896,11 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_clone_n)
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_clone_n2)
 {
     int ret;
-    autofill_fill_response_group_h res_group;
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_group_h res_group = nullptr;
+    autofill_fill_response_item_h res_it_h = nullptr;
 
     ret = autofill_fill_response_group_create(&res_group);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     /* item 1 */
     autofill_fill_response_item_create(&res_it_h);
@@ -1905,7 +1910,7 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_clone_n2)
 
     /* Add item in group */
     ret = autofill_fill_response_group_add_item(res_group, res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
     ret = autofill_fill_response_group_clone(res_group, NULL);
     EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
 
@@ -1919,31 +1924,31 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_clone_n2)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_foreach_item_p)
 {
-    autofill_fill_response_group_h res_group;
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_group_h res_group = NULL;
+    autofill_fill_response_item_h res_it_h = NULL;
     int ret;
 
     fill_response_item_cb_result = false;
 
     ret = autofill_fill_response_group_create(&res_group);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     /* item 1 */
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_id(res_it_h, "id");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_presentation_text(res_it_h, "tester1");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_value(res_it_h, "tester1");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     /* Add item in group */
     ret = autofill_fill_response_group_add_item(res_group, res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_group_foreach_item(res_group, fill_response_item_cb, NULL);
     autofill_fill_response_group_destroy(res_group);
@@ -1974,7 +1979,7 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_foreach_item_n2)
     int ret;
     autofill_fill_response_group_h res_group;
     ret = autofill_fill_response_group_create(&res_group);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_group_foreach_item(res_group, NULL, NULL);
     EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
@@ -1989,10 +1994,10 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_group_foreach_item_n2)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_create_p)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     int ret = autofill_save_view_info_create(&vi_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_NE(vi_h, nullptr);
 }
 
 /**
@@ -2013,10 +2018,10 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_create_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_destroy_p)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_destroy(vi_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -2040,10 +2045,10 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_destroy_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_set_app_id_p)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_set_app_id(vi_h, "org.tizen.example");
     autofill_save_view_info_destroy(vi_h);
@@ -2058,10 +2063,10 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_set_app_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_set_app_id_n)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_set_app_id(vi_h, NULL);
     autofill_save_view_info_destroy(vi_h);
@@ -2075,18 +2080,18 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_set_app_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_get_app_id_p)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     char *app_id = NULL;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_set_app_id(vi_h, "org.tizen.example");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_view_info_get_app_id(vi_h, &app_id);
     autofill_save_view_info_destroy(vi_h);
-    ASSERT_NE(app_id, nullptr);
+    EXPECT_NE(app_id, nullptr);
 
     free(app_id);
 
@@ -2100,13 +2105,13 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_get_app_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_get_app_id_n)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_set_app_id(vi_h, "org.tizen.example");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_view_info_get_app_id(vi_h, NULL);
     autofill_save_view_info_destroy(vi_h);
@@ -2121,10 +2126,10 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_get_app_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_set_view_id_p)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_set_view_id(vi_h, "login");
     autofill_save_view_info_destroy(vi_h);
@@ -2139,10 +2144,10 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_set_view_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_set_view_id_n)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_set_view_id(vi_h, NULL);
     EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
@@ -2157,18 +2162,18 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_set_view_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_get_view_id_p)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     char *view_id = NULL;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_set_view_id(vi_h, "login");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_view_info_get_view_id(vi_h, &view_id);
     autofill_save_view_info_destroy(vi_h);
-    ASSERT_NE(view_id, nullptr);
+    EXPECT_NE(view_id, nullptr);
 
     free(view_id);
 
@@ -2182,13 +2187,13 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_get_view_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_get_view_id_n)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_set_view_id(vi_h, "login");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_view_info_get_view_id(vi_h, NULL);
 
@@ -2204,10 +2209,10 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_get_view_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_set_view_title_p)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_set_view_title(vi_h, "login");
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -2222,10 +2227,10 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_set_view_title_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_set_view_title_n)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_set_view_title(vi_h, NULL);
     EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
@@ -2240,18 +2245,18 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_set_view_title_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_get_view_title_p)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     char *view_title = NULL;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_set_view_title(vi_h, "login");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_view_info_get_view_title(vi_h, &view_title);
     autofill_save_view_info_destroy(vi_h);
-    ASSERT_NE(view_title, nullptr);
+    EXPECT_NE(view_title, nullptr);
 
     free(view_title);
 
@@ -2265,13 +2270,13 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_get_view_title_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_get_view_title_n)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_set_view_title(vi_h, "login");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_view_info_get_view_title(vi_h, NULL);
 
@@ -2287,14 +2292,14 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_get_view_title_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_add_item_p)
 {
-    autofill_save_item_h si_h;
-    autofill_save_view_info_h vi_h;
+    autofill_save_item_h si_h = nullptr;
+    autofill_save_view_info_h vi_h = nullptr;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_item_create(&si_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_view_info_add_item(vi_h, si_h);
 
@@ -2310,10 +2315,10 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_add_item_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_add_item_n)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_add_item(vi_h, NULL);
 
@@ -2329,27 +2334,27 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_add_item_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_foreach_item_p)
 {
-    autofill_save_view_info_h vi_h;
-    autofill_save_item_h it_h;
+    autofill_save_view_info_h vi_h = nullptr;
+    autofill_save_item_h it_h = nullptr;
 
     save_view_info_item_cb_result = false;
 
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_save_item_set_id(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_item_set_label(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_item_set_value(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     autofill_save_view_info_add_item(vi_h, it_h);
 
@@ -2368,10 +2373,10 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_foreach_item_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_view_info_foreach_item_n)
 {
-    autofill_save_view_info_h vi_h;
+    autofill_save_view_info_h vi_h = nullptr;
     int ret = autofill_save_view_info_create(&vi_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(vi_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(vi_h, nullptr);
 
     ret = autofill_save_view_info_foreach_item(vi_h, NULL, NULL);
     autofill_save_view_info_destroy(vi_h);
@@ -2385,11 +2390,13 @@ TEST_F(AutofillCommonTest, utc_autofill_save_view_info_foreach_item_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_create_p)
 {
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
     int ret;
 
     ret = autofill_fill_response_item_create(&res_it_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+
+    autofill_fill_response_item_destroy(res_it_h);
 }
 
 /**
@@ -2413,9 +2420,9 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_create_n)
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_destroy_p)
 {
     int ret;
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_destroy(res_it_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -2440,27 +2447,27 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_destroy_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_clone_p)
 {
-    autofill_fill_response_item_h res_it_h, res_clone_it_h;
+    autofill_fill_response_item_h res_it_h, res_clone_it_h = nullptr;
     int ret;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_id(res_it_h, "id");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_presentation_text(res_it_h, "tester1");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_value(res_it_h, "tester1");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_clone(res_it_h, &res_clone_it_h);
 
     autofill_fill_response_item_destroy(res_it_h);
     autofill_fill_response_item_destroy(res_clone_it_h);
 
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 }
 
 /**
@@ -2484,13 +2491,13 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_clone_n)
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_clone_n2)
 {
     int ret;
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_id(res_it_h, "id");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_clone(res_it_h, NULL);
     EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
@@ -2505,11 +2512,11 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_clone_n2)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_set_id_p)
 {
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
     int ret;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_id(res_it_h, "id");
     autofill_fill_response_item_destroy(res_it_h);
@@ -2523,11 +2530,11 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_set_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_set_id_n)
 {
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
     int ret;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_id(res_it_h, NULL);
     autofill_fill_response_item_destroy(res_it_h);
@@ -2543,21 +2550,20 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_get_id_p)
 {
     char *id;
     int ret;
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_id(res_it_h, "id");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_get_id(res_it_h, &id);
     autofill_fill_response_item_destroy(res_it_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = strcmp("id", id);
-    if (id)
-        free(id);
+    free(id);
 
     EXPECT_EQ(ret, 0);
 }
@@ -2570,10 +2576,10 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_get_id_p)
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_get_id_n)
 {
     int ret;
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_get_id(res_it_h, NULL);
     autofill_fill_response_item_destroy(res_it_h);
@@ -2587,11 +2593,11 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_get_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_set_value_p)
 {
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
     int ret;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_value(res_it_h, "test");
     autofill_fill_response_item_destroy(res_it_h);
@@ -2605,11 +2611,11 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_set_value_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_set_value_n)
 {
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
     int ret;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_value(res_it_h, NULL);
     autofill_fill_response_item_destroy(res_it_h);
@@ -2625,21 +2631,20 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_get_value_p)
 {
     char *value;
     int ret;
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_value(res_it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_get_value(res_it_h, &value);
     autofill_fill_response_item_destroy(res_it_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = strcmp("test", value);
-    if (value)
-        free(value);
+    free(value);
 
     EXPECT_EQ(ret, 0);
 }
@@ -2652,10 +2657,10 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_get_value_p)
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_get_value_n)
 {
     int ret;
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_get_value(res_it_h, NULL);
     autofill_fill_response_item_destroy(res_it_h);
@@ -2669,11 +2674,11 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_get_value_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_set_presentation_text_p)
 {
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
     int ret;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_presentation_text(res_it_h, "test");
     autofill_fill_response_item_destroy(res_it_h);
@@ -2687,11 +2692,11 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_set_presentation_text
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_set_presentation_text_n)
 {
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
     int ret;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_presentation_text(res_it_h, NULL);
     autofill_fill_response_item_destroy(res_it_h);
@@ -2707,22 +2712,22 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_get_presentation_text
 {
     char *presentation_text;
     int ret;
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_presentation_text(res_it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_get_presentation_text(res_it_h, &presentation_text);
-    autofill_fill_response_item_destroy(res_it_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = strcmp("test", presentation_text);
-    if (presentation_text)
-        free(presentation_text);
+    free(presentation_text);
     EXPECT_EQ(ret, 0);
+
+    autofill_fill_response_item_destroy(res_it_h);
 }
 
 /**
@@ -2733,10 +2738,10 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_get_presentation_text
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_get_presentation_text_n)
 {
     int ret;
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_get_presentation_text(res_it_h, NULL);
     autofill_fill_response_item_destroy(res_it_h);
@@ -2750,11 +2755,11 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_get_presentation_text
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_set_autofill_hint_p)
 {
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
     int ret;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_set_autofill_hint(res_it_h, AUTOFILL_HINT_NAME);
     autofill_fill_response_item_destroy(res_it_h);
@@ -2781,12 +2786,12 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_set_autofill_hint_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_get_autofill_hint_p)
 {
-    autofill_fill_response_item_h res_it_h;
+    autofill_fill_response_item_h res_it_h = nullptr;
     autofill_hint_e autofill_hint;
     int ret;
 
     ret = autofill_fill_response_item_create(&res_it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_fill_response_item_get_autofill_hint(res_it_h, &autofill_hint);
     autofill_fill_response_item_destroy(res_it_h);
@@ -2813,10 +2818,10 @@ TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_get_autofill_hint_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_item_create_p)
 {
-    autofill_save_item_h it_h;
+    autofill_save_item_h it_h = nullptr;
     int ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 }
 
 /**
@@ -2839,17 +2844,17 @@ TEST_F(AutofillCommonTest, utc_autofill_save_item_destroy_p)
 {
     autofill_save_item_h it_h = NULL;
     int ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_save_item_set_id(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_item_set_label(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_item_set_value(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_item_destroy(it_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -2873,19 +2878,19 @@ TEST_F(AutofillCommonTest, utc_autofill_save_item_destroy_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_save_item_clone_p)
 {
-    autofill_save_item_h it_h = NULL, clone_h;
+    autofill_save_item_h it_h = NULL, clone_h = nullptr;
     int ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_save_item_set_id(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_item_set_label(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_item_set_value(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_item_clone(it_h, &clone_h);
 
@@ -2915,11 +2920,11 @@ TEST_F(AutofillCommonTest, utc_autofill_save_item_clone_n2)
 {
     autofill_save_item_h it_h = NULL;
     int ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_save_item_set_id(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_item_clone(it_h, NULL);
     EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
@@ -2936,8 +2941,8 @@ TEST_F(AutofillCommonTest, utc_autofill_save_item_set_autofill_hint_p)
 {
     autofill_save_item_h it_h = NULL;
     int ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_save_item_set_autofill_hint(it_h, AUTOFILL_HINT_NAME);
     autofill_save_item_destroy(it_h);
@@ -2965,8 +2970,8 @@ TEST_F(AutofillCommonTest, utc_autofill_save_item_get_autofill_hint_p)
     autofill_save_item_h it_h = NULL;
     autofill_hint_e autofill_hint;
     int ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_save_item_get_autofill_hint(it_h, &autofill_hint);
     autofill_save_item_destroy(it_h);
@@ -2994,8 +2999,8 @@ TEST_F(AutofillCommonTest, utc_autofill_save_item_set_id_p)
 {
     autofill_save_item_h it_h = NULL;
     int ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_save_item_set_id(it_h, "test");
     autofill_save_item_destroy(it_h);
@@ -3023,19 +3028,18 @@ TEST_F(AutofillCommonTest, utc_autofill_save_item_get_id_p)
     autofill_save_item_h it_h = NULL;
     char *id = NULL;
     int ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_save_item_set_id(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_item_get_id(it_h, &id);
     autofill_save_item_destroy(it_h);
 
-    ASSERT_NE(id, nullptr);
+    EXPECT_NE(id, nullptr);
 
-    if (id)
-        free(id);
+    free(id);
 
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 }
@@ -3061,8 +3065,8 @@ TEST_F(AutofillCommonTest, utc_autofill_save_item_set_label_p)
 {
     autofill_save_item_h it_h = NULL;
     int ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_save_item_set_label(it_h, "test");
     autofill_save_item_destroy(it_h);
@@ -3090,16 +3094,16 @@ TEST_F(AutofillCommonTest, utc_autofill_save_item_get_label_p)
     autofill_save_item_h it_h = NULL;
     char *label = NULL;
     int ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_save_item_set_label(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_item_get_label(it_h, &label);
     autofill_save_item_destroy(it_h);
 
-    ASSERT_NE(label, nullptr);
+    EXPECT_NE(label, nullptr);
 
     if (label)
         free(label);
@@ -3128,8 +3132,8 @@ TEST_F(AutofillCommonTest, utc_autofill_save_item_set_sensitive_data_p)
 {
     autofill_save_item_h it_h = NULL;
     int ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_save_item_set_sensitive_data(it_h, true);
     autofill_save_item_destroy(it_h);
@@ -3157,8 +3161,8 @@ TEST_F(AutofillCommonTest, utc_autofill_save_item_get_sensitive_data_p)
     autofill_save_item_h it_h = NULL;
     bool sensitive_data;
     int ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_save_item_get_sensitive_data(it_h, &sensitive_data);
     autofill_save_item_destroy(it_h);
@@ -3186,8 +3190,8 @@ TEST_F(AutofillCommonTest, utc_autofill_save_item_set_value_p)
 {
     autofill_save_item_h it_h = NULL;
     int ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_save_item_set_value(it_h, "test");
     autofill_save_item_destroy(it_h);
@@ -3215,16 +3219,16 @@ TEST_F(AutofillCommonTest, utc_autofill_save_item_get_value_p)
     autofill_save_item_h it_h = NULL;
     char *value = NULL;
     int ret = autofill_save_item_create(&it_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(it_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(it_h, nullptr);
 
     ret = autofill_save_item_set_value(it_h, "test");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_save_item_get_value(it_h, &value);
     autofill_save_item_destroy(it_h);
 
-    ASSERT_NE(value, nullptr);
+    EXPECT_NE(value, nullptr);
 
     if (value)
         free(value);
@@ -3252,10 +3256,10 @@ TEST_F(AutofillCommonTest, utc_autofill_save_item_get_value_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_error_info_create_p)
 {
-    autofill_error_info_h ai_h;
+    autofill_error_info_h ai_h = nullptr;
     int ret = autofill_error_info_create(&ai_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_NE(ai_h, nullptr);
 }
 
 /**
@@ -3277,10 +3281,10 @@ TEST_F(AutofillCommonTest, utc_autofill_error_info_create_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_error_info_destroy_p)
 {
-    autofill_error_info_h ai_h;
+    autofill_error_info_h ai_h = nullptr;
     int ret = autofill_error_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_error_info_destroy(ai_h);
     EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
@@ -3304,10 +3308,10 @@ TEST_F(AutofillCommonTest, utc_autofill_error_info_destroy_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_error_info_set_app_id_p)
 {
-    autofill_error_info_h ai_h;
+    autofill_error_info_h ai_h = nullptr;
     int ret = autofill_error_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_error_info_set_app_id(ai_h, "org.tizen.example");
     autofill_error_info_destroy(ai_h);
@@ -3321,10 +3325,10 @@ TEST_F(AutofillCommonTest, utc_autofill_error_info_set_app_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_error_info_set_app_id_n)
 {
-    autofill_error_info_h ai_h;
+    autofill_error_info_h ai_h = nullptr;
     int ret = autofill_error_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_error_info_set_app_id(ai_h, NULL);
     autofill_error_info_destroy(ai_h);
@@ -3338,17 +3342,17 @@ TEST_F(AutofillCommonTest, utc_autofill_error_info_set_app_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_error_info_get_app_id_p)
 {
-    autofill_error_info_h ai_h;
+    autofill_error_info_h ai_h = nullptr;
     char *app_id = NULL;
     int ret = autofill_error_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_error_info_set_app_id(ai_h, "org.tizen.example");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_error_info_get_app_id(ai_h, &app_id);
-    ASSERT_NE(app_id, nullptr);
+    EXPECT_NE(app_id, nullptr);
 
     free(app_id);
 
@@ -3364,13 +3368,13 @@ TEST_F(AutofillCommonTest, utc_autofill_error_info_get_app_id_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_error_info_get_app_id_n)
 {
-    autofill_error_info_h ai_h;
+    autofill_error_info_h ai_h = nullptr;
     int ret = autofill_error_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_error_info_set_app_id(ai_h, "org.tizen.example");
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_error_info_get_app_id(ai_h, NULL);
     autofill_error_info_destroy(ai_h);
@@ -3384,10 +3388,10 @@ TEST_F(AutofillCommonTest, utc_autofill_error_info_get_app_id_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_error_info_set_error_code_p)
 {
-    autofill_error_info_h ai_h;
+    autofill_error_info_h ai_h = nullptr;
     int ret = autofill_error_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_error_info_set_error_code(ai_h, AUTOFILL_ERROR_AUTHENTICATION_FAILED);
     autofill_error_info_destroy(ai_h);
@@ -3412,14 +3416,14 @@ TEST_F(AutofillCommonTest, utc_autofill_error_info_set_error_code_n)
  */
 TEST_F(AutofillCommonTest, utc_autofill_error_info_get_error_code_p)
 {
-    autofill_error_info_h ai_h;
+    autofill_error_info_h ai_h = nullptr;
     autofill_error_e error_code = AUTOFILL_ERROR_NONE;
     int ret = autofill_error_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_error_info_set_error_code(ai_h, AUTOFILL_ERROR_AUTHENTICATION_FAILED);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_error_info_get_error_code(ai_h, &error_code);
     autofill_error_info_destroy(ai_h);
@@ -3433,13 +3437,13 @@ TEST_F(AutofillCommonTest, utc_autofill_error_info_get_error_code_p)
  */
 TEST_F(AutofillCommonTest, utc_autofill_error_info_get_error_code_n)
 {
-    autofill_error_info_h ai_h;
+    autofill_error_info_h ai_h = nullptr;
     int ret = autofill_error_info_create(&ai_h);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
-    ASSERT_NE(ai_h, nullptr);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_NE(ai_h, nullptr);
 
     ret = autofill_error_info_set_error_code(ai_h, AUTOFILL_ERROR_AUTHENTICATION_FAILED);
-    ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+    EXPECT_EQ(ret, AUTOFILL_ERROR_NONE);
 
     ret = autofill_error_info_get_error_code(ai_h, NULL);
     autofill_error_info_destroy(ai_h);