summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e381ba2)
Wayland protocol does not allow the null argument of which type
is arrary anymore.
Change-Id: I8e00f68154aa064e7a0667e49253f67a97c90db0
{
uint pid = 12345;
const char *effect_type;
{
uint pid = 12345;
const char *effect_type;
+ struct wl_array options;
- 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);
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;
}
TEST_F(LaunchEffectTest, Req_TizenLaunchEffectTypeUnSet)
{
uint pid = 12345;
const char *effect_type;
+ struct wl_array options;
effect_type = "depth-in";
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);
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();
tizen_launch_effect_type_unset(effect_res, pid);
client->RoundTrip();
custom_effect = 1;
tizen_launch_splash_launch_v2(splash, path_edc,\
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);
client->RoundTrip();
wl_array_release(&options);
wl_array_release(&extra_config);