forked from qt-creator/qt-creator
Clang: Remove old code
We maybe bring back the clang query interface but the local rename is better served by other plugins. Change-Id: I97bedcb20870632b7dd50977794a65b2b09ededb Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -49,8 +49,6 @@ using testing::_;
|
||||
|
||||
using CppTools::CompilerOptionsBuilder;
|
||||
|
||||
using ClangBackEnd::RequestSourceLocationsForRenamingMessage;
|
||||
|
||||
using Utils::SmallString;
|
||||
using Utils::SmallStringVector;
|
||||
|
||||
@@ -90,33 +88,6 @@ protected:
|
||||
CppTools::ProjectFile projectFile{qStringFilePath, CppTools::ProjectFile::CXXSource};
|
||||
};
|
||||
|
||||
TEST_F(RefactoringEngine, SendRequestSourceLocationsForRenamingMessage)
|
||||
{
|
||||
cursor.setPosition(11);
|
||||
RequestSourceLocationsForRenamingMessage message(clangBackEndFilePath.clone(),
|
||||
2,
|
||||
5,
|
||||
fileContent,
|
||||
commandLine.clone(),
|
||||
1);
|
||||
|
||||
EXPECT_CALL(mockRefactoringServer, requestSourceLocationsForRenamingMessage(message))
|
||||
.Times(1);
|
||||
|
||||
engine.startLocalRenaming(CppTools::CursorInEditor{cursor, filePath},
|
||||
projectPart.data(), {});
|
||||
}
|
||||
|
||||
TEST_F(RefactoringEngine, AfterSendRequestSourceLocationsForRenamingMessageIsUnusable)
|
||||
{
|
||||
EXPECT_CALL(mockRefactoringServer, requestSourceLocationsForRenamingMessage(_));
|
||||
|
||||
engine.startLocalRenaming(CppTools::CursorInEditor{cursor, filePath},
|
||||
projectPart.data(), {});
|
||||
|
||||
ASSERT_FALSE(engine.isRefactoringEngineAvailable());
|
||||
}
|
||||
|
||||
TEST_F(RefactoringEngine, ExpectSourceUsagesAtInFindUsages)
|
||||
{
|
||||
cursor.setPosition(11);
|
||||
|
||||
Reference in New Issue
Block a user