Debian Codegraph @

src/tests/qtbaseinstallertest.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 "qtbaseinstallertest.h"
6
7 void QtBaseInstallerTest::SetUp()
8 {
9 m_qtBaseInstaller = new QtBaseInstaller;
10 }
11
12 // Tears down the test fixture.
13 void QtBaseInstallerTest::TearDown()
14 {
15 delete m_qtBaseInstaller;
16 m_qtBaseInstaller = nullptr;
17 }
18
19
20 TEST_F(QtBaseInstallerTest, Public)
21 {
22 m_qtBaseInstaller->setformat(false);
23 m_qtBaseInstaller->setPartionName("/dev/sdb1");
24 m_qtBaseInstaller->setImage("~/Downloads/uniontechos-desktop-21.0-home-beta6-amd64.iso");
25 EXPECT_FALSE(m_qtBaseInstaller->isRunning());
26
27 m_qtBaseInstaller->beginInstall();
28 m_qtBaseInstaller->checkError();
29 m_qtBaseInstaller->stopInstall();
30 m_qtBaseInstaller->checkISOIntegrity();
31 }
32
33 TEST_F(QtBaseInstallerTest, Protected)
34 {
35 // EXPECT_TRUE(m_qtBaseInstaller->umountPartion());
36 }