libaurum: fix leaking memory by using smart pointer
[platform/core/uifw/aurum.git] / tests / ua_test.cpp
1 #include <gtest/gtest.h>
2
3 #include <UiDevice.h>
4 #include <UiObject.h>
5 #include <UiSelector.h>
6 #include <Sel.h>
7
8 class UaTest : public ::testing::Test {
9     protected:
10         void SetUp() override {
11         }
12
13         void TearDown() override {
14         }
15 };
16
17 TEST_F(UaTest, EmptyTest)
18 {
19     ASSERT_EQ(true, true);
20 }
21
22 TEST_F(UaTest, DeviceInit)
23 {
24     const UiDevice *mDevice = UiDevice::getInstance(DeviceType::DEFAULT);
25     ASSERT_NE(mDevice, nullptr);
26 }
27
28 TEST_F(UaTest, TextSelector)
29 {
30     std::shared_ptr<UiSelector> sel = Sel::text("test");
31     ASSERT_NE(sel.get(), nullptr);
32 }