*/
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);
}
/**
{
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);
*/
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);
{
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);
{
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);
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);
{
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);
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);
}
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");
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);
{
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);
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);
{
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);
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);
*/
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);
}
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
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);
}
*/
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);
*/
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);
*/
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);
*/
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);
}
/**
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
}
/**
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
}
/**
{
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);
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);
/* 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);
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);
/* 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);
*/
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);
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);
*/
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);
}
/**
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
}
/**
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);
*/
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);
}
/**
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);
*/
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);
*/
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);
{
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);
}
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);
*/
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);
*/
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);
{
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);
}
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);
*/
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);
*/
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);
{
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);
}
/**
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);
*/
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);
*/
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);
*/
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);
}
/**
{
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);
*/
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);
{
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);
{
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);
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);
{
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);
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);
}
{
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);
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);
{
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);
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);
{
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);
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);
*/
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);
}
/**
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);
*/
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);