2022-09-06 11:36:55 +08:00
|
|
|
|
// SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd.
|
|
|
|
|
//
|
|
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
|
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);
|
2022-02-10 11:08:44 +08:00
|
|
|
|
// 设置应用名为dde-dock,否则dconfig相关的配置就读不到了
|
2022-03-15 15:40:45 +08:00
|
|
|
|
// TODO dtk已经有相关接口,待下次修改
|
2022-02-10 11:08:44 +08:00
|
|
|
|
app.setApplicationName("dde-dock");
|
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();
|
|
|
|
|
}
|