From: jongmyeongko Date: Thu, 4 Feb 2016 07:59:03 +0000 (+0900) Subject: modify codes related to getting app_path. X-Git-Tag: accepted/tizen/mobile/20160205.064214^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d99ec453082128f3660a689f12256511dfd10aed;hp=56555d1509ea6e1ab49bdc33061c3a3913cd6336;p=platform%2Fcore%2Fappfw%2Fwgt-backend.git modify codes related to getting app_path. Requires: https://review.tizen.org/gerrit/#/c/58863 Change-Id: I1b971a87a8aa534a4a6526d9c3b6a70046a986d0 Signed-off-by: jongmyeongko --- diff --git a/src/unit_tests/smoke_test.cc b/src/unit_tests/smoke_test.cc index 5373085..f23d98b 100644 --- a/src/unit_tests/smoke_test.cc +++ b/src/unit_tests/smoke_test.cc @@ -62,7 +62,7 @@ class StepCrash : public ci::Step { }; void RemoveAllRecoveryFiles() { - bf::path root_path = ci::GetRootAppPath(); + bf::path root_path = ci::GetRootAppPath(false); if (!bf::exists(root_path)) return; for (auto& dir_entry : boost::make_iterator_range( @@ -77,7 +77,7 @@ void RemoveAllRecoveryFiles() { } bf::path FindRecoveryFile() { - bf::path root_path = ci::GetRootAppPath(); + bf::path root_path = ci::GetRootAppPath(false); for (auto& dir_entry : boost::make_iterator_range( bf::directory_iterator(root_path), bf::directory_iterator())) { if (bf::is_regular_file(dir_entry)) { @@ -92,7 +92,7 @@ bf::path FindRecoveryFile() { bool ValidateFileContentInPackage(const std::string& pkgid, const std::string& relative, const std::string& expected) { - bf::path root_path = ci::GetRootAppPath(); + bf::path root_path = ci::GetRootAppPath(false); bf::path file_path = root_path / pkgid / relative; if (!bf::exists(file_path)) { LOG(ERROR) << file_path << " doesn't exist"; @@ -113,7 +113,7 @@ bool ValidateFileContentInPackage(const std::string& pkgid, } void ValidatePackageFS(const std::string& pkgid, const std::string& appid) { - bf::path root_path = ci::GetRootAppPath(); + bf::path root_path = ci::GetRootAppPath(false); bf::path package_path = root_path / pkgid; bf::path binary_path = package_path / "bin" / appid; bf::path data_path = package_path / "data"; @@ -150,7 +150,7 @@ void ValidatePackageFS(const std::string& pkgid, const std::string& appid) { } void PackageCheckCleanup(const std::string& pkgid, const std::string& appid) { - bf::path root_path = ci::GetRootAppPath(); + bf::path root_path = ci::GetRootAppPath(false); bf::path package_path = root_path / pkgid; ASSERT_FALSE(bf::exists(package_path)); @@ -367,7 +367,7 @@ TEST_F(SmokeTest, RDSMode) { ValidatePackage(pkgid, appid); // Check delta modifications - bf::path root_path = ci::GetRootAppPath(); + bf::path root_path = ci::GetRootAppPath(false); ASSERT_FALSE(bf::exists(root_path / pkgid / "res" / "wgt" / "DELETED")); ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "ADDED")); ValidateFileContentInPackage(pkgid, "res/wgt/MODIFIED", "2\n"); @@ -383,7 +383,7 @@ TEST_F(SmokeTest, DeltaMode) { ValidatePackage(pkgid, appid); // Check delta modifications - bf::path root_path = ci::GetRootAppPath(); + bf::path root_path = ci::GetRootAppPath(false); ASSERT_FALSE(bf::exists(root_path / pkgid / "res" / "wgt" / "DELETED")); ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "ADDED")); ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "css" / "style.css")); // NOLINT diff --git a/src/wgt/wgt_app_query_interface.cc b/src/wgt/wgt_app_query_interface.cc index 2798080..b45389c 100644 --- a/src/wgt/wgt_app_query_interface.cc +++ b/src/wgt/wgt_app_query_interface.cc @@ -115,7 +115,7 @@ bool WgtAppQueryInterface::IsHybridApplication(int argc, char** argv) { if (arg.find("apps_rw/recovery-") != std::string::npos) arg = ReadPkgidFromRecovery(arg); if (ci::IsPackageInstalled(arg, ci::GetRequestMode())) { - bf::path package_directory(ci::GetRootAppPath()); + bf::path package_directory(ci::GetRootAppPath(false)); if (bf::exists(package_directory / arg / kTizenManifestLocation) && bf::exists(package_directory / arg / kHybridConfigLocation)) return true;