Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/Notification.cpp

Issue 4904655779790848: Issue 1107.update1 - read Notification properties (title, message and type) on the fly (Closed)
Patch Set: rebase Created Nov. 4, 2015, 9:22 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/Notification.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/Notification.cpp
diff --git a/test/Notification.cpp b/test/Notification.cpp
index 148bf11c3ea28956e23bc1c378ae5f77fc611a5f..84898576190c38ab1ed7220f249593d31f1561cc 100644
--- a/test/Notification.cpp
+++ b/test/Notification.cpp
@@ -125,8 +125,8 @@ namespace
isNotificationCallbackCalled = true;
ASSERT_TRUE(notification);
EXPECT_EQ(NotificationType::NOTIFICATION_TYPE_INFORMATION, notification->GetType());
- EXPECT_EQ("Title", notification->GetTitle());
- EXPECT_EQ("message", notification->GetMessageString());
+ EXPECT_EQ("Title", notification->GetTexts().title);
+ EXPECT_EQ("message", notification->GetTexts().message);
notification->MarkAsShown();
}
};
@@ -156,8 +156,8 @@ TEST_F(NotificationTest, AddNotification)
NotificationPtr notification = PeekNotification();
ASSERT_TRUE(notification);
EXPECT_EQ(NotificationType::NOTIFICATION_TYPE_CRITICAL, notification->GetType());
- EXPECT_EQ("testTitle", notification->GetTitle());
- EXPECT_EQ("testMessage", notification->GetMessageString());
+ EXPECT_EQ("testTitle", notification->GetTexts().title);
+ EXPECT_EQ("testMessage", notification->GetTexts().message);
}
TEST_F(NotificationTest, FilterByUrl)
« no previous file with comments | « src/Notification.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld