From 7fb80595b94b02867f2cffc81f6e43fa173cda17 Mon Sep 17 00:00:00 2001 From: Ivan Donchevskii Date: Tue, 24 Oct 2017 13:39:36 +0200 Subject: ClangRefactoring: use sourceUsagesAt instead of locationsAt Change-Id: I085b243b6e0ea4b786ce5c5f5a6894345f9d87eb Reviewed-by: Marco Bubke --- tests/unit/unittest/refactoringengine-test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/unit/unittest/refactoringengine-test.cpp') diff --git a/tests/unit/unittest/refactoringengine-test.cpp b/tests/unit/unittest/refactoringengine-test.cpp index e1d5e3cd5c..1a7c0d3b92 100644 --- a/tests/unit/unittest/refactoringengine-test.cpp +++ b/tests/unit/unittest/refactoringengine-test.cpp @@ -105,21 +105,21 @@ TEST_F(RefactoringEngine, AfterSendRequestSourceLocationsForRenamingMessageIsUnu ASSERT_FALSE(engine.isRefactoringEngineAvailable()); } -TEST_F(RefactoringEngine, ExpectLocationsAtInFindUsages) +TEST_F(RefactoringEngine, ExpectSourceUsagesAtInFindUsages) { cursor.setPosition(11); - EXPECT_CALL(mockSymbolQuery, locationsAt(_, 2, 5)); + EXPECT_CALL(mockSymbolQuery, sourceUsagesAt(_, 2, 5)); engine.findUsages(CppTools::CursorInEditor{cursor, filePath}, [](const CppTools::Usages &) {}); } -TEST_F(RefactoringEngine, ExpectLocationsAtInGlobalRename) +TEST_F(RefactoringEngine, ExpectSourceUsagesAtInGlobalRename) { cursor.setPosition(11); - EXPECT_CALL(mockSymbolQuery, locationsAt(_, 2, 5)); + EXPECT_CALL(mockSymbolQuery, sourceUsagesAt(_, 2, 5)); engine.globalRename(CppTools::CursorInEditor{cursor, filePath}, [](const CppTools::Usages &) {}, QString()); -- cgit v1.2.1