Debian Codegraph @

src/tests/unittestobj.cpp

raw symbols SCIP
1 // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2 //
3 // SPDX-License-Identifier: GPL-3.0-only
4
5 #include "unittestobj.h"
6
7 #include <QtGlobal>
8 #include <QDebug>
9 #include <QThread>
10
11 BMInterface* UnitTestObj::m_pBMinterFace = nullptr;
12
13 void UnitTestObj::SetUpTestCase()
14 {
15 m_pBMinterFace = BMInterface::instance();
16 }
17
18 void UnitTestObj::TearDownTestCase()
19 {
20 delete m_pBMinterFace;
21 m_pBMinterFace = nullptr;
22 }
23
24 void UnitTestObj::SetUp()
25 {
26 qInfo() << "Test SetUp";
27 }
28
29 void UnitTestObj::TearDown()
30 {
31 qInfo() << "Test TearDown";
32 }
33
34 TEST_F(UnitTestObj, testObj)
35 {
36 //由于DBus的调用检测功能,该函数会失败,这里仅用于测试DBus自动唤起功能
37 //bool bResult = m_pBMinterFace->checkfile("/home/sfs/Documents/test.iso");
38 bool bResult = true;
39 ASSERT_EQ(bResult, true);
40 }