aboutsummaryrefslogtreecommitdiff
path: root/tests/actions-mock.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/actions-mock.h')
-rw-r--r--tests/actions-mock.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/actions-mock.h b/tests/actions-mock.h
index a02a7e2..8de1357 100644
--- a/tests/actions-mock.h
+++ b/tests/actions-mock.h
@@ -50,20 +50,28 @@ public:
bool desktop_has_calendar_app() const {
return m_desktop_has_calendar_app;
}
- void open_alarm_app() {
+ std::string open_alarm_app() {
m_history.push_back(OpenAlarmApp);
+
+ return "";
}
- void open_appointment(const Appointment& appt, const DateTime& dt) {
+ std::string open_appointment(const Appointment& appt, const DateTime& dt) {
m_appt = appt;
m_date_time = dt;
m_history.push_back(OpenAppt);
+
+ return "";
}
- void open_calendar_app(const DateTime& dt) {
+ std::string open_calendar_app(const DateTime& dt) {
m_date_time = dt;
m_history.push_back(OpenCalendarApp);
+
+ return "";
}
- void open_settings_app() {
+ std::string open_settings_app() {
m_history.push_back(OpenSettingsApp);
+
+ return "";
}
void set_location(const std::string& zone_, const std::string& name_) {