Skip to content

Commit

Permalink
chore: 单元测试文件增加copyright
Browse files Browse the repository at this point in the history
补上单元测试文件遗漏的copyright

Log:
Change-Id: Ia678a90b33ea4bd7e70c6f4013d5ba1befccf9c9
(cherry picked from commit 06462b7)
  • Loading branch information
Chen Bin authored and kegechen committed Jul 2, 2021
1 parent a0d4c79 commit 17b58b0
Show file tree
Hide file tree
Showing 14 changed files with 281 additions and 1 deletion.
21 changes: 21 additions & 0 deletions tests/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <[email protected]>
*
* Maintainer: Chen Bin <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "test.h"

#include <QApplication>
Expand Down
20 changes: 20 additions & 0 deletions tests/src/ut_dfontmanager.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <[email protected]>
*
* Maintainer: Chen Bin <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "test.h"
#include "dfontmanager.h"

Expand Down
20 changes: 20 additions & 0 deletions tests/src/ut_dforeignwindow.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <[email protected]>
*
* Maintainer: Chen Bin <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "test.h"
#include "dforeignwindow.h"

Expand Down
20 changes: 20 additions & 0 deletions tests/src/ut_dguiapplicationhelper.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <[email protected]>
*
* Maintainer: Chen Bin <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "test.h"
#include "dguiapplicationhelper.h"
#include "dguiapplicationhelper_p.h"
Expand Down
20 changes: 20 additions & 0 deletions tests/src/ut_dpalette.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <[email protected]>
*
* Maintainer: Chen Bin <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <DGuiApplicationHelper>
#include <QDebug>
#include <QBuffer>
Expand Down
20 changes: 20 additions & 0 deletions tests/src/ut_dplatformhandle.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <[email protected]>
*
* Maintainer: Chen Bin <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <gtest/gtest.h>
#include <QWidget>
#include <QWindow>
Expand Down
20 changes: 20 additions & 0 deletions tests/src/ut_dplatformtheme.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <[email protected]>
*
* Maintainer: Chen Bin <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <gtest/gtest.h>
#include <QWindow>
#include <QTest>
Expand Down
20 changes: 20 additions & 0 deletions tests/src/ut_dregionmonitor.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <[email protected]>
*
* Maintainer: Chen Bin <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "test.h"
#include "dregionmonitor.h"
#include "private/dregionmonitor_p.h"
Expand Down
21 changes: 20 additions & 1 deletion tests/src/ut_dsvgrenderer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@

/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <[email protected]>
*
* Maintainer: Chen Bin <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "dsvgrenderer.h"
#include "test.h"
#include <QDebug>
Expand Down
20 changes: 20 additions & 0 deletions tests/src/ut_dtaskbarcontrol.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <[email protected]>
*
* Maintainer: Chen Bin <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "test.h"
#include "dtaskbarcontrol.h"

Expand Down
20 changes: 20 additions & 0 deletions tests/src/ut_dthumbnailprovider.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <[email protected]>
*
* Maintainer: Chen Bin <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "test.h"
#include "dthumbnailprovider.h"

Expand Down
20 changes: 20 additions & 0 deletions tests/src/ut_dwindowgroupleader.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <[email protected]>
*
* Maintainer: Chen Bin <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "test.h"
#include "dwindowgroupleader.h"
#include <QDebug>
Expand Down
20 changes: 20 additions & 0 deletions tests/src/ut_dwindowmanagerhelper.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <[email protected]>
*
* Maintainer: Chen Bin <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "test.h"
#include <QTest>

Expand Down
20 changes: 20 additions & 0 deletions tests/test.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <[email protected]>
*
* Maintainer: Chen Bin <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TEST_H
#define TEST_H

Expand Down

0 comments on commit 17b58b0

Please sign in to comment.