Skip to content

Commit

Permalink
[lipstick] Remove tests for removed feature. JB#50445
Browse files Browse the repository at this point in the history
  • Loading branch information
Bea Lam committed Aug 18, 2020
1 parent 1f064a5 commit af5a010
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
Expand Up @@ -365,29 +365,4 @@ void Ut_NotificationFeedbackPlayer::testNotificationPriority()
QCOMPARE(gClientStub->stubCallCount("play"), playCount);
}

void Ut_NotificationFeedbackPlayer::testLEDDisabledWhenNoSummaryAndBody()
{
QVariantHash hints;
hints.insert(LipstickNotification::HINT_FEEDBACK, "feedback");

LipstickNotification *notification1 = new LipstickNotification("ut_notificationfeedbackplayer", "", 1, "", "", "", QStringList(), hints, -1);
LipstickNotification *notification2 = new LipstickNotification("ut_notificationfeedbackplayer", "", 2, "", "summary", "", QStringList(), hints, -1);
LipstickNotification *notification3 = new LipstickNotification("ut_notificationfeedbackplayer", "", 3, "", "", "body", QStringList(), hints, -1);
notificationManagerNotification.insert(1, notification1);
notificationManagerNotification.insert(2, notification2);
notificationManagerNotification.insert(3, notification3);

player->addNotification(1);
QCOMPARE(gClientStub->stubCallCount("play"), 1);
QCOMPARE(gClientStub->stubLastCallTo("play").parameter<QVariantMap>(1).contains("media.leds"), false);

player->addNotification(2);
QCOMPARE(gClientStub->stubCallCount("play"), 2);
QCOMPARE(gClientStub->stubLastCallTo("play").parameter<QVariantMap>(1).isEmpty(), true);

player->addNotification(3);
QCOMPARE(gClientStub->stubCallCount("play"), 3);
QCOMPARE(gClientStub->stubLastCallTo("play").parameter<QVariantMap>(1).isEmpty(), true);
}

QTEST_MAIN(Ut_NotificationFeedbackPlayer)
Expand Up @@ -42,7 +42,6 @@ private slots:
void testNotificationPreviewsDisabled();
void testNotificationPriority_data();
void testNotificationPriority();
void testLEDDisabledWhenNoSummaryAndBody();

private:
NotificationFeedbackPlayer *player;
Expand Down

0 comments on commit af5a010

Please sign in to comment.