From 1e912f731838130b21c6f236d9e91aae062eb165 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 21 Jul 2021 14:08:44 +0200 Subject: [PATCH] Unittest: Remove unused MockCppModelManager Amends baa83725f6. Change-Id: Iaee3b79d8aabcac5dee238692d66472881263764 Reviewed-by: Christian Stenger Reviewed-by: Qt CI Bot --- tests/unit/unittest/CMakeLists.txt | 1 - tests/unit/unittest/mockcppmodelmanager.h | 37 ----------------------- tests/unit/unittest/unittest.pro | 1 - tests/unit/unittest/unittest.qbs | 1 - 4 files changed, 40 deletions(-) delete mode 100644 tests/unit/unittest/mockcppmodelmanager.h diff --git a/tests/unit/unittest/CMakeLists.txt b/tests/unit/unittest/CMakeLists.txt index 596ab24d643..58ac427ae72 100644 --- a/tests/unit/unittest/CMakeLists.txt +++ b/tests/unit/unittest/CMakeLists.txt @@ -59,7 +59,6 @@ add_qtc_test(unittest GTEST matchingtext-test.cpp mockclangcodemodelclient.h mockclangcodemodelserver.h - mockcppmodelmanager.h mockfutureinterface.h mockmutex.h mockqfilesystemwatcher.h diff --git a/tests/unit/unittest/mockcppmodelmanager.h b/tests/unit/unittest/mockcppmodelmanager.h deleted file mode 100644 index bbcd95a0a31..00000000000 --- a/tests/unit/unittest/mockcppmodelmanager.h +++ /dev/null @@ -1,37 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2018 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -****************************************************************************/ - -#pragma once - -#include "googletest.h" - -#include - -class MockCppModelManager : public CppTools::CppModelManagerInterface -{ -public: - MOCK_CONST_METHOD1(projectPartForId, - CppTools::ProjectPart::Ptr (const QString &projectPartId)); -}; diff --git a/tests/unit/unittest/unittest.pro b/tests/unit/unittest/unittest.pro index 6cd9315586d..5cb527059f8 100644 --- a/tests/unit/unittest/unittest.pro +++ b/tests/unit/unittest/unittest.pro @@ -213,7 +213,6 @@ HEADERS += \ rundocumentparse-utility.h \ mocktimer.h \ mocksqlitetransactionbackend.h \ - mockcppmodelmanager.h \ mockqueue.h \ mockfutureinterface.h \ ../mockup/qmldesigner/designercore/include/nodeinstanceview.h \ diff --git a/tests/unit/unittest/unittest.qbs b/tests/unit/unittest/unittest.qbs index 0838cfc63db..8c1acd56ed7 100644 --- a/tests/unit/unittest/unittest.qbs +++ b/tests/unit/unittest/unittest.qbs @@ -190,7 +190,6 @@ Project { "matchingtext-test.cpp", "mockclangcodemodelclient.h", "mockclangcodemodelserver.h", - "mockcppmodelmanager.h", "mockfutureinterface.h", "mockmutex.h", "mockqfilesystemwatcher.h",