Change-Id: I6f2816a5534211a1721bc7c131c86829cd33ebe8
Signed-off-by: hyunho <hhstark.kang@samsung.com>
return impl_->app_label_;
}
+void GroupItem::SetAppLabel(string label) {
+ impl_->app_label_ = label;
+}
+
} // namespace item
} // namespace notification
std::string GetAppLabel();
/**
+ * @brief Sets app label data of GroupItem.
+ * @since_tizen 5.5
+ * @return The app label data
+ */
+ void SetAppLabel(std::string label);
+
+ /**
* @brief Adds child notification item.
* @since_tizen 5.5
* @param[in] AbstractItem object
ASSERT_EQ(app_label, "unittest_appname");
}
+TEST_F(GroupItemTest, SetAppLabel) {
+ GroupItem item("GROUP1");
+ item.SetAppLabel("test");
+ string app_label = item.GetAppLabel();
+
+ ASSERT_EQ(app_label, "test");
+}
+
TEST_F(GroupItemTest, SetDirection) {
GroupItem item("GROUP1");
item.SetDirection(true);