auto* com = dynamic_cast<Component*>(cxt.get());
ASSERT_NE(com, nullptr);
app_control_h ctrl;
- app_control_create(&ctrl);
+ int ret = app_control_create(&ctrl);
+ ASSERT_EQ(ret, APP_CONTROL_ERROR_NONE);
tizen_base::Bundle b;
com->OnAction("test_action", AppControl(ctrl));
}
bool restarted, void* user_data) {
app_control_h reply = nullptr;
app_control_h ctrl;
- app_control_create(&ctrl);
+ int ret = app_control_create(&ctrl);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ return;
+
app_control_set_app_id(ctrl, "tizen.test.org");
launch_ret = component_send_launch_request_sync(context, ctrl,
&reply, &result);
bool restarted, void* user_data) {
app_control_h reply = nullptr;
app_control_h ctrl;
- app_control_create(&ctrl);
+ int ret = app_control_create(&ctrl);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ return;
+
app_control_set_app_id(ctrl, "tizen.test.org");
launch_ret = component_send_launch_request_sync(context, ctrl,
&reply, &result);
.WillOnce(Invoke([&](component_h context, app_control_h app_control,
bool restarted, void* user_data) {
app_control_h ctrl;
- app_control_create(&ctrl);
+ int ret = app_control_create(&ctrl);
+ if (ret != APP_CONTROL_ERROR_NONE)
+ return;
+
app_control_set_app_id(ctrl, "tizen.test.org");
launch_ret = component_send_launch_request_async(context, ctrl,
result_cb, reply_cb, nullptr);
auto* com = dynamic_cast<Component*>(cxt.get());
ASSERT_NE(com, nullptr);
app_control_h ctrl;
- app_control_create(&ctrl);
+ int ret = app_control_create(&ctrl);
+ ASSERT_EQ(ret, APP_CONTROL_ERROR_NONE);
+
com->OnAction("test_action", AppControl(ctrl));
com->OnDeviceOrientationChanged(
DeviceOrientation::Orientation::Orientation_90);