Use gmock instead of fff
[platform/core/api/notification.git] / tests / unittest / src / test_noti_ex_progress_item.cc
index 3b34c82..348e0c5 100644 (file)
 
 #include <gmock/gmock.h>
 
+#include "mock/app_common_mock.h"
+#include "mock/test_fixture.h"
 #include "notification-ex/progress_item.h"
 #include "notification-ex/item_inflator.h"
 
+
 using namespace tizen_base;
 using namespace notification;
 using namespace notification::item;
 using namespace std;
 
 namespace {
+class Mocks :
+    virtual public ::testing::NiceMock<AppCommonMock> {};
+} // namespace
 
-class ProgressItemTest : public ::testing::Test {
+class ProgressItemTest : public TestFixture {
+ public:
+  ProgressItemTest() : TestFixture(std::make_unique<::Mocks>()) {}
  protected:
   void SetUp() override {}
   void TearDown() override {}
@@ -67,5 +75,3 @@ TEST_F(ProgressItemTest, SetGetUnit) {
 
   ASSERT_EQ(item.GetDefaultUnit(), "byte");
 }
-
-}  // namespace