Improve unit TCs
[platform/core/api/notification.git] / unittest / src / test_input_selector_item.cc
index 7a02da8..245f66b 100644 (file)
@@ -29,9 +29,9 @@ TEST_F(InputSelectorItemTest, SerializeDeserialize) {
 
   Bundle b = item.Serialize();
   shared_ptr<AbstractItem> gen_item = ItemInflator::Create(b);
-  ASSERT_EQ(gen_item.get()->GetType(), item.GetType());
+  ASSERT_EQ(gen_item->GetType(), item.GetType());
 
-  InputSelectorItem* gen_input = static_cast<InputSelectorItem*>(gen_item.get());
+  auto gen_input = static_pointer_cast<InputSelectorItem>(gen_item);
 
   list<string> l1 = item.GetContents();
   list<string> l2 = gen_input->GetContents();