diff options
Diffstat (limited to 'tests/unittest/src/test_noti_ex_progress_item.cc')
-rw-r--r-- | tests/unittest/src/test_noti_ex_progress_item.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/unittest/src/test_noti_ex_progress_item.cc b/tests/unittest/src/test_noti_ex_progress_item.cc index 3b34c82..348e0c5 100644 --- a/tests/unittest/src/test_noti_ex_progress_item.cc +++ b/tests/unittest/src/test_noti_ex_progress_item.cc @@ -16,17 +16,25 @@ #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 |