Cynara: Move Cynara helper credentials to global commons 52/88352/1
authorZofia Abramowska <z.abramowska@samsung.com>
Fri, 16 Sep 2016 10:16:43 +0000 (12:16 +0200)
committerZofia Abramowska <z.abramowska@samsung.com>
Fri, 16 Sep 2016 10:39:55 +0000 (12:39 +0200)
Change-Id: If60a51afb801e75f300250f2e1244ad7f05b5098

src/common/CMakeLists.txt
src/common/cynara_helpers_creds.cpp [moved from src/cynara-tests/common/cynara_test_helpers.cpp with 98% similarity]
src/common/cynara_helpers_creds.h [moved from src/cynara-tests/common/cynara_test_helpers.h with 96% similarity]
src/common/cynara_helpers_dbus.h [moved from src/cynara-tests/common/cynara_test_helpers_dbus.h with 96% similarity]
src/cynara-tests/CMakeLists.txt
src/cynara-tests/test_cases_helpers.cpp

index 994fee1..4e1055f 100644 (file)
@@ -8,6 +8,9 @@ PKG_CHECK_MODULES(COMMON_TARGET_DEP
     sqlite3
     libgum
     glib-2.0
+    cynara-creds-socket
+    cynara-creds-dbus
+    cynara-creds-gdbus
     REQUIRED
     )
 
@@ -28,6 +31,7 @@ SET(COMMON_TARGET_TEST_SOURCES
     ${PROJECT_SOURCE_DIR}/src/common/synchronization_pipe.cpp
     ${PROJECT_SOURCE_DIR}/src/common/timeout.cpp
     ${PROJECT_SOURCE_DIR}/src/common/temp_test_user.cpp
+    ${PROJECT_SOURCE_DIR}/src/common/cynara_helpers_creds.cpp
     )
 
 #system and local includes
similarity index 98%
rename from src/cynara-tests/common/cynara_test_helpers.cpp
rename to src/common/cynara_helpers_creds.cpp
index ffb9628..dc1c904 100644 (file)
@@ -14,7 +14,7 @@
  *    limitations under the License.
  */
 /**
- * @file        cynara_test_helpers.cpp
+ * @file        cynara_helper_credentials.cpp
  * @author      Aleksander Zdyb <a.zdyb@samsung.com>
  * @version     1.0
  * @brief       Helpers for cynara-helpers
@@ -26,7 +26,7 @@
 #include <cynara-creds-socket.h>
 #include <cynara-creds-gdbus.h>
 
-#include "cynara_test_helpers.h"
+#include "cynara_helpers_creds.h"
 
 namespace CynaraHelperCredentials {
 
similarity index 96%
rename from src/cynara-tests/common/cynara_test_helpers.h
rename to src/common/cynara_helpers_creds.h
index d790fe3..cafe423 100644 (file)
@@ -14,7 +14,7 @@
  *    limitations under the License.
  */
 /**
- * @file        cynara_test_helpers.h
+ * @file        cynara_helper_credentials.h
  * @author      Aleksander Zdyb <a.zdyb@samsung.com>
  * @version     1.0
  * @brief       Helpers for cynara-helpers
@@ -28,7 +28,7 @@
 
 #include <cynara-creds-commons.h>
 #include <cynara-error.h>
-#include <cynara_test_helpers_dbus.h>
+#include <cynara_helpers_dbus.h>
 
 namespace CynaraHelperCredentials {
 
similarity index 96%
rename from src/cynara-tests/common/cynara_test_helpers_dbus.h
rename to src/common/cynara_helpers_dbus.h
index 46c827e..19c1b24 100644 (file)
@@ -14,7 +14,7 @@
  *    limitations under the License.
  */
 /**
- * @file        cynara_test_helpers_dbus.h
+ * @file        cynara_helpers_dbus.h
  * @author      Aleksander Zdyb <a.zdyb@samsung.com>
  * @version     1.0
  */
index 6fa7aa5..7a42d65 100644 (file)
@@ -47,7 +47,6 @@ SET(CYNARA_TARGET_TEST_SOURCES
     ${PROJECT_SOURCE_DIR}/src/cynara-tests/common/cynara_test_cynara_mask.cpp
     ${PROJECT_SOURCE_DIR}/src/cynara-tests/common/cynara_test_env.cpp
     ${PROJECT_SOURCE_DIR}/src/cynara-tests/common/cynara_test_file_operations.cpp
-    ${PROJECT_SOURCE_DIR}/src/cynara-tests/common/cynara_test_helpers.cpp
     ${PROJECT_SOURCE_DIR}/src/cynara-tests/plugins/plugins.cpp
     ${PROJECT_SOURCE_DIR}/src/cynara-tests/cynara-test.cpp
     ${PROJECT_SOURCE_DIR}/src/cynara-tests/test_cases.cpp
index 5e0f1cd..06aa14d 100644 (file)
@@ -40,9 +40,9 @@
 #include <tests_common.h>
 #include <uds.h>
 #include <passwd_access.h>
+#include <cynara_helpers_creds.h>
+#include <cynara_helpers_dbus.h>
 
-#include <cynara_test_helpers.h>
-#include <cynara_test_helpers_dbus.h>
 #include <cynara-creds-gdbus.h>
 #include <cynara-creds-self.h>