}
static const char *sstBgPath = SYS_SETTINGS_TEST_DIR"/bg_test.png";
+static const char *sstBgErrPath = SYS_SETTINGS_TEST_DIR"/bg_test.mp4";
TEST(SstScreenTest, getHomeWallPaper)
{
int ret = sst_get_interface(SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN, &iface);
EXPECT_EQ(SYSTEM_SETTINGS_ERROR_NONE, ret);
- sstm_evas_object_image_load_error_setup(0);
sstm_vconf_set_str_setup(VCONFKEY_BGSET, 0);
ret = sst_screen_set_home_wallpaper(iface, sstBgPath);
EXPECT_EQ(SYSTEM_SETTINGS_ERROR_NONE, ret);
int ret = sst_get_interface(SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN, &iface);
EXPECT_EQ(SYSTEM_SETTINGS_ERROR_NONE, ret);
- sstm_evas_object_image_load_error_setup(0);
sstm_vconf_set_str_setup(VCONFKEY_BGSET, -1);
ret = sst_screen_set_home_wallpaper(iface, sstBgPath);
EXPECT_EQ(SYSTEM_SETTINGS_ERROR_IO_ERROR, ret);
- sstm_evas_object_image_load_error_setup(-1);
ret = sst_screen_set_home_wallpaper(iface, "test.png");
EXPECT_EQ(SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER, ret);
+
+ ret = sst_screen_set_home_wallpaper(iface, sstBgErrPath);
+ EXPECT_EQ(SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER, ret);
}
int ret = sst_get_interface(SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN, &iface);
EXPECT_EQ(SYSTEM_SETTINGS_ERROR_NONE, ret);
- sstm_evas_object_image_load_error_setup(0);
sstm_vconf_set_str_setup(VCONFKEY_IDLE_LOCK_BGSET, 0);
ret = sst_screen_set_lock_wallpaper(iface, sstBgPath);
EXPECT_EQ(SYSTEM_SETTINGS_ERROR_NONE, ret);
int ret = sst_get_interface(SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN, &iface);
EXPECT_EQ(SYSTEM_SETTINGS_ERROR_NONE, ret);
- sstm_evas_object_image_load_error_setup(0);
sstm_vconf_set_str_setup(VCONFKEY_IDLE_LOCK_BGSET, -1);
ret = sst_screen_set_lock_wallpaper(iface, sstBgPath);
EXPECT_EQ(SYSTEM_SETTINGS_ERROR_IO_ERROR, ret);
- sstm_evas_object_image_load_error_setup(-1);
ret = sst_screen_set_lock_wallpaper(iface, "test.png");
EXPECT_EQ(SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER, ret);
}