UnitTests: Re-enable CMake unittests

Ammeds 327bec26bf

Change-Id: I34b62532da424b3b4fb0290049150f6ba444283b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Cristian Adam
2020-07-23 17:10:54 +02:00
parent 7ce989a306
commit 3b8f51391b
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
add_subdirectory(auto)
add_subdirectory(manual)
# add_subdirectory(tools)
# add_subdirectory(unit)
add_subdirectory(unit)
+2 -1
View File
@@ -15,12 +15,13 @@ endif()
add_qtc_test(unittest GTEST
INCLUDES
BEFORE "../mockup"
BEFORE "../mockup/qmldesigner/designercore/include"
DEPENDS
Qt5::Core Qt5::Network Qt5::Widgets
Qt5::Xml Qt5::Concurrent Qt5::Qml Qt5::Gui
Googletest
clangrefactoringbackend_lib clangbackend_lib clangpchmanagerbackend_lib
CPlusPlus Utils
CPlusPlus Utils QmlDesigner
DEFINES
QT_NO_CAST_TO_ASCII
QT_RESTRICTED_CAST_FROM_ASCII
@@ -199,7 +199,7 @@ TEST_F(RefactoringClient, ResultCounterIsZeroAfterSettingExpectedResultCount)
TEST_F(RefactoringClient, XXX)
{
const Core::Search::TextRange textRange{{1,0,1},{1,0,1}};
const Core::Search::TextRange textRange{{1,0},{1,0}};
const ClangBackEnd::SourceRangeWithTextContainer sourceRange{1, 1, 1, 1, 1, 1, 1, "function"};
EXPECT_CALL(mockSearchHandle, addResult(QString("/path/to/file"), QString("function"), textRange))