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

删除项目中对dde-control-center-dev包的引用和其他相关的内容 Log: 删除对dde-control-center-dev包的引用 Influence: 无 Task: https://pms.uniontech.com/task-view-114411.html Change-Id: I38323556c35fb5c5ec870207f6fceac082c13099
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
//#include "config_watcher.h"
|
|
|
|
#include <QWidget>
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
//using namespace dcc_dock_plugin;
|
|
|
|
class Test_GSettingWatcher : public QObject, public ::testing::Test
|
|
{};
|
|
|
|
TEST_F(Test_GSettingWatcher, bind)
|
|
{
|
|
/* ConfigWatcher watcher("dde.dock.plugin.dconfig");
|
|
|
|
QWidget widget;
|
|
watcher.bind("Control-Center_Dock_Plugins", &widget);
|
|
watcher.bind("Control-Center_Dock_Plugins", nullptr);
|
|
watcher.bind("invalid", &widget);
|
|
watcher.bind("", &widget);
|
|
watcher.bind("", nullptr);
|
|
*/
|
|
}
|
|
|
|
TEST_F(Test_GSettingWatcher, setStatus)
|
|
{
|
|
/* ConfigWatcher watcher("dde.dock.plugin.dconfig");
|
|
|
|
QWidget widget;
|
|
watcher.bind("Control-Center_Dock_Plugins", &widget);
|
|
watcher.setStatus("Control-Center_Dock_Plugins", &widget);
|
|
*/
|
|
}
|
|
|
|
TEST_F(Test_GSettingWatcher, onStatusModeChanged)
|
|
{
|
|
/* ConfigWatcher watcher("dde.dock.plugin.dconfig");
|
|
|
|
QWidget widget;
|
|
watcher.bind("Control-Center_Dock_Plugins", &widget);
|
|
watcher.onStatusModeChanged("Control-Center_Dock_Plugins");
|
|
watcher.onStatusModeChanged("invalid");
|
|
watcher.onStatusModeChanged("");
|
|
*/
|
|
}
|