aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-10-13 10:47:33 -0500
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-26 21:07:40 +0000
commita1d3f81143fa304f04902dec217a2e8d2bbb6466 (patch)
tree5a6e1b74b291edc7aeb37db22b0246acf9e73d02 /tests
parent6345c7e02210218f5a35e02e71a44b9be28556a3 (diff)
downloadayatana-indicator-datetime-a1d3f81143fa304f04902dec217a2e8d2bbb6466.tar.gz
ayatana-indicator-datetime-a1d3f81143fa304f04902dec217a2e8d2bbb6466.tar.bz2
ayatana-indicator-datetime-a1d3f81143fa304f04902dec217a2e8d2bbb6466.zip
add a ualarm to test-snap.cpp
Diffstat (limited to 'tests')
-rw-r--r--tests/test-snap.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/test-snap.cpp b/tests/test-snap.cpp
index ef42583..1904bef 100644
--- a/tests/test-snap.cpp
+++ b/tests/test-snap.cpp
@@ -92,6 +92,7 @@ protected:
static constexpr char const * PROP_SILENT_MODE {"SilentMode"};
Appointment appt;
+ Appointment ualarm;
GDBusConnection * system_bus = nullptr;
GDBusConnection * session_bus = nullptr;
DbusTestService * service = nullptr;
@@ -113,15 +114,25 @@ protected:
super::SetUp();
- // init the Appointment
+ // init an Appointment
appt.color = "green";
- appt.summary = "Alarm";
+ appt.summary = "Christmas";
appt.uid = "D4B57D50247291478ED31DED17FF0A9838DED402";
appt.type = Appointment::EVENT;
const auto christmas = DateTime::Local(2015,12,25,0,0,0);
appt.begin = christmas.start_of_day();
appt.end = christmas.end_of_day();
- appt.alarms.push_back(Alarm{"Alarm Text", "", appt.begin});
+ appt.alarms.push_back(Alarm{"Ho Ho Ho!", "", appt.begin});
+
+ // init an Ubuntu Alarm
+ ualarm.color = "red";
+ ualarm.summary = "Wakeup";
+ ualarm.uid = "E4B57D50247291478ED31DED17FF0A9838DED403";
+ ualarm.type = Appointment::UBUNTU_ALARM;
+ const auto tomorrow = DateTime::NowLocal().add_days(1);
+ ualarm.begin = tomorrow;
+ ualarm.end = tomorrow;
+ ualarm.alarms.push_back(Alarm{"It's Tomorrow!", "", appt.begin});
service = dbus_test_service_new(nullptr);