Perform code style checking fixes 88/143788/1
authorBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Fri, 11 Aug 2017 08:44:34 +0000 (10:44 +0200)
committerBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Fri, 11 Aug 2017 08:44:34 +0000 (10:44 +0200)
Change-Id: If802ce932ed42bf53e11a1f7d5213e48f9794a8c

src/unit_tests/smoke_test_helper.cc
src/unit_tests/smoke_utils.cc
src/wgt/step/configuration/step_parse.cc
src/wgt/step/pkgmgr/step_generate_xml.cc

index 156b64bd94c0b4143232ed1db3e1ca905edc8d44..d767cdbc40e573f088b9a7b5f55bb467b9a77bd0 100644 (file)
@@ -41,8 +41,8 @@ int main(int argc, char** argv) {
 
   ci::PkgmgrInstaller pkgmgr_installer;
   wgt::WgtAppQueryInterface query_interface;
-  auto pkgmgr = ci::PkgMgrInterface::Create(backend_argc, argv, &pkgmgr_installer,
-                                            &query_interface);
+  auto pkgmgr = ci::PkgMgrInterface::Create(backend_argc, argv,
+      &pkgmgr_installer, &query_interface);
   if (!pkgmgr) {
     LOG(ERROR) << "Options of pkgmgr installer cannot be parsed";
     return EINVAL;
index 2a8fb85ddc7da513c12496d34102f87011d22060..fabb37cb708866e808f988c561a23ed9042c62ed 100644 (file)
@@ -868,19 +868,18 @@ void UninstallAllSmokeApps(ci::RequestMode request_mode) {
   }
 }
 
-int GetAppInstalledTime(const char *appid, uid_t uid)
-{
-       int ret = 0;
-       int installed_time = 0;
-       pkgmgrinfo_appinfo_h handle = NULL;
-       ret = pkgmgrinfo_appinfo_get_usr_appinfo(appid, uid, &handle);
-       if (ret != PMINFO_R_OK)
-               return -1;
-       ret = pkgmgrinfo_appinfo_get_installed_time(handle, &installed_time);
-       if (ret != PMINFO_R_OK) {
-               pkgmgrinfo_appinfo_destroy_appinfo(handle);
-               return -1;
-       }
-       pkgmgrinfo_appinfo_destroy_appinfo(handle);
-       return installed_time;
+int GetAppInstalledTime(const char *appid, uid_t uid) {
+  int ret = 0;
+  int installed_time = 0;
+  pkgmgrinfo_appinfo_h handle = NULL;
+  ret = pkgmgrinfo_appinfo_get_usr_appinfo(appid, uid, &handle);
+  if (ret != PMINFO_R_OK)
+    return -1;
+  ret = pkgmgrinfo_appinfo_get_installed_time(handle, &installed_time);
+  if (ret != PMINFO_R_OK) {
+    pkgmgrinfo_appinfo_destroy_appinfo(handle);
+    return -1;
+  }
+  pkgmgrinfo_appinfo_destroy_appinfo(handle);
+  return installed_time;
 }
index a9e3ca1ea467b6c9fb5f296708ee6b8dfb69abda..fa8bed7d9b4081ccbffb3354bbf5f9724638ea41 100644 (file)
@@ -65,8 +65,7 @@ const char kTTSCategoryName[] = "http://tizen.org/category/tts";
 const char kResWgt[] = "res/wgt";
 const char kConfigFileName[] = "config.xml";
 
-void FreeMetadataList(gpointer data)
-{
+void FreeMetadataList(gpointer data) {
   metadata_x* metadata = reinterpret_cast<metadata_x*>(data);
   if (metadata) {
     if (metadata->key)
@@ -325,8 +324,7 @@ bool StepParse::FillWidgetInfo(manifest_x* manifest) {
       manifest->update = strdup("true");
     else
       manifest->update = strdup("false");
-  }
-  else {
+  } else {
     manifest->update = strdup("false");
   }
 
index 6743f2aec4875ec22fbcecaa68b3e221947056ad..404b5c83dfdbfa2569e3fc8e46a17cb7a764d3f3 100644 (file)
@@ -525,7 +525,8 @@ void StepGenerateXml::GeneratePrivilege(xmlTextWriterPtr writer) {
 void StepGenerateXml::GenerateProvidesAppDefinedPrivilege(
     xmlTextWriterPtr writer) {
   if (context_->manifest_data.get()->provides_appdefined_privileges) {
-    xmlTextWriterStartElement(writer, BAD_CAST "provides-appdefined-privileges");
+    xmlTextWriterStartElement(writer,
+                              BAD_CAST "provides-appdefined-privileges");
     for (appdefined_privilege_x* priv : GListRange<appdefined_privilege_x*>(
          context_->manifest_data.get()->provides_appdefined_privileges)) {
       xmlTextWriterStartElement(writer, BAD_CAST "appdefined-privilege");