aboutsummaryrefslogtreecommitdiff
path: root/tests/indicator-test.cc
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-02-19 16:27:24 +0000
committerCI Train Bot <ci-train-bot@canonical.com>2015-02-19 16:27:24 +0000
commit14be74296b0bd81a797373c4c972916277d0428e (patch)
tree6833db57605bf225620214218a427fe0f0a4444b /tests/indicator-test.cc
parent403caf562ba967342b78d5491229fe40cc908361 (diff)
parent18891aa50808f29365f763cc503e5dfa2e17ab17 (diff)
downloadayatana-indicator-sound-14be74296b0bd81a797373c4c972916277d0428e.tar.gz
ayatana-indicator-sound-14be74296b0bd81a797373c4c972916277d0428e.tar.bz2
ayatana-indicator-sound-14be74296b0bd81a797373c4c972916277d0428e.zip
Add notifications mock and tests
Approved by: Jussi Pakkanen, PS Jenkins bot
Diffstat (limited to 'tests/indicator-test.cc')
-rw-r--r--tests/indicator-test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/indicator-test.cc b/tests/indicator-test.cc
index f7d0b2b..b41a1ab 100644
--- a/tests/indicator-test.cc
+++ b/tests/indicator-test.cc
@@ -22,6 +22,7 @@
#include "indicator-fixture.h"
#include "accounts-service-mock.h"
+#include "notifications-mock.h"
class IndicatorTest : public IndicatorFixture
{
@@ -32,6 +33,7 @@ protected:
}
std::shared_ptr<AccountsServiceMock> as;
+ std::shared_ptr<NotificationsMock> notification;
virtual void SetUp() override
{
@@ -45,12 +47,16 @@ protected:
as = std::make_shared<AccountsServiceMock>();
addMock(*as);
+ notification = std::make_shared<NotificationsMock>();
+ addMock(*notification);
+
IndicatorFixture::SetUp();
}
virtual void TearDown() override
{
as.reset();
+ notification.reset();
IndicatorFixture::TearDown();
}