aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-03-31 16:53:36 -0300
committerRobert Tari <robert@tari.in>2021-07-05 02:28:32 +0200
commit30b0ba7facf333209ea60db9f3b5820dc0f4d5f3 (patch)
treebf0e9bd431af493e44fa484229c654d0d71c0873 /tests
parent6df38ca1d68d1eb2fed2aca024ea938fb00d306c (diff)
downloadayatana-indicator-datetime-30b0ba7facf333209ea60db9f3b5820dc0f4d5f3.tar.gz
ayatana-indicator-datetime-30b0ba7facf333209ea60db9f3b5820dc0f4d5f3.tar.bz2
ayatana-indicator-datetime-30b0ba7facf333209ea60db9f3b5820dc0f4d5f3.zip
Update code as requested by reviewer.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-eds-ics-all-day-events.cpp3
-rw-r--r--tests/test-eds-ics-missing-trigger.cpp5
-rw-r--r--tests/test-eds-ics-non-attending-alarms.cpp3
-rw-r--r--tests/test-eds-ics-nonrepeating-events.cpp3
-rw-r--r--tests/test-eds-ics-repeating-events.cpp3
-rw-r--r--tests/test-eds-ics-repeating-valarms.cpp3
-rw-r--r--tests/test-eds-ics-tzids-2.cpp3
-rw-r--r--tests/test-eds-ics-tzids-utc.cpp3
-rw-r--r--tests/test-eds-ics-tzids.cpp3
9 files changed, 19 insertions, 10 deletions
diff --git a/tests/test-eds-ics-all-day-events.cpp b/tests/test-eds-ics-all-day-events.cpp
index 68a3c95..5d7cdc6 100644
--- a/tests/test-eds-ics-all-day-events.cpp
+++ b/tests/test-eds-ics-all-day-events.cpp
@@ -24,6 +24,7 @@
#include <datetime/alarm-queue-simple.h>
#include <datetime/clock-mock.h>
#include <datetime/engine-eds.h>
+#include <datetime/myself.h>
#include <datetime/planner-range.h>
#include <gtest/gtest.h>
@@ -43,7 +44,7 @@ using VAlarmFixture = GlibFixture;
TEST_F(VAlarmFixture, MultipleAppointments)
{
// start the EDS engine
- auto engine = std::make_shared<EdsEngine>();
+ auto engine = std::make_shared<EdsEngine>(std::make_shared<Myself>());
// we need a consistent timezone for the planner and our local DateTimes
constexpr char const * zone_str {"America/Chicago"};
diff --git a/tests/test-eds-ics-missing-trigger.cpp b/tests/test-eds-ics-missing-trigger.cpp
index 0aa00c6..3da53ae 100644
--- a/tests/test-eds-ics-missing-trigger.cpp
+++ b/tests/test-eds-ics-missing-trigger.cpp
@@ -21,9 +21,10 @@
#include <algorithm>
-#include <datetime/engine-eds.h>
#include <datetime/alarm-queue-simple.h>
#include <datetime/clock-mock.h>
+#include <datetime/engine-eds.h>
+#include <datetime/myself.h>
#include <datetime/planner-range.h>
#include <gtest/gtest.h>
@@ -43,7 +44,7 @@ using VAlarmFixture = GlibFixture;
TEST_F(VAlarmFixture, MissingTriggers)
{
// start the EDS engine
- auto engine = std::make_shared<EdsEngine>();
+ auto engine = std::make_shared<EdsEngine>(std::make_shared<Myself>());
// we need a consistent timezone for the planner and our local DateTimes
constexpr char const * zone_str {"America/Chicago"};
diff --git a/tests/test-eds-ics-non-attending-alarms.cpp b/tests/test-eds-ics-non-attending-alarms.cpp
index 796dd2d..b636e6f 100644
--- a/tests/test-eds-ics-non-attending-alarms.cpp
+++ b/tests/test-eds-ics-non-attending-alarms.cpp
@@ -22,6 +22,7 @@
#include <datetime/alarm-queue-simple.h>
#include <datetime/clock-mock.h>
#include <datetime/engine-eds.h>
+#include <datetime/myself.h>
#include <datetime/planner-range.h>
#include <gtest/gtest.h>
@@ -41,7 +42,7 @@ using VAlarmFixture = GlibFixture;
TEST_F(VAlarmFixture, NonAttendingEvent)
{
// start the EDS engine
- auto engine = std::make_shared<EdsEngine>();
+ auto engine = std::make_shared<EdsEngine>(std::make_shared<Myself>());
// we need a consistent timezone for the planner and our local DateTimes
constexpr char const * zone_str {"America/Recife"};
diff --git a/tests/test-eds-ics-nonrepeating-events.cpp b/tests/test-eds-ics-nonrepeating-events.cpp
index ff0ef3f..8aa2b82 100644
--- a/tests/test-eds-ics-nonrepeating-events.cpp
+++ b/tests/test-eds-ics-nonrepeating-events.cpp
@@ -24,6 +24,7 @@
#include <datetime/alarm-queue-simple.h>
#include <datetime/clock-mock.h>
#include <datetime/engine-eds.h>
+#include <datetime/myself.h>
#include <datetime/planner-range.h>
#include <gtest/gtest.h>
@@ -43,7 +44,7 @@ using VAlarmFixture = GlibFixture;
TEST_F(VAlarmFixture, MultipleAppointments)
{
// start the EDS engine
- auto engine = std::make_shared<EdsEngine>();
+ auto engine = std::make_shared<EdsEngine>(std::make_shared<Myself>());
// we need a consistent timezone for the planner and our local DateTimes
constexpr char const * zone_str {"America/Chicago"};
diff --git a/tests/test-eds-ics-repeating-events.cpp b/tests/test-eds-ics-repeating-events.cpp
index 5d2a2ee..4125623 100644
--- a/tests/test-eds-ics-repeating-events.cpp
+++ b/tests/test-eds-ics-repeating-events.cpp
@@ -24,6 +24,7 @@
#include <datetime/alarm-queue-simple.h>
#include <datetime/clock-mock.h>
#include <datetime/engine-eds.h>
+#include <datetime/myself.h>
#include <datetime/planner-range.h>
#include <gtest/gtest.h>
@@ -43,7 +44,7 @@ using VAlarmFixture = GlibFixture;
TEST_F(VAlarmFixture, MultipleAppointments)
{
// start the EDS engine
- auto engine = std::make_shared<EdsEngine>();
+ auto engine = std::make_shared<EdsEngine>(std::make_shared<Myself>());
// we need a consistent timezone for the planner and our local DateTimes
constexpr char const * zone_str {"America/Chicago"};
diff --git a/tests/test-eds-ics-repeating-valarms.cpp b/tests/test-eds-ics-repeating-valarms.cpp
index 53a6d41..5e418f8 100644
--- a/tests/test-eds-ics-repeating-valarms.cpp
+++ b/tests/test-eds-ics-repeating-valarms.cpp
@@ -24,6 +24,7 @@
#include <datetime/alarm-queue-simple.h>
#include <datetime/clock-mock.h>
#include <datetime/engine-eds.h>
+#include <datetime/myself.h>
#include <datetime/planner-range.h>
#include <gtest/gtest.h>
@@ -43,7 +44,7 @@ using VAlarmFixture = GlibFixture;
TEST_F(VAlarmFixture, MultipleAppointments)
{
// start the EDS engine
- auto engine = std::make_shared<EdsEngine>();
+ auto engine = std::make_shared<EdsEngine>(std::make_shared<Myself>());
// we need a consistent timezone for the planner and our local DateTimes
constexpr char const * zone_str {"America/Chicago"};
diff --git a/tests/test-eds-ics-tzids-2.cpp b/tests/test-eds-ics-tzids-2.cpp
index c8b0370..a1d2f5a 100644
--- a/tests/test-eds-ics-tzids-2.cpp
+++ b/tests/test-eds-ics-tzids-2.cpp
@@ -24,6 +24,7 @@
#include <datetime/alarm-queue-simple.h>
#include <datetime/clock-mock.h>
#include <datetime/engine-eds.h>
+#include <datetime/myself.h>
#include <datetime/planner-range.h>
#include <gtest/gtest.h>
@@ -43,7 +44,7 @@ using VAlarmFixture = GlibFixture;
TEST_F(VAlarmFixture, MultipleAppointments)
{
// start the EDS engine
- auto engine = std::make_shared<EdsEngine>();
+ auto engine = std::make_shared<EdsEngine>(std::make_shared<Myself>());
// we need a consistent timezone for the planner and our local DateTimes
constexpr char const * zone_str {"America/Los_Angeles"};
diff --git a/tests/test-eds-ics-tzids-utc.cpp b/tests/test-eds-ics-tzids-utc.cpp
index 3ea40d0..f79bf3e 100644
--- a/tests/test-eds-ics-tzids-utc.cpp
+++ b/tests/test-eds-ics-tzids-utc.cpp
@@ -22,6 +22,7 @@
#include <datetime/alarm-queue-simple.h>
#include <datetime/clock-mock.h>
#include <datetime/engine-eds.h>
+#include <datetime/myself.h>
#include <datetime/planner-range.h>
#include <gtest/gtest.h>
@@ -41,7 +42,7 @@ using VAlarmFixture = GlibFixture;
TEST_F(VAlarmFixture, UTCAppointments)
{
// start the EDS engine
- auto engine = std::make_shared<EdsEngine>();
+ auto engine = std::make_shared<EdsEngine>(std::make_shared<Myself>());
// we need a consistent timezone for the planner and our local DateTimes
constexpr char const * zone_str {"America/Recife"};
diff --git a/tests/test-eds-ics-tzids.cpp b/tests/test-eds-ics-tzids.cpp
index c80feb2..11d44b7 100644
--- a/tests/test-eds-ics-tzids.cpp
+++ b/tests/test-eds-ics-tzids.cpp
@@ -24,6 +24,7 @@
#include <datetime/alarm-queue-simple.h>
#include <datetime/clock-mock.h>
#include <datetime/engine-eds.h>
+#include <datetime/myself.h>
#include <datetime/planner-range.h>
#include <gtest/gtest.h>
@@ -43,7 +44,7 @@ using VAlarmFixture = GlibFixture;
TEST_F(VAlarmFixture, MultipleAppointments)
{
// start the EDS engine
- auto engine = std::make_shared<EdsEngine>();
+ auto engine = std::make_shared<EdsEngine>(std::make_shared<Myself>());
// we need a consistent timezone for the planner and our local DateTimes
constexpr char const * zone_str {"Europe/Berlin"};