Remove errors/warnings from tools/check-coding-styles.
Change-Id: Idd2a1faca15b8ac48049c20ebfe758a4917f152f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
// found in the LICENSE file.
#include "hybrid/hybrid_installer.h"
-#include "hybrid/shared_dirs.h"
#include <common/privileges.h>
#include <common/step/backup/step_backup_icons.h>
#include <tpk/step/security/step_tpk_recover_signature.h>
#include "hybrid/hybrid_backend_data.h"
+#include "hybrid/shared_dirs.h"
#include "hybrid/step/configuration/step_merge_tpk_config.h"
#include "hybrid/step/configuration/step_merge_tpk_privileges.h"
#include "hybrid/step/configuration/step_stash_tpk_config.h"
return true;
}
-bool GetPackageInfo(wgt::parse::WidgetConfigParser& parser,
+bool GetPackageInfo(const wgt::parse::WidgetConfigParser& parser,
package_manager_pkg_detail_info_t* info) {
auto widget_info =
std::static_pointer_cast<const wgt::parse::WidgetInfo>(
return true;
}
-bool GetPrivilegesInfo(wgt::parse::WidgetConfigParser& parser,
+bool GetPrivilegesInfo(const wgt::parse::WidgetConfigParser& parser,
package_manager_pkg_detail_info_t* info) {
auto privileges_info =
std::static_pointer_cast<const wgt::parse::PermissionsInfo>(
return true;
}
-bool GetLabelInfo(wgt::parse::WidgetConfigParser& parser, const char* locale,
- package_manager_pkg_detail_info_t* info) {
+bool GetLabelInfo(const wgt::parse::WidgetConfigParser& parser,
+ const char* locale, package_manager_pkg_detail_info_t* info) {
auto widget_info =
std::static_pointer_cast<const wgt::parse::WidgetInfo>(
parser.GetManifestData(wgt::parse::WidgetInfo::Key()));
return false;
}
-bool GetDescriptionInfo(wgt::parse::WidgetConfigParser& parser,
+bool GetDescriptionInfo(const wgt::parse::WidgetConfigParser& parser,
const char* locale, package_manager_pkg_detail_info_t* info) {
auto widget_info =
std::static_pointer_cast<const wgt::parse::WidgetInfo>(
return true;
}
-bool GetIconInfo(wgt::parse::WidgetConfigParser& parser,
- bf::path& tmp_dir, package_manager_pkg_detail_info_t* info) {
+bool GetIconInfo(const wgt::parse::WidgetConfigParser& parser,
+ const bf::path& tmp_dir, package_manager_pkg_detail_info_t* info) {
auto icons_info =
std::static_pointer_cast<const wgt::parse::ApplicationIconsInfo>(
parser.GetManifestData(wgt::parse::ApplicationIconsInfo::Key()));
SCOPE_LOG_TAG(WgtArchiveInfo)
};
-#endif // LIB_WGT_ARCHIVE_INFO
+#endif // LIB_WGT_ARCHIVE_INFO_H_
ValidatePackage(pkgid, {appid});
// Check delta modifications
- ASSERT_FALSE(bf::exists(GetPackageRoot(pkgid, kTestUserId) / "res" / "wgt" / "DELETED"));
- ASSERT_TRUE(bf::exists(GetPackageRoot(pkgid, kTestUserId) / "res" / "wgt" / "ADDED"));
+ ASSERT_FALSE(bf::exists(GetPackageRoot(pkgid, kTestUserId) /
+ "res" / "wgt" / "DELETED"));
+ ASSERT_TRUE(bf::exists(GetPackageRoot(pkgid, kTestUserId) /
+ "res" / "wgt" / "ADDED"));
ASSERT_TRUE(ValidateFileContentInPackage(pkgid, "res/wgt/MODIFIED", "2\n"));
}
// Check delta modifications
ASSERT_FALSE(bf::exists(GetPackageRoot(pkgid, kTestUserId) /
- "res" / "wgt" / "DELETED"));
+ "res" / "wgt" / "DELETED"));
ASSERT_TRUE(bf::exists(GetPackageRoot(pkgid, kTestUserId) /
- "res" / "wgt" / "ADDED"));
+ "res" / "wgt" / "ADDED"));
ASSERT_TRUE(bf::exists(GetPackageRoot(pkgid, kTestUserId) /
- "res" / "wgt" / "css" / "style.css")); // NOLINT
+ "res" / "wgt" / "css" / "style.css"));
ASSERT_TRUE(bf::exists(GetPackageRoot(pkgid, kTestUserId) /
- "res" / "wgt" / "images" / "tizen_32.png")); // NOLINT
+ "res" / "wgt" / "images" / "tizen_32.png"));
ASSERT_TRUE(bf::exists(GetPackageRoot(pkgid, kTestUserId) /
- "res" / "wgt" / "js" / "main.js")); // NOLINT
- ASSERT_TRUE(ValidateFileContentInPackage(pkgid, "res/wgt/MODIFIED", "version 2\n")); // NOLINT
+ "res" / "wgt" / "js" / "main.js"));
+ ASSERT_TRUE(ValidateFileContentInPackage(
+ pkgid, "res/wgt/MODIFIED", "version 2\n"));
}
TEST_F(SmokeTest, RecoveryMode_ForInstallation) {
// Use of this source code is governed by an apache-2.0 license that can be
// found in the LICENSE file.
-#ifndef HYBRID_SHARED_DIRS_H_
-#define HYBRID_SHARED_DIRS_H_
+#ifndef WGT_SHARED_DIRS_H_
+#define WGT_SHARED_DIRS_H_
#include <vector>
} // namespace filesystem
} // namespace wgt
-#endif // HYBRID_SHARED_DIRS_H_
+#endif // WGT_SHARED_DIRS_H_
#ifndef WGT_WGT_APP_QUERY_INTERFACE_H_
#define WGT_WGT_APP_QUERY_INTERFACE_H_
+#include <common/app_query_interface.h>
+
#include <sys/types.h>
#include <string>
-#include <common/app_query_interface.h>
-
namespace wgt {
/**
// found in the LICENSE file.
#include "wgt/wgt_installer.h"
-#include "wgt/shared_dirs.h"
#include <common/pkgmgr_interface.h>
#include <wgt_manifest_handlers/widget_config_parser.h>
+#include "wgt/shared_dirs.h"
#include "wgt/step/configuration/step_check_rds_manifest.h"
#include "wgt/step/configuration/step_check_start_files.h"
#include "wgt/step/configuration/step_parse.h"