mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00

Modify project to pass the REUSE check Log: Modify project to pass the REUSE check Task: https://pms.uniontech.com/task-view-185215.html Change-Id: Ie954cf985f16c1a243bfc912aa7458c6e85ce9de
36 lines
788 B
C++
36 lines
788 B
C++
// SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd.
|
||
//
|
||
// SPDX-License-Identifier: LGPL-3.0-or-later
|
||
|
||
#include <gtest/gtest.h>
|
||
#ifdef QT_DEBUG
|
||
#include <sanitizer/asan_interface.h>
|
||
#endif
|
||
|
||
#include "dockapplication.h"
|
||
|
||
#include <QMouseEvent>
|
||
#include <QTouchEvent>
|
||
|
||
#include <DLog>
|
||
|
||
int main(int argc, char **argv)
|
||
{
|
||
qputenv("QT_QPA_PLATFORM", "offscreen");
|
||
|
||
DockApplication app(argc, argv);
|
||
// 设置应用名为dde-dock,否则dconfig相关的配置就读不到了
|
||
// TODO dtk已经有相关接口,待下次修改
|
||
app.setApplicationName("dde-dock");
|
||
|
||
qApp->setProperty("CANSHOW", true);
|
||
|
||
::testing::InitGoogleTest(&argc, argv);
|
||
|
||
#ifdef QT_DEBUG
|
||
__sanitizer_set_report_path("asan.log");
|
||
#endif
|
||
|
||
return RUN_ALL_TESTS();
|
||
}
|