Move utility files into newly created directory 86/219286/3
authorJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 4 Dec 2019 04:52:13 +0000 (13:52 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 14 Jan 2020 06:10:07 +0000 (15:10 +0900)
Move it to reduce module circular dependency.

Change-Id: Iffed47db7a38950afe961ea4ebdc9b5fd643e57f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
22 files changed:
src/hybrid/hybrid_backend_data.h
src/unit_tests/manifest_test.cc
src/unit_tests/smoke_test_helper.cc
src/unit_tests/smoke_utils.h
src/wgt/CMakeLists.txt
src/wgt/step/configuration/step_check_start_files.cc
src/wgt/step/configuration/step_check_start_files.h
src/wgt/step/configuration/step_parse.cc
src/wgt/step/encryption/step_encrypt_resources.h
src/wgt/step/filesystem/step_copy_preview_icons.cc
src/wgt/step/pkgmgr/step_generate_xml.cc
src/wgt/step/security/step_check_extension_privileges.cc
src/wgt/step/security/step_check_settings_level.cc
src/wgt/step/security/step_check_wgt_background_category.cc
src/wgt/utils/extension_config_parser.cc [moved from src/wgt/extension_config_parser.cc with 99% similarity, mode: 0644]
src/wgt/utils/extension_config_parser.h [moved from src/wgt/extension_config_parser.h with 100% similarity, mode: 0644]
src/wgt/utils/shared_dirs.h [moved from src/wgt/shared_dirs.h with 100% similarity]
src/wgt/utils/wgt_app_query_interface.cc [moved from src/wgt/wgt_app_query_interface.cc with 98% similarity]
src/wgt/utils/wgt_app_query_interface.h [moved from src/wgt/wgt_app_query_interface.h with 100% similarity]
src/wgt/utils/wgt_backend_data.h [moved from src/wgt/wgt_backend_data.h with 100% similarity]
src/wgt/wgt_installer.cc
src/wgt_backend/wgt_backend.cc

index 9cc98c9..de0e9a0 100644 (file)
@@ -13,7 +13,7 @@
 #include <string>
 #include <vector>
 
-#include "wgt/wgt_backend_data.h"
+#include "wgt/utils/wgt_backend_data.h"
 
 namespace hybrid {
 
index 051d2f3..e195ff0 100644 (file)
@@ -19,7 +19,7 @@
 #include <vector>
 
 #include "wgt/step/configuration/step_parse.h"
-#include "wgt/wgt_backend_data.h"
+#include "wgt/utils/wgt_backend_data.h"
 
 #define ASSERT_CSTR_EQ(STR1, STR2)                                             \
   ASSERT_EQ(strcmp(STR1, STR2), 0)                                             \
index 3549d84..9d666b2 100644 (file)
@@ -5,7 +5,7 @@
 #include <common/pkgmgr_interface.h>
 #include <cerrno>
 
-#include "wgt/wgt_app_query_interface.h"
+#include "wgt/utils/wgt_app_query_interface.h"
 #include "wgt/wgt_installer.h"
 
 namespace ci = common_installer;
index 7b22263..14e0994 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "hybrid/hybrid_installer.h"
 #include "wgt/wgt_installer.h"
-#include "wgt/wgt_app_query_interface.h"
+#include "wgt/utils/wgt_app_query_interface.h"
 
 namespace smoke_test {
 
index a9baf9b..e2456c7 100755 (executable)
@@ -5,6 +5,7 @@ AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/encryption WGT_STEP_ENCRYP
 AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/filesystem WGT_STEP_FILESYSTEM_SRCS)
 AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/pkgmgr WGT_STEP_PKGMGR_SRCS)
 AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/security WGT_STEP_SECURITY_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/utils WGT_UTILS_SRCS)
 
 # Target - definition
 ADD_LIBRARY(${TARGET_LIBNAME_WGT} STATIC
@@ -13,7 +14,8 @@ ADD_LIBRARY(${TARGET_LIBNAME_WGT} STATIC
   ${WGT_STEP_ENCRYPTION_SRCS}
   ${WGT_STEP_FILESYSTEM_SRCS}
   ${WGT_STEP_PKGMGR_SRCS}
-  ${WGT_STEP_SECURITY_SRCS})
+  ${WGT_STEP_SECURITY_SRCS}
+  ${WGT_UTILS_SRCS})
 # Target - includes
 TARGET_INCLUDE_DIRECTORIES(${TARGET_LIBNAME_WGT} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../")
 # Target - deps
index 6db5b8e..c39474b 100644 (file)
@@ -10,7 +10,7 @@
 #include <common/installer_context.h>
 #include <common/step/step.h>
 
-#include <wgt/wgt_backend_data.h>
+#include <wgt/utils/wgt_backend_data.h>
 
 #include <wgt_manifest_handlers/w3c_pc_utils.h>
 #include <wgt_manifest_handlers/content_handler.h>
index 7fc7025..31f42d5 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <manifest_parser/utils/logging.h>
 
-#include <wgt/wgt_backend_data.h>
+#include <wgt/utils/wgt_backend_data.h>
 
 #include <type_traits>
 #include <cassert>
index 9cbf0fb..be1e09c 100644 (file)
@@ -47,7 +47,7 @@
 #include <vector>
 #include <utility>
 
-#include "wgt/wgt_backend_data.h"
+#include "wgt/utils/wgt_backend_data.h"
 
 namespace bf = boost::filesystem;
 namespace ci = common_installer;
index 6b420fd..b66db68 100644 (file)
@@ -10,7 +10,7 @@
 #include <common/step/step.h>
 #include <manifest_parser/utils/logging.h>
 
-#include "wgt/wgt_backend_data.h"
+#include "wgt/utils/wgt_backend_data.h"
 
 namespace wgt {
 namespace encryption {
index 2cdf5cc..b706345 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <string>
 
-#include "wgt/wgt_backend_data.h"
+#include "wgt/utils/wgt_backend_data.h"
 
 namespace bf = boost::filesystem;
 namespace ci = common_installer;
index f6537f9..7294e17 100644 (file)
@@ -23,7 +23,7 @@
 #include <cstring>
 #include <string>
 
-#include "wgt/wgt_backend_data.h"
+#include "wgt/utils/wgt_backend_data.h"
 
 namespace bs = boost::system;
 namespace bf = boost::filesystem;
index b5330bd..affeb47 100755 (executable)
@@ -22,7 +22,7 @@
 #include <string>
 #include <memory>
 
-#include "wgt/extension_config_parser.h"
+#include "wgt/utils/extension_config_parser.h"
 
 namespace {
 
index b26f7ed..2ea5a85 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <map>
 
-#include "wgt/wgt_backend_data.h"
+#include "wgt/utils/wgt_backend_data.h"
 
 namespace wgt {
 namespace security {
index b3d6a2c..a245545 100644 (file)
@@ -7,7 +7,7 @@
 #include <common/installer_context.h>
 #include <wgt_manifest_handlers/setting_handler.h>
 
-#include "wgt/wgt_backend_data.h"
+#include "wgt/utils/wgt_backend_data.h"
 
 namespace {
 
old mode 100755 (executable)
new mode 100644 (file)
similarity index 99%
rename from src/wgt/extension_config_parser.cc
rename to src/wgt/utils/extension_config_parser.cc
index 2409389..7a448a4
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a apache 2.0 license that can be
 // found in the LICENSE file.
 
-#include "wgt/extension_config_parser.h"
+#include "wgt/utils/extension_config_parser.h"
 #include <manifest_parser/utils/string_util.h>
 #include <manifest_parser/manifest_handler.h>
 
old mode 100755 (executable)
new mode 100644 (file)
similarity index 100%
rename from src/wgt/extension_config_parser.h
rename to src/wgt/utils/extension_config_parser.h
similarity index 98%
rename from src/wgt/wgt_app_query_interface.cc
rename to src/wgt/utils/wgt_app_query_interface.cc
index 736982c..3c9131e 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by an apache 2.0 license that can be
 // found in the LICENSE file.
 
-#include "wgt/wgt_app_query_interface.h"
+#include "wgt/utils/wgt_app_query_interface.h"
 
 #include <unistd.h>
 #include <sys/types.h>
index f74e37a..76d0a00 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <wgt_manifest_handlers/widget_config_parser.h>
 
-#include "wgt/shared_dirs.h"
+#include "wgt/utils/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"
index f0633b4..9f003e3 100644 (file)
@@ -7,7 +7,7 @@
 #include <cerrno>
 
 #include "hybrid/hybrid_installer.h"
-#include "wgt/wgt_app_query_interface.h"
+#include "wgt/utils/wgt_app_query_interface.h"
 #include "wgt/wgt_installer.h"
 
 namespace ci = common_installer;