2021-03-16 13:16:30 +08:00
|
|
|
/*
|
2021-06-18 17:36:06 +08:00
|
|
|
* Copyright (C) 2018 ~ 2020 Uniontech Technology Co., Ltd.
|
2021-03-16 13:16:30 +08:00
|
|
|
*
|
|
|
|
* Author: fanpengcheng <fanpengcheng@uniontech.com>
|
|
|
|
*
|
|
|
|
* Maintainer: fanpengcheng <fanpengcheng@uniontech.com>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2020-11-19 18:11:06 +08:00
|
|
|
#include <gtest/gtest.h>
|
2021-05-24 17:32:05 +08:00
|
|
|
#ifdef QT_DEBUG
|
|
|
|
#include <sanitizer/asan_interface.h>
|
|
|
|
#endif
|
2021-03-16 13:16:30 +08:00
|
|
|
|
|
|
|
#include "dockapplication.h"
|
|
|
|
|
2021-03-18 11:19:07 +08:00
|
|
|
#include <QMouseEvent>
|
|
|
|
#include <QTouchEvent>
|
2021-03-16 13:16:30 +08:00
|
|
|
|
2020-12-16 17:38:41 +08:00
|
|
|
#include <DLog>
|
2020-11-19 18:11:06 +08:00
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
2020-12-16 17:38:41 +08:00
|
|
|
qputenv("QT_QPA_PLATFORM", "offscreen");
|
2021-04-12 15:45:25 +08:00
|
|
|
|
2021-03-16 13:16:30 +08:00
|
|
|
DockApplication app(argc, argv);
|
2020-11-19 18:11:06 +08:00
|
|
|
|
2020-12-16 17:38:41 +08:00
|
|
|
qApp->setProperty("CANSHOW", true);
|
|
|
|
|
|
|
|
::testing::InitGoogleTest(&argc, argv);
|
2020-11-19 18:11:06 +08:00
|
|
|
|
2021-05-24 17:32:05 +08:00
|
|
|
#ifdef QT_DEBUG
|
|
|
|
__sanitizer_set_report_path("asan.log");
|
|
|
|
#endif
|
2021-08-25 21:03:30 +08:00
|
|
|
|
2020-11-19 18:11:06 +08:00
|
|
|
return RUN_ALL_TESTS();
|
|
|
|
}
|