}
/**
+ * @testcase utc_autofill_connect_n2
+ * @since_tizen 5.5
+ * @description Negative UTC of the function that connects to autofill daemon.
+ */
+TEST_F(AutofillClientTest, utc_autofill_connect_n2)
+{
+ int ret = autofill_connect(af_h, NULL, NULL);
+ EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
+}
+
+/**
* @testcase utc_autofill_auth_info_request_n
* @since_tizen 5.5
* @description Negative UTC of the function that sends authentication information.
}
/**
+ * @testcase utc_autofill_auth_info_request_n2
+ * @since_tizen 5.5
+ * @description Negative UTC of the function that sends authentication information.
+ */
+TEST_F(AutofillClientTest, utc_autofill_auth_info_request_n2)
+{
+ int ret = autofill_auth_info_request(af_h, NULL);
+ EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
+}
+
+/**
* @testcase utc_autofill_auth_info_set_received_cb_p
* @since_tizen 5.5
* @description Positive UTC of the function that sets auth info received callback.
}
/**
+ * @testcase utc_autofill_fill_request_n2
+ * @since_tizen 5.5
+ * @description Negative UTC of the function that sends fill request.
+ */
+TEST_F(AutofillClientTest, utc_autofill_fill_request_n2)
+{
+ int ret = autofill_fill_request(af_h, NULL);
+ EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
+}
+
+/**
* @testcase utc_autofill_cancel_fill_request_n
* @since_tizen 5.5
* @description Negative UTC of the function that cancels fill request.
}
/**
+ * @testcase utc_autofill_cancel_fill_request_n2
+ * @since_tizen 5.5
+ * @description Negative UTC of the function that cancels fill request.
+ */
+TEST_F(AutofillClientTest, utc_autofill_cancel_fill_request_n2)
+{
+ int ret = autofill_cancel_fill_request(af_h, NULL);
+ EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
+}
+
+/**
* @testcase utc_autofill_fill_response_set_received_cb_p
* @since_tizen 5.5
* @description Positive UTC of the function that sets fill response received callback.
}
/**
+ * @testcase utc_autofill_item_clone_n2
+ * @since_tizen 5.5
+ * @description Negative UTC of the function that clones autofill item.
+ */
+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);
+
+ ret = autofill_item_set_id(it_h, "test");
+ ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+
+ ret = autofill_item_set_label(it_h, "test");
+ ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+
+ ret = autofill_item_set_value(it_h, "test");
+ ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+
+ ret = autofill_item_clone(it_h, NULL);
+ EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
+
+ autofill_item_destroy(it_h);
+}
+
+/**
* @testcase utc_autofill_item_set_autofill_hint_p
* @since_tizen 5.5
* @description Positive UTC of the function that sets autofill hint in an autofill item.
}
/**
+ * @testcase utc_autofill_fill_response_group_clone_n2
+ * @since_tizen 5.5
+ * @description Negative UTC of the function that clones autofill fill response group.
+ */
+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;
+
+ ret = autofill_fill_response_group_create(&res_group);
+ ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+
+ /* item 1 */
+ autofill_fill_response_item_create(&res_it_h);
+ autofill_fill_response_item_set_id(res_it_h, "id");
+ autofill_fill_response_item_set_presentation_text(res_it_h, "tester1");
+ autofill_fill_response_item_set_value(res_it_h, "tester1");
+
+ /* Add item in group */
+ ret = autofill_fill_response_group_add_item(res_group, res_it_h);
+ ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+ ret = autofill_fill_response_group_clone(res_group, NULL);
+ EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
+
+ autofill_fill_response_group_destroy(res_group);
+}
+
+/**
* @testcase utc_autofill_fill_response_group_foreach_item_p
* @since_tizen 5.5
* @description Positive UTC of the function that retrieve each autofill fill response item in autofill fill response group.
}
/**
+ * @testcase utc_autofill_fill_response_group_foreach_item_n2
+ * @since_tizen 5.5
+ * @description Negative UTC of the function that retrieve each autofill fill response item in autofill fill response group.
+ */
+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);
+
+ ret = autofill_fill_response_group_foreach_item(res_group, NULL, NULL);
+ EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
+
+ autofill_fill_response_group_destroy(res_group);
+}
+
+/**
* @testcase utc_autofill_save_view_info_create_p
* @since_tizen 5.5
* @description Positive UTC of the function that creates autofill save view information.
}
/**
+ * @testcase utc_autofill_fill_response_item_clone_n2
+ * @since_tizen 5.5
+ * @description Negative UTC of the function that clones autofill fill response item.
+ */
+TEST_F(AutofillCommonTest, utc_autofill_fill_response_item_clone_n2)
+{
+ int ret;
+ autofill_fill_response_item_h res_it_h;
+
+ ret = autofill_fill_response_item_create(&res_it_h);
+ ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+
+ ret = autofill_fill_response_item_set_id(res_it_h, "id");
+ ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+
+ ret = autofill_fill_response_item_clone(res_it_h, NULL);
+ EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
+
+ autofill_fill_response_item_destroy(res_it_h);
+}
+
+/**
* @testcase utc_autofill_fill_response_item_set_id_p
* @since_tizen 5.5
* @description Positive UTC of the function that sets autofill id in autofill fill response item.
}
/**
+ * @testcase utc_autofill_save_item_clone_n2
+ * @since_tizen 5.5
+ * @description Negative UTC of the function that clones autofill save item.
+ */
+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);
+
+ ret = autofill_save_item_set_id(it_h, "test");
+ ASSERT_EQ(ret, AUTOFILL_ERROR_NONE);
+
+ ret = autofill_save_item_clone(it_h, NULL);
+ EXPECT_EQ(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
+
+ autofill_save_item_destroy(it_h);
+}
+
+/**
* @testcase utc_autofill_save_item_set_autofill_hint_p
* @since_tizen 5.5
* @description Positive UTC of the function that sets autofill hint in autofill save item.