Skip to content

Commit

Permalink
Merge pull request #2 from arcean/master
Browse files Browse the repository at this point in the history
UT fixes
  • Loading branch information
MohammadAG committed Jul 24, 2012
2 parents dbf8683 + e584f97 commit a203bfd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/ut_sysuid/ut_sysuid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#include "closeeventeater_stub.h"
#include "diskspacenotifier_stub.h"
#include "ngfnotificationsink.h"
#include "lednotificationsink.h"
#include "testcontextitem.h"
#include "sysuid.h"

Expand Down Expand Up @@ -140,6 +141,29 @@ void NGFNotificationSink::removeNotification(uint)
{
}

// LEDNotificationSink stubs (used by Sysuid)
LEDNotificationSink *mLEDNotificationSink = 0;
LEDNotificationSink::LEDNotificationSink(QObject *parent) : NotificationSink(parent)
{
mLEDNotificationSink = this;
}

LEDNotificationSink::~LEDNotificationSink()
{
}

void LEDNotificationSink::addNotification(const Notification &)
{
}

void LEDNotificationSink::removeNotification(uint)
{
}

void LEDNotificationSink::updateStatusOfLedFeedback()
{
}

// QDBusConnection stubs (used by Sysuid)
bool QDBusConnection::registerService(QString const &)
{
Expand Down
1 change: 1 addition & 0 deletions tests/ut_sysuid/ut_sysuid.pro
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ HEADERS += \
$$NOTIFICATIONSRCDIR/widgetnotificationsink.h \
$$NOTIFICATIONSRCDIR/mcompositornotificationsink.h \
$$NOTIFICATIONSRCDIR/ngfnotificationsink.h \
$$NOTIFICATIONSRCDIR/lednotificationsink.h \
$$NOTIFICATIONSRCDIR/notificationstatusindicatorsink.h \
$$NOTIFICATIONSRCDIR/notificationmanager.h \
$$ROOTSRCDIR/extensions/screenlock/unlockarea.h \
Expand Down

0 comments on commit a203bfd

Please sign in to comment.