From bf8428756a1806c07a566367b5249b72c85e07a7 Mon Sep 17 00:00:00 2001 From: Damian Pietruchowski Date: Thu, 26 Jan 2017 11:05:26 +0100 Subject: [PATCH] Refactoring - smoke tests Change-Id: I2097bc121d475b096884724ac184d6138bed4236 Signed-off-by: Damian Pietruchowski --- src/unit_tests/smoke_test.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/unit_tests/smoke_test.cc b/src/unit_tests/smoke_test.cc index 7a2aabf..a227f6f 100644 --- a/src/unit_tests/smoke_test.cc +++ b/src/unit_tests/smoke_test.cc @@ -572,17 +572,7 @@ ci::AppInstaller::Result Recover(const bf::path& recovery_file, RequestResult mode = RequestResult::NORMAL) { const char* argv[] = {"", "-b", recovery_file.c_str(), "-u", kTestUserIdStr.c_str()}; - TestPkgmgrInstaller pkgmgr_installer; - std::unique_ptr query_interface = - CreateQueryInterface(); - auto pkgmgr = - ci::PkgMgrInterface::Create(SIZEOFARRAY(argv), const_cast(argv), - &pkgmgr_installer, query_interface.get()); - if (!pkgmgr) { - LOG(ERROR) << "Failed to initialize pkgmgr interface"; - return ci::AppInstaller::Result::UNKNOWN; - } - return RunInstallerWithPkgrmgr(pkgmgr, type, mode); + return CallBackend(SIZEOFARRAY(argv), argv, type, mode); } void BackupPath(const bf::path& path) { -- 2.7.4