forked from qt-creator/qt-creator
Clang: Cleanup symbol indexer test
Change-Id: I1cfa70d092d27949e0cf9466b190afbc40c1a591 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -57,7 +57,11 @@ using ClangBackEnd::SymbolType;
|
||||
class SymbolIndexer : public testing::Test
|
||||
{
|
||||
protected:
|
||||
void SetUp();
|
||||
void SetUp()
|
||||
{
|
||||
ON_CALL(mockCollector, symbols()).WillByDefault(ReturnRef(symbolEntries));
|
||||
ON_CALL(mockCollector, sourceLocations()).WillByDefault(ReturnRef(sourceLocations));
|
||||
}
|
||||
|
||||
protected:
|
||||
PathString main1Path = TESTDATA_DIR "/includecollector_main3.cpp";
|
||||
@@ -163,11 +167,5 @@ TEST_F(SymbolIndexer, UpdateProjectPartsCallsInOrder)
|
||||
indexer.updateProjectParts({projectPart1}, Utils::clone(unsaved));
|
||||
}
|
||||
|
||||
void SymbolIndexer::SetUp()
|
||||
{
|
||||
ON_CALL(mockCollector, symbols()).WillByDefault(ReturnRef(symbolEntries));
|
||||
ON_CALL(mockCollector, sourceLocations()).WillByDefault(ReturnRef(sourceLocations));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user