Commit Graph

36 Commits

Author SHA1 Message Date
Martchus 326f03b604 Apply cmake-format 2019-02-06 17:36:14 +01:00
Martchus 2370fe1ef5 Let CMake generate code for test application 2019-01-13 22:16:23 +01:00
Martchus cdd78fb026 Fix typo in code for mocked service configuration 2018-12-23 19:42:17 +01:00
Martchus dcbc19cf8c Adapt mocking to latest changes
* Cover all required requests so the connection can be
  established without errors
* Add more events to test error handling
* Fix definition of LIB_SYNCTHING_CONNECTOR_CONNECTION_MOCKED
  after syncthingconnection.cpp split
2018-11-03 20:44:11 +01:00
Martchus 32b2907e67 Split syncthingconnection.cpp
* Move methods for specific requests to its own file
2018-10-28 15:37:25 +01:00
Martchus f380732068 Don't use std::function for handlers in testcode
Just use the lambdas directly and make if(handler) check
only if possible.
2018-10-21 21:07:43 +02:00
Martchus 8dde95fc82 Don't override defines when configuring optional behavior 2018-10-18 23:23:47 +02:00
Martchus e410991012 Allow logging all API calls 2018-10-14 22:48:52 +02:00
Martchus 00e0b58c86 Allow logging POSTs 2018-10-12 00:20:15 +02:00
Martchus 7166f6532a Display overall status info in CLI 2018-07-05 17:39:35 +02:00
Martchus 082eaa29b6 Allow mocking SyncthingService 2018-04-20 23:00:56 +02:00
Martchus 278ba521d9 Fix warning for SYNCTHING_CONNECTION_LOG_SYNCTHING_EVENTS 2018-04-11 23:13:02 +02:00
Martchus d74738a8a4 Enable event logging for debugging purposes 2018-03-31 19:48:27 +02:00
Martchus 841b250680 Add SyncthingNotifier class
First step of refactoring compution of high-level
notifications to prevent code duplication for compution
of "disconnected" and "sync complete" events.
2017-12-30 00:28:03 +01:00
Martchus fe0688cb27 Only add helpers for mocked SyncthingConnection if required 2017-09-05 00:35:54 +02:00
Martchus 2747ce76ff Allow compiling connector with mocked SyncthingConnection 2017-09-05 00:22:52 +02:00
Martchus c843548baa Disable systemd support by default under MacOS 2017-08-06 00:38:30 +02:00
Martchus 6e7873e114 Add Qt Network as public dependency of connector 2017-08-06 00:37:49 +02:00
Martchus f95ad68a3a Link testhelper against connector, remove global includes 2017-07-11 22:53:45 +02:00
Martchus 2845f5883d Fix compiling tests under 32-bit arch 2017-06-01 11:11:38 +02:00
Martchus 675c1fb669 Use DateTime::unixEpochStart() 2017-04-19 22:09:47 +02:00
Martchus 40b8713ba6 Move test helper to separate library
Allows to share common test helper code
between tests for different components
2017-04-01 16:56:36 +02:00
Martchus 0868f2cf6a Extend tests of connector library 2017-03-09 23:10:03 +01:00
Martchus a3887749a5 Test SyncthingConnection class 2017-03-09 02:58:13 +01:00
Martchus a414c1a43a Add D-Bus interface file for logind 2017-01-14 21:37:42 +01:00
Martchus 3d088948fd Ensure translations for service aren't removed
* Add those files unconditionally
* Add conditions inside the files instead
2017-01-14 21:36:37 +01:00
Martchus d1b61ba24a Determine systemd unit activation timestamp 2017-01-13 10:25:50 +01:00
Martchus 40348da1a7 Fix condition for systemd support 2017-01-03 00:34:48 +01:00
Martchus edba991d89 Don't show start/stop button when feature disabled 2017-01-03 00:29:15 +01:00
Martchus 78450a2b7e Allow controlling Syncthing systemd service 2016-12-26 19:05:47 +01:00
Martchus 18a3a3f0ea Declare public dependencies 2016-11-08 20:00:20 +01:00
Martchus 73bb321123 Add translations for backend libs 2016-10-05 23:01:53 +02:00
Martchus dd8e443c15 Move SyncthingDev and SyncthingDir to extra files 2016-10-04 23:55:20 +02:00
Martchus a979b5327c Fix issues in build scripts 2016-10-03 00:41:38 +02:00
Martchus 1f21c2dc52 Add syncthingctl, see README.md 2016-10-02 21:59:28 +02:00
Martchus 6470038fc7 Refactor to allow sharing backend with other apps
Intended for creating command line tool and plasmoid
2016-09-30 23:58:45 +02:00