X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Ftc_launch_effect.cpp;h=fef870642e337816024479086cdad2305786fca1;hb=c0ae53ca6a03de4893f9c255f51a0aa3f9c67699;hp=e0249567fabfc6bd836c3d6a787d7f37e6d776f8;hpb=e381ba22141a56e5dc669be04248cdf8c1beeebf;p=platform%2Fcore%2Fuifw%2Flibds-tizen.git diff --git a/tests/tc_launch_effect.cpp b/tests/tc_launch_effect.cpp index e024956..fef8706 100644 --- a/tests/tc_launch_effect.cpp +++ b/tests/tc_launch_effect.cpp @@ -328,26 +328,32 @@ TEST_F(LaunchEffectTest, Req_TizenLaunchEffectTypeSet) { uint pid = 12345; const char *effect_type; + struct wl_array options; effect_type = "launch"; - tizen_launch_effect_type_set(effect_res, effect_type, pid, NULL); + wl_array_init(&options); + tizen_launch_effect_type_set(effect_res, effect_type, pid, &options); client->RoundTrip(); EXPECT_TRUE(comp->bTypeSet); EXPECT_TRUE(comp->mPid == pid); EXPECT_TRUE(comp->mEffectType == DS_TIZEN_LAUNCH_EFFECT_TYPE_LAUNCH); + wl_array_release(&options); } TEST_F(LaunchEffectTest, Req_TizenLaunchEffectTypeUnSet) { uint pid = 12345; const char *effect_type; + struct wl_array options; effect_type = "depth-in"; - tizen_launch_effect_type_set(effect_res, effect_type, pid, NULL); + wl_array_init(&options); + tizen_launch_effect_type_set(effect_res, effect_type, pid, &options); client->RoundTrip(); EXPECT_TRUE(comp->bTypeSet); EXPECT_TRUE(comp->mPid == pid); EXPECT_TRUE(comp->mEffectType == DS_TIZEN_LAUNCH_EFFECT_TYPE_DEPTH_IN); + wl_array_release(&options); tizen_launch_effect_type_unset(effect_res, pid); client->RoundTrip(); @@ -467,7 +473,7 @@ TEST_F(LaunchEffectTest, Req_TizenLaunchSplashLaunch_v2) custom_effect = 1; tizen_launch_splash_launch_v2(splash, path_edc,\ - SPLASH_TYPE_EDC, 24, 0, 0, "depth-in", "default", &options, custom_effect ? &extra_config : NULL); + SPLASH_TYPE_EDC, 24, 0, 0, "depth-in", "default", &options, &extra_config); client->RoundTrip(); wl_array_release(&options); wl_array_release(&extra_config);