std::unique_ptr<ci::AppInstaller> installer;
if (type == "tpk") {
// should be fixed.
- tpk::TpkAppQueryInterface* tpk_aqi = new tpk::TpkAppQueryInterface();
+ std::shared_ptr<tpk::TpkAppQueryInterface> tpk_aqi(
+ new tpk::TpkAppQueryInterface());
pkgmgr->AddAppQueryInterface(idx, tpk_aqi);
installer.reset(new tpk::TpkInstaller(pkgmgr));
} else {
// should be fixed
- wgt::WgtAppQueryInterface* wgt_aqi = new wgt::WgtAppQueryInterface();
+ std::shared_ptr<wgt::WgtAppQueryInterface> wgt_aqi(
+ new wgt::WgtAppQueryInterface());
pkgmgr->AddAppQueryInterface(idx, wgt_aqi);
if (wgt_aqi->IsHybridApplication(pkgmgr->GetRequestInfo(idx),
pkgmgr->GetUid())) {
int n_pkgs = pkgmgr->GetRequestInfoCount();
std::unique_ptr<ci::AppInstaller> installer;
if (type == "tpk") {
- tpk::TpkAppQueryInterface* tpk_aqi = new tpk::TpkAppQueryInterface();
+ std::shared_ptr<tpk::TpkAppQueryInterface> tpk_aqi(
+ new tpk::TpkAppQueryInterface());
pkgmgr->AddAppQueryInterface(idx, tpk_aqi);
installer.reset(
idx + 1 == n_pkgs ?
new tpk::TpkInstaller(pkgmgr));
} else {
- wgt::WgtAppQueryInterface* wgt_aqi = new wgt::WgtAppQueryInterface();
+ std::shared_ptr<wgt::WgtAppQueryInterface> wgt_aqi(
+ new wgt::WgtAppQueryInterface());
pkgmgr->AddAppQueryInterface(idx, wgt_aqi);
installer.reset(
idx + 1 == n_pkgs ?
smoke_test::GetPkgType(pkgmgr->GetRequestInfo(idx), pkgmgr->GetUid());
std::unique_ptr<ci::AppInstaller> installer;
if (type == "tpk") {
- tpk::TpkAppQueryInterface* tpk_aqi = new tpk::TpkAppQueryInterface();
+ std::shared_ptr<tpk::TpkAppQueryInterface> tpk_aqi(
+ new tpk::TpkAppQueryInterface());
pkgmgr->AddAppQueryInterface(idx, tpk_aqi);
installer.reset(
new smoke_test::TpkInstallerWithoutPasrserPlugins(pkgmgr));
} else {
- wgt::WgtAppQueryInterface* wgt_aqi = new wgt::WgtAppQueryInterface();
+ std::shared_ptr<wgt::WgtAppQueryInterface> wgt_aqi(
+ new wgt::WgtAppQueryInterface());
pkgmgr->AddAppQueryInterface(idx, wgt_aqi);
if (wgt_aqi->IsHybridApplication(pkgmgr->GetRequestInfo(idx),
pkgmgr->GetUid())) {
std::unique_ptr<ci::AppInstaller> installer;
if (type == "tpk") {
- tpk::TpkAppQueryInterface* tpk_aqi = new tpk::TpkAppQueryInterface();
+ std::shared_ptr<tpk::TpkAppQueryInterface> tpk_aqi(
+ new tpk::TpkAppQueryInterface());
pkgmgr->AddAppQueryInterface(idx, tpk_aqi);
installer.reset(new tpk::TpkInstaller(pkgmgr));
} else {
- wgt::WgtAppQueryInterface* wgt_aqi = new wgt::WgtAppQueryInterface();
+ std::shared_ptr<wgt::WgtAppQueryInterface> wgt_aqi(
+ new wgt::WgtAppQueryInterface());
pkgmgr->AddAppQueryInterface(idx, wgt_aqi);
if (wgt_aqi->IsHybridApplication(pkgmgr->GetRequestInfo(idx),
pkgmgr->GetUid())) {
std::unique_ptr<ci::AppInstaller> installer;
if (type == "tpk") {
- tpk::TpkAppQueryInterface* tpk_aqi = new tpk::TpkAppQueryInterface();
+ std::shared_ptr<tpk::TpkAppQueryInterface> tpk_aqi(
+ new tpk::TpkAppQueryInterface());
pkgmgr->AddAppQueryInterface(idx, tpk_aqi);
installer.reset(new smoke_test::FailExpectedTpkInstaller(pkgmgr, fail_at));
} else {
- wgt::WgtAppQueryInterface* wgt_aqi = new wgt::WgtAppQueryInterface();
+ std::shared_ptr<wgt::WgtAppQueryInterface> wgt_aqi(
+ new wgt::WgtAppQueryInterface());
pkgmgr->AddAppQueryInterface(idx, wgt_aqi);
if (wgt_aqi->IsHybridApplication(pkgmgr->GetRequestInfo(idx),
pkgmgr->GetUid())) {